|
|
@ -10,6 +10,8 @@ import com.qs.serve.common.util.CollectionUtil; |
|
|
|
import com.qs.serve.common.util.PageUtil; |
|
|
|
import com.qs.serve.common.util.CopierUtil; |
|
|
|
import com.qs.serve.common.util.StringUtils; |
|
|
|
import com.qs.serve.modules.bms.entity.BmsDutyInfo; |
|
|
|
import com.qs.serve.modules.bms.service.BmsDutyInfoService; |
|
|
|
import com.qs.serve.modules.sys.entity.SysAttach; |
|
|
|
import com.qs.serve.modules.sys.service.SysAttachService; |
|
|
|
import com.qs.serve.modules.tbs.entity.bo.TbsCostContractBo; |
|
|
@ -38,6 +40,7 @@ public class TbsCostContractController { |
|
|
|
|
|
|
|
private TbsCostContractService tbsCostContractService; |
|
|
|
private SysAttachService attachService; |
|
|
|
private BmsDutyInfoService bmsDutyInfoService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 列表 |
|
|
@ -123,6 +126,10 @@ public class TbsCostContractController { |
|
|
|
contract.setExpireTime(param.getExpireTime()); |
|
|
|
contract.setBusinessCompany(param.getBusinessCompany()); |
|
|
|
contract.setDutyNumber(param.getDutyNumber()); |
|
|
|
BmsDutyInfo bmsDutyInfo = bmsDutyInfoService.getByDutyNumber(param.getDutyNumber()); |
|
|
|
if(bmsDutyInfo!=null){ |
|
|
|
contract.setOaDeptId(bmsDutyInfo.getOaDeptId()); |
|
|
|
} |
|
|
|
boolean result = tbsCostContractService.updateById(contract); |
|
|
|
return R.isTrue(result); |
|
|
|
} |
|
|
@ -157,6 +164,10 @@ public class TbsCostContractController { |
|
|
|
contract.setFileNum(param.getFileNum()); |
|
|
|
contract.setBusinessCompany(param.getBusinessCompany()); |
|
|
|
contract.setDutyNumber(param.getDutyNumber()); |
|
|
|
BmsDutyInfo bmsDutyInfo = bmsDutyInfoService.getByDutyNumber(param.getDutyNumber()); |
|
|
|
if(bmsDutyInfo!=null){ |
|
|
|
contract.setOaDeptId(bmsDutyInfo.getOaDeptId()); |
|
|
|
} |
|
|
|
} |
|
|
|
if(contract.getId()==null){ |
|
|
|
tbsCostContractService.save(contract); |
|
|
|