材料站退料
This commit is contained in:
parent
4375cbe920
commit
0ccb1f92fe
|
|
@ -180,6 +180,12 @@ public class SelectController {
|
|||
return service.getAgreementInfoById(dto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "材料站退料往来单位id和标段工程id获取协议信息")
|
||||
@PostMapping("getAgreementInfoByIdBack")
|
||||
public AjaxResult getAgreementInfoByIdBack(@RequestBody SelectDto dto){
|
||||
return service.getAgreementInfoByIdBack(dto);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "在用设备类型树")
|
||||
@PostMapping("/getUseTypeTree")
|
||||
public AjaxResult getUseTypeTree(@RequestBody BackApplyInfo bean) {
|
||||
|
|
|
|||
|
|
@ -241,4 +241,11 @@ public interface SelectService {
|
|||
* @return
|
||||
*/
|
||||
AjaxResult getUnitListLeasePerson(BmUnit bmUnit);
|
||||
|
||||
/**
|
||||
* 材料站退料往来单位id和标段工程id获取协议信息
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
AjaxResult getAgreementInfoByIdBack(SelectDto dto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -250,6 +250,28 @@ public class SelectServiceImpl implements SelectService {
|
|||
return AjaxResult.success(mapper.getUnitListLeasePerson(bmUnit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 材料站退料往来单位id和标段工程id获取协议信息
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public AjaxResult getAgreementInfoByIdBack(SelectDto dto) {
|
||||
AgreementVo vo = new AgreementVo();
|
||||
try {
|
||||
if (dto != null && dto.getTeamId() > 0) {
|
||||
dto.setUnitId(dto.getTeamId());
|
||||
}
|
||||
List<AgreementVo> list = mapper.getAgreementInfoById(dto);
|
||||
if (CollectionUtils.isNotEmpty(list)) {
|
||||
vo = list.get(0);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("往来单位id和标段工程id获取协议信息", e);
|
||||
}
|
||||
return AjaxResult.success(vo);
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public AjaxResult getDictByPidCbx(SelectDto dto) {
|
||||
// List<SelectVo> list = new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue