Przeglądaj źródła

客服权限开发

anderx 2 lat temu
rodzic
commit
54e0c66ede

+ 4 - 0
src/main/java/com/goafanti/order/controller/AdminNewOrderApiController.java

@@ -211,6 +211,10 @@ public class AdminNewOrderApiController extends CertifyApiController {
 			return res;
 		}
 		if (isSubmit == 1) {
+			if (StringUtils.isBlank(t.getContacts())||StringUtils.isBlank(t.getContactMobile())){
+				res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "联系人与电话"));
+				return res;
+			}
 			if (orderNewService.checkORderTask(t.getOrderNo())) {
 				res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "主项目"));
 				return res;

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

@@ -756,4 +756,44 @@ public class OrderProjectApiController extends CertifyApiController {
 		res.setData(handleFile(res, "/projectStopFile/", false, req, sign));
 		return res;
 	}
+
+
+	/** 文件上传 **/
+	@RequestMapping(value = "/upload/satisfactionDegree", method = RequestMethod.POST)
+	public Result uploadsatisfactionDegree(HttpServletRequest req,String sign,Integer id){
+		Result res = new Result();
+		String path="/satisfactionDegree/"+id+"/";
+		res.setData(handleFile(res, path, false, req, sign));
+		return res;
+	}
+
+	@RequestMapping(value="/updateSatisfactionDegree",method = RequestMethod.POST)
+	public Result updateSatisfactionDegree(Integer id,Integer formRetrieve,Integer satisfactionDegree,String satisfactionDegreeUrl){
+		Result res=new Result();
+		if (id ==null){
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"项目编号"));
+			return res;
+		}
+		if (formRetrieve ==null){
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"满意度回收状态"));
+			return res;
+		}
+		if (formRetrieve==1){
+			if (satisfactionDegree ==null){
+				res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"满意度"));
+				return res;
+			}
+			if (StringUtils.isBlank(satisfactionDegreeUrl)){
+				res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"满意度附件"));
+				return res;
+			}
+		}
+		res.setData(orderProjectService.updateSatisfactionDegree( id, formRetrieve, satisfactionDegree, satisfactionDegreeUrl));
+		return res;
+
+
+	}
+
+
+
 }

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

@@ -147,4 +147,5 @@ public interface OrderProjectService {
 	Object pushExamineProjectStop(InputTaskStopLog in);
 
 
+    Object updateSatisfactionDegree(Integer id, Integer formRetrieve, Integer satisfactionDegree, String satisfactionDegreeUrl);
 }

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

@@ -1621,9 +1621,23 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 		return taskStopMapper.updateByPrimaryKeySelective(t);
 	}
 
+
+
 	private void examineProjectSotpAddNotice(TOrderTask task,Integer status,Integer sotpType) {
 		asyncUtils.addProjectSotpNotic(status,sotpType,null,task);
 	}
 
 
+	@Override
+	public Object updateSatisfactionDegree(Integer id, Integer formRetrieve, Integer satisfactionDegree, String satisfactionDegreeUrl) {
+		TOrderTask in=new TOrderTask();
+		in.setId(id);
+		in.setFormRetrieve(formRetrieve);
+		if(formRetrieve==1){
+
+		}
+
+		return tOrderTaskMapper.updateByPrimaryKeySelective(in);
+	}
+
 }