二级库单位列表
This commit is contained in:
parent
15a2807189
commit
e1a00fd193
|
|
@ -28,6 +28,12 @@ public class SelectController {
|
|||
return service.getUnitData(dto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "二级库单位下拉选")
|
||||
@PostMapping("getLevelTwoUnitCbx")
|
||||
public AjaxResult getLevelTwoUnitData(@RequestBody SelectDto dto) {
|
||||
return service.getLevelTwoUnitData(dto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "工程下拉选")
|
||||
@PostMapping("getSectionEngineeringCbx")
|
||||
public AjaxResult getProData(@RequestBody SelectDto dto) {
|
||||
|
|
|
|||
|
|
@ -190,4 +190,11 @@ public interface SelectMapper {
|
|||
* @return List<TreeNode>
|
||||
*/
|
||||
List<TreeNode> getPartTree(SelectDto dto);
|
||||
|
||||
/**
|
||||
* 二级库单位下拉选
|
||||
* @param dto
|
||||
* @return List<SelectVo>
|
||||
*/
|
||||
List<SelectVo> getLevelTwoUnitData(SelectDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -175,4 +175,11 @@ public interface SelectService {
|
|||
* @return AjaxResult
|
||||
*/
|
||||
AjaxResult getPartTree(SelectDto dto);
|
||||
|
||||
/**
|
||||
* 二级库单位下拉选
|
||||
* @param dto
|
||||
* @return AjaxResult
|
||||
*/
|
||||
AjaxResult getLevelTwoUnitData(SelectDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,17 @@ public class SelectServiceImpl implements SelectService {
|
|||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult getLevelTwoUnitData(SelectDto dto) {
|
||||
List<SelectVo> list = new ArrayList<>();
|
||||
try {
|
||||
list = mapper.getLevelTwoUnitData(dto);
|
||||
} catch (Exception e) {
|
||||
log.error("往来单位-查询失败", e);
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult getProData(SelectDto dto) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -213,5 +213,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM bm_agreement_info
|
||||
WHERE unit_id = #{unitId} AND project_id = #{projectId} AND status = '1'
|
||||
</select>
|
||||
<select id="getLevelTwoUnitData" resultType="com.bonus.sgzb.material.domain.SelectVo">
|
||||
select slc.unit_id as id,
|
||||
bui.unit_name as `name`
|
||||
from second_lot_config slc
|
||||
left join bm_unit_info bui on slc.unit_id = bui.unit_id
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue