Selaa lähdekoodia

项目管理bug

suntianwu 2 vuotta sitten
vanhempi
commit
5f467bb43f

+ 6 - 0
purchase-admin/src/main/java/com/ozs/web/controller/pm/PmDemandController.java

@@ -90,6 +90,12 @@ public class PmDemandController extends BaseController {
             if (ObjectUtils.isEmpty(pmDemand)) {
                 return error("demandId参数错误");
             }
+            if (ObjectUtils.isEmpty(pmBookBuildingReqVo.getBudgetAmount())) {
+                return error("预算金额不能为空");
+            }
+            if (ObjectUtils.isEmpty(pmBookBuildingReqVo.getDemandCommitTime())) {
+                return error("需求提报时间不能为空");
+            }
             LoginUser loginUser = tokenService.getLoginUser(request);
             pmBookBuildingReqVo.setCreateBy(String.valueOf(loginUser.getUserId()));
             pmBookBuildingReqVo.setCreateTime(new Date());