|
|
@@ -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;
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|