|
@@ -577,6 +577,15 @@ public class StaBudgetapprovalController extends BaseController {
|
577
|
577
|
@ResponseBody
|
578
|
578
|
@RequestMapping(value = "/ImprestConnect", method = RequestMethod.POST)
|
579
|
579
|
public BaseResult ImprestConnect(StaBudgetapproval budgetapproval) {
|
|
580
|
+ if (budgetapproval.getErpbh() == null || budgetapproval.getXmlx() == null ||
|
|
581
|
+ budgetapproval.getDkyfzr() == null || budgetapproval.getSsbm() == null){
|
|
582
|
+ PrjProject project= prjProjectDao.queryById(budgetapproval.getXmid());
|
|
583
|
+ budgetapproval.setErpbh(project.getErpbh());
|
|
584
|
+ budgetapproval.setXmlx(project.getXmlx());
|
|
585
|
+ budgetapproval.setSsbm(project.getSsbm());
|
|
586
|
+ budgetapproval.setDkyfzr(project.getDkyfzr());
|
|
587
|
+ }
|
|
588
|
+
|
580
|
589
|
int num = staBudgetapprovalService.ImprestConnect(budgetapproval);
|
581
|
590
|
if (num > 0) {
|
582
|
591
|
return BaseResult.success("备用金项目关联成功!");
|