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