|
@@ -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());
|