|
@@ -6,9 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
6
|
6
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
7
|
7
|
import com.example.civilizedcity.common.*;
|
8
|
8
|
|
9
|
|
-import com.example.civilizedcity.entity.SysOrg;
|
10
|
|
-import com.example.civilizedcity.entity.SysUser;
|
11
|
|
-import com.example.civilizedcity.entity.TaIssue;
|
|
9
|
+import com.example.civilizedcity.entity.*;
|
12
|
10
|
import com.example.civilizedcity.service.SysOrgService;
|
13
|
11
|
import com.example.civilizedcity.service.TaIssueService;
|
14
|
12
|
import com.example.civilizedcity.service.TaOrgIssueService;
|
|
@@ -17,7 +15,6 @@ import io.swagger.annotations.ApiOperation;
|
17
|
15
|
import io.swagger.annotations.ApiParam;
|
18
|
16
|
import org.springframework.beans.factory.annotation.Autowired;
|
19
|
17
|
import org.springframework.web.bind.annotation.*;
|
20
|
|
-import com.example.civilizedcity.entity.TaIssueProcess;
|
21
|
18
|
import com.example.civilizedcity.service.TaIssueProcessService;
|
22
|
19
|
|
23
|
20
|
/**
|
|
@@ -120,6 +117,41 @@ public class TaIssueProcessController extends BaseController {
|
120
|
117
|
return ResponseBean.success(taIssueProcess);
|
121
|
118
|
}
|
122
|
119
|
|
|
120
|
+
|
|
121
|
+ /**
|
|
122
|
+ * 交办
|
|
123
|
+ *
|
|
124
|
+ * @param taIssueProcess 实例对象
|
|
125
|
+ * @return 实例对象
|
|
126
|
+ */
|
|
127
|
+// @SaCheckPermission("manager")
|
|
128
|
+ @ApiOperation("再次交办")
|
|
129
|
+ @PostMapping("/taIssueProcess/assigned2")
|
|
130
|
+ public ResponseBean assigned2(@ApiParam("对象实体") @RequestBody TaIssueProcess taIssueProcess) throws Exception {
|
|
131
|
+ TaIssue taIssue = checkIssue(taIssueProcess);
|
|
132
|
+
|
|
133
|
+ if (StringUtils.isEmpty(taIssueProcess.getNextOrg())) {
|
|
134
|
+ return ResponseBean.error("请指定交办单位");
|
|
135
|
+ }
|
|
136
|
+
|
|
137
|
+ TaOrgIssue taOrgIssue = taOrgIssueService.getByIssueAndOrg(taIssue.getIssueId(), taIssue.getOrgId());
|
|
138
|
+ if (null == taOrgIssue) {
|
|
139
|
+ return ResponseBean.error("未找到当前交办单位");
|
|
140
|
+ }
|
|
141
|
+
|
|
142
|
+// if (StringUtils.isEmpty(taIssueProcess.getExpireDate())) {
|
|
143
|
+// return ResponseBean.error("请设置截止日期");
|
|
144
|
+// } else {
|
|
145
|
+// if (DateUtils.isAfter(taIssueProcess.getExpireDate() + " 23:59:59")) {
|
|
146
|
+// return ResponseBean.error("请设置有效的截止日期");
|
|
147
|
+// }
|
|
148
|
+// }
|
|
149
|
+
|
|
150
|
+ SysUser sysUser = currentUser();
|
|
151
|
+ taOrgIssueService.createNewIssue2(taIssue, taOrgIssue, taIssueProcess, sysUser);
|
|
152
|
+ return ResponseBean.success(taIssueProcess);
|
|
153
|
+ }
|
|
154
|
+
|
123
|
155
|
/**
|
124
|
156
|
* 管理员驳回问题单
|
125
|
157
|
*
|