|
|
@@ -7,6 +7,7 @@ import com.xintong.visualinspection.controller.BaseController;
|
|
|
import com.xintong.visualinspection.pojo.fwq.TaskData_F;
|
|
|
import com.xintong.visualinspection.pojo.qzd.TaskDate_Q;
|
|
|
import com.xintong.visualinspection.service.CheckAppealService_F;
|
|
|
+import com.xintong.visualinspection.service.CheckAppealService_Q;
|
|
|
import com.xintong.visualinspection.service.TaskService_Q;
|
|
|
import com.xintong.visualinspection.util.AuthorUtil;
|
|
|
import com.xintong.visualinspection.util.CacheUtil;
|
|
|
@@ -31,7 +32,7 @@ public class TaskController_Q extends BaseController {
|
|
|
@Reference(version = "1.0.0",
|
|
|
application = "${dubbo.application.id}",
|
|
|
registry = "${dubbo.registry.address}")
|
|
|
- private CheckAppealService_F checkAppealService_f;
|
|
|
+ private CheckAppealService_Q checkAppealService_f;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -123,4 +124,25 @@ public class TaskController_Q extends BaseController {
|
|
|
return super.returnSuccessResult("修改成功", t);
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = "/taskEnd")
|
|
|
+ public String taskEnd(HttpServletRequest request, @Valid @RequestBody QzdCheckTask task){
|
|
|
+ if(task.getId()==null){
|
|
|
+ throw new BusinessException(20002);
|
|
|
+ }
|
|
|
+ if(task.getCheck_status()==null || "".equals(task.getCheck_status())){
|
|
|
+ task.setCheck_status(Constants.STATUS_CHECK_END);
|
|
|
+ }
|
|
|
+ User user = getCurrentUser(request);
|
|
|
+ task.setUpdate_user(new Long(user.getId()));
|
|
|
+ taskService_q.updateStatus(task);
|
|
|
+
|
|
|
+ if(task.getAppeal_result()!=null && task.getAppeal_id()!=null){
|
|
|
+ CheckAppeal_F checkAppeal = new CheckAppeal_F();
|
|
|
+ checkAppeal.setId(task.getAppeal_id());
|
|
|
+ checkAppeal.setAppeal_result(task.getAppeal_result());
|
|
|
+ checkAppealService_f.update(checkAppeal);
|
|
|
+ }
|
|
|
+ return super.returnSuccessResult("修改成功");
|
|
|
+ }
|
|
|
+
|
|
|
}
|