Browse Source

修改列表参数

anderx 3 years ago
parent
commit
98bf2f884b

+ 1 - 1
src/main/java/com/goafanti/order/bo/InputProjectSotp.java

@@ -5,7 +5,7 @@ import com.goafanti.common.utils.Param;
 
 import javax.validation.constraints.NotNull;
 
-public class InputProjectSotp {
+public class InputProjectStop {
 
 
     private String ids;

+ 6 - 6
src/main/java/com/goafanti/order/controller/OrderProjectApiController.java

@@ -639,8 +639,8 @@ public class OrderProjectApiController extends CertifyApiController {
 	 * 项目暂停
 	 *
 	 */
-	@RequestMapping(value = "/addProjectSotp" ,method = RequestMethod.POST)
-	public Result addProjectSotp(@Validated InputProjectSotp in,BindingResult bindingResult){
+	@RequestMapping(value = "/addProjectStop" ,method = RequestMethod.POST)
+	public Result addProjectStop(@Validated InputProjectStop in,BindingResult bindingResult){
 		Result res = new Result();
 		if (bindingResult.hasErrors()) {
 			res.getError().add(buildErrorByMsg(bindingResult.getFieldError().getDefaultMessage(),
@@ -651,15 +651,15 @@ public class OrderProjectApiController extends CertifyApiController {
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"编号","编号"));
 			return res;
 		}
-		return res.data(orderProjectService.addProjectSotp( in));
+		return res.data(orderProjectService.addProjectStop( in));
 	}
 
 	/**
 	 * 项目暂停
 	 *
 	 */
-	@RequestMapping(value = "/updateProjectSotp" ,method = RequestMethod.POST)
-	public Result updateProjectSotp(@Validated InputProjectSotp in,BindingResult bindingResult){
+	@RequestMapping(value = "/updateProjectStop" ,method = RequestMethod.POST)
+	public Result updateProjectStop(@Validated InputProjectStop in,BindingResult bindingResult){
 		Result res = new Result();
 		if (bindingResult.hasErrors()) {
 			res.getError().add(buildErrorByMsg(bindingResult.getFieldError().getDefaultMessage(),
@@ -670,7 +670,7 @@ public class OrderProjectApiController extends CertifyApiController {
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"暂停编号","暂停编号"));
 			return res;
 		}
-		return res.data(orderProjectService.updateProjectSotp(in));
+		return res.data(orderProjectService.updateProjectStop(in));
 	}
 
 	/**

+ 2 - 2
src/main/java/com/goafanti/order/service/OrderProjectService.java

@@ -138,8 +138,8 @@ public interface OrderProjectService {
     void updateMidServiceProject(String orderNo);
 
 
-    Integer addProjectSotp(InputProjectSotp in);
-	Integer updateProjectSotp(InputProjectSotp in);
+    Integer addProjectStop(InputProjectStop in);
+	Integer updateProjectStop(InputProjectStop in);
 
 	Pagination<?> selectProjectSotp(String orderNo, String userName, String depId, String contractNo, String projectName,
 							 Integer status,String startTime,String endTime,String receiverId, Integer pageNo, Integer pageSize);

+ 2 - 2
src/main/java/com/goafanti/order/service/impl/OrderProjectServiceImpl.java

@@ -1457,7 +1457,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 	}
 
 	@Override
-	public Integer addProjectSotp(InputProjectSotp in) {
+	public Integer addProjectStop(InputProjectStop in) {
 		String[] split = in.getIds().split(",");
 		Date date = new Date();
 		String adminId = TokenManager.getAdminId();
@@ -1493,7 +1493,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 	}
 
 	@Override
-	public Integer updateProjectSotp(InputProjectSotp in) {
+	public Integer updateProjectStop(InputProjectStop in) {
 		TaskSopt use = taskSoptMapper.selectByPrimaryKey(in.getStopId());
 		Date date = new Date();
 		String adminId = TokenManager.getAdminId();