浏览代码

1125需要变更

wanghongzhi 1 年之前
父节点
当前提交
d7bdccb5c1

+ 4 - 0
easydo-chengfa/src/main/java/easydo/technology/controller/UserProjectRefController.java

@@ -3,6 +3,7 @@ package easydo.technology.controller;
 import easydo.technology.annotation.WebLog;
 import easydo.technology.components.JdbcClient;
 import easydo.technology.model.UserProjectRef;
+import easydo.technology.utils.StringUtil;
 import lombok.extern.java.Log;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.ResponseEntity;
@@ -43,6 +44,9 @@ public class UserProjectRefController {
     @WebLog
     @RequestMapping(value = "/saveBatch")
     public Object save(@RequestBody UserProjectRef model) throws Exception {
+        if (StringUtil.isEmpty(model.getUserId())) {
+            throw new Exception("参数缺失");
+        }
         Connection connection = null;
         try {
             connection = dataSource.getConnection();