Commit 9d60e0e6eb64f75763bc0fdcc279f6ca18c72936

Authored by youxiw2000
1 parent e1e1df2f

m

Showing 51 changed files with 726 additions and 445 deletions
trash-admin/src/main/java/com/trash/Application.java
@@ -3,6 +3,10 @@ package com.trash; @@ -3,6 +3,10 @@ package com.trash;
3 import org.springframework.boot.SpringApplication; 3 import org.springframework.boot.SpringApplication;
4 import org.springframework.boot.autoconfigure.SpringBootApplication; 4 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; 5 import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  6 +import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
  7 +import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
  8 +import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
  9 +import org.springframework.context.annotation.Bean;
6 import org.springframework.scheduling.annotation.EnableScheduling; 10 import org.springframework.scheduling.annotation.EnableScheduling;
7 11
8 /** 12 /**
@@ -16,8 +20,15 @@ public class Application @@ -16,8 +20,15 @@ public class Application
16 { 20 {
17 public static void main(String[] args) 21 public static void main(String[] args)
18 { 22 {
19 - // System.setProperty("spring.devtools.restart.enabled", "false"); 23 + System.setProperty("spring.devtools.restart.enabled", "true");
20 SpringApplication.run(Application.class, args); 24 SpringApplication.run(Application.class, args);
21 System.out.println("Application start success"); 25 System.out.println("Application start success");
22 } 26 }
  27 +
  28 + @Bean
  29 + public ConfigurableServletWebServerFactory webServerFactory() {
  30 + TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
  31 + factory.addConnectorCustomizers((TomcatConnectorCustomizer) connector -> connector.setProperty("relaxedQueryChars", "|{}[]\\"));
  32 + return factory;
  33 + }
23 } 34 }
trash-admin/src/main/resources/application-dev.yml
@@ -9,8 +9,8 @@ trash: @@ -9,8 +9,8 @@ trash:
9 # 实例演示开关 9 # 实例演示开关
10 demoEnabled: true 10 demoEnabled: true
11 # 文件路径 示例( Windows配置D:/trash/uploadPath,Linux配置 /home/trash/uploadPath,存储桶 trash/uploadPath,nginx配置 /trash/upload) 11 # 文件路径 示例( Windows配置D:/trash/uploadPath,Linux配置 /home/trash/uploadPath,存储桶 trash/uploadPath,nginx配置 /trash/upload)
12 - profile: /home/trash/uploadPath  
13 -# profile: E:/trash/uploadPath 12 + #profile: /home/trash/uploadPath
  13 + profile: E:/trash/uploadPath
14 # profile: F:/work/project/Documents/uploadPath/trash 14 # profile: F:/work/project/Documents/uploadPath/trash
15 # 获取ip地址开关 15 # 获取ip地址开关
16 addressEnabled: false 16 addressEnabled: false
trash-garbage/src/main/java/com/trash/garbage/controller/GarbageOrderController.java
@@ -94,7 +94,7 @@ public class GarbageOrderController { @@ -94,7 +94,7 @@ public class GarbageOrderController {
94 // 上传并返回新文件名称 94 // 上传并返回新文件名称
95 fileName = FileUploadUtils.upload(filePath, file); 95 fileName = FileUploadUtils.upload(filePath, file);
96 } catch (IOException e) { 96 } catch (IOException e) {
97 - log.error("上传图片异常",e); 97 +// log.error("上传图片异常",e);
98 throw new BizException(ResultCode.CODE_400, ResultCode.CODE_400.getMsg()); 98 throw new BizException(ResultCode.CODE_400, ResultCode.CODE_400.getMsg());
99 } 99 }
100 String url = serverConfig.getUrl() + fileName; 100 String url = serverConfig.getUrl() + fileName;
trash-garbage/src/main/java/com/trash/garbage/pojo/domain/GarOrderCar.java
@@ -55,7 +55,23 @@ public class GarOrderCar implements Serializable { @@ -55,7 +55,23 @@ public class GarOrderCar implements Serializable {
55 @TableField(fill = FieldFill.INSERT) 55 @TableField(fill = FieldFill.INSERT)
56 private String garCreateBy; 56 private String garCreateBy;
57 57
58 - /** 58 + public Integer getCarId() {
  59 + return carId;
  60 + }
  61 +
  62 + public void setCarId(Integer carId) {
  63 + this.carId = carId;
  64 + }
  65 +
  66 + public String getContainerVolume() {
  67 + return containerVolume;
  68 + }
  69 +
  70 + public void setContainerVolume(String containerVolume) {
  71 + this.containerVolume = containerVolume;
  72 + }
  73 +
  74 + /**
59 * 75 *
60 */ 76 */
61 @TableField(fill = FieldFill.INSERT_UPDATE) 77 @TableField(fill = FieldFill.INSERT_UPDATE)
trash-garbage/src/main/java/com/trash/garbage/pojo/dto/OrderDto.java
@@ -107,6 +107,8 @@ public class OrderDto { @@ -107,6 +107,8 @@ public class OrderDto {
107 private String garOrderCarType; 107 private String garOrderCarType;
108 108
109 private String containerVolume; 109 private String containerVolume;
  110 +
  111 +
110 112
111 public Integer getGarOrderCarNumber() { 113 public Integer getGarOrderCarNumber() {
112 return garOrderCarNumber; 114 return garOrderCarNumber;
trash-quartz/src/main/java/com/trash/quartz/task/DriverTask.java
@@ -728,8 +728,8 @@ public class DriverTask { @@ -728,8 +728,8 @@ public class DriverTask {
728 CompanyCredit companyCredit = new CompanyCredit(); 728 CompanyCredit companyCredit = new CompanyCredit();
729 companyCredit.setTime(new Date()); 729 companyCredit.setTime(new Date());
730 companyCredit.setCreateBy("长沙市建筑垃圾智慧监管平台"); 730 companyCredit.setCreateBy("长沙市建筑垃圾智慧监管平台");
731 - companyCredit.setReason("企业道路运输经营许可证有效期:" + company.getString("businessLicenseValidTime")  
732 - + " 企业营业执照有效期:" + company.getString("registrationValidTime") + ",证件过期"); 731 + companyCredit.setReason("企业道路运输经营许可证有效期:" + company.getString("registrationValidTime")
  732 + + " 企业营业执照有效期:" + company.getString("businessLicenseValidTime") + ",证件过期");
733 companyCredit.setLostCredit(1L); 733 companyCredit.setLostCredit(1L);
734 companyCredit.setObjectId(company.getString("id")); 734 companyCredit.setObjectId(company.getString("id"));
735 companyCredit.setName(company.getString("name")); 735 companyCredit.setName(company.getString("name"));
@@ -828,7 +828,14 @@ public class DriverTask { @@ -828,7 +828,14 @@ public class DriverTask {
828 mobile2.setMobile(p1); 828 mobile2.setMobile(p1);
829 mobileList.add(mobile2); 829 mobileList.add(mobile2);
830 } 830 }
831 - 831 +
  832 + String p2 = json.getString("principaledPhone");
  833 + if(p2 != null){
  834 + Mobile mobile3=new Mobile();
  835 + mobile3.setMobile(p2);
  836 + mobileList.add(mobile3);
  837 + }
  838 +
832 String smsString = "到期提醒:"+json.getString("name")+"将于"+json.getString("effectiveEnd")+"到期(截止日),请在到期日前及时办理相关手续。"; 839 String smsString = "到期提醒:"+json.getString("name")+"将于"+json.getString("effectiveEnd")+"到期(截止日),请在到期日前及时办理相关手续。";
833 840
834 JsonSmsSend jsonSmsSend= PostSms.sendSms(mobileList,smsString); 841 JsonSmsSend jsonSmsSend= PostSms.sendSms(mobileList,smsString);
trash-ui/dist.7z 0 → 100644
No preview for this file type
trash-ui/dist.zip deleted 100644 → 0
No preview for this file type
trash-ui/src/api/caseoffline.js
@@ -247,7 +247,7 @@ export default { @@ -247,7 +247,7 @@ export default {
247 /** 查询线下交办案卷列表 */ 247 /** 查询线下交办案卷列表 */
248 getList() { 248 getList() {
249 this.loading = true; 249 this.loading = true;
250 - 250 +
251 if(this.queryParams.createTime){ 251 if(this.queryParams.createTime){
252 this.queryParams.startTime = this.queryParams.createTime[0]; 252 this.queryParams.startTime = this.queryParams.createTime[0];
253 this.queryParams.endTime = this.queryParams.createTime[1]; 253 this.queryParams.endTime = this.queryParams.createTime[1];
@@ -260,6 +260,9 @@ export default { @@ -260,6 +260,9 @@ export default {
260 } 260 }
261 261
262 query.createTime = null; 262 query.createTime = null;
  263 +
  264 + if(query.place)
  265 + query.place = query.place + ""
263 266
264 listCaseOffline(query).then(response => { 267 listCaseOffline(query).then(response => {
265 this.caseOfflineList = response.rows; 268 this.caseOfflineList = response.rows;
@@ -442,6 +445,9 @@ export default { @@ -442,6 +445,9 @@ export default {
442 for(var i in this.queryParams){ 445 for(var i in this.queryParams){
443 query[i] = this.queryParams[i]; 446 query[i] = this.queryParams[i];
444 } 447 }
  448 +
  449 + if(query.place)
  450 + query.place = query.place + ""
445 451
446 query.createTime = null; 452 query.createTime = null;
447 this.$confirm('是否确认导出所有线下交办案卷数据项?', "警告", { 453 this.$confirm('是否确认导出所有线下交办案卷数据项?', "警告", {
trash-ui/src/api/dayWorkReport.js
1 import h5Page from '@/views/h5/Pagination'; 1 import h5Page from '@/views/h5/Pagination';
2 -  
3 -import threeHistory from '@/views/business/threeHistory/index'; 2 +
  3 +import threeHistory from '@/views/business/threeHistory/index';
4 import earthInfo from '@/views/business/threeHistory/earthInfo'; 4 import earthInfo from '@/views/business/threeHistory/earthInfo';
5 5
6 import { 6 import {
@@ -16,7 +16,7 @@ import { @@ -16,7 +16,7 @@ import {
16 addThreestep, 16 addThreestep,
17 updateThreestep, 17 updateThreestep,
18 exportThreestep, 18 exportThreestep,
19 - getNames, 19 + getNames,
20 postThreestep 20 postThreestep
21 } from "@/api/business/threestep"; 21 } from "@/api/business/threestep";
22 22
@@ -33,16 +33,16 @@ import { @@ -33,16 +33,16 @@ import {
33 constructionsitesList, 33 constructionsitesList,
34 getDict, 34 getDict,
35 getArea 35 getArea
36 -} from "@/api/dict";  
37 -  
38 - import threestepInfo from "@/views/business/threestep/threestepInfo"; 36 +} from "@/api/dict";
  37 +
  38 +import threestepInfo from "@/views/business/threestep/threestepInfo";
39 39
40 export default { 40 export default {
41 name: "dayWorkReport", 41 name: "dayWorkReport",
42 components: { 42 components: {
43 h5Page, 43 h5Page,
44 - threestepInfo,  
45 - threeHistory, 44 + threestepInfo,
  45 + threeHistory,
46 earthInfo, 46 earthInfo,
47 }, 47 },
48 data() { 48 data() {
@@ -85,7 +85,7 @@ export default { @@ -85,7 +85,7 @@ export default {
85 earthsitesName: null, 85 earthsitesName: null,
86 place: null, 86 place: null,
87 subReason: null, 87 subReason: null,
88 - timeRange:null, 88 + timeRange: null,
89 }, 89 },
90 // 表单参数 90 // 表单参数
91 form: {}, 91 form: {},
@@ -116,12 +116,12 @@ export default { @@ -116,12 +116,12 @@ export default {
116 projectTypes: null, 116 projectTypes: null,
117 earthsitesTypes: null, 117 earthsitesTypes: null,
118 dayWorkCount: null, 118 dayWorkCount: null,
119 - outside: ["长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"],  
120 - info2:false,  
121 - businessKey:null,  
122 - names:null,  
123 - enames:null,  
124 - threeHistoryType:0, 119 + outside: ["长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"],
  120 + info2: false,
  121 + businessKey: null,
  122 + names: null,
  123 + enames: null,
  124 + threeHistoryType: 0,
125 }; 125 };
126 }, 126 },
127 created() { 127 created() {
@@ -132,62 +132,59 @@ export default { @@ -132,62 +132,59 @@ export default {
132 }); 132 });
133 133
134 }, 134 },
135 - methods: {  
136 - getInfo(row,type){  
137 -  
138 - if(!type){  
139 - row.status = row.status == 1 ? "开工" : row.status;  
140 - type = row.type;  
141 -  
142 - obj = {  
143 - objectId:row.objectId,  
144 - selfCheckTime:row.selfCheckTime,  
145 - type:row.type  
146 - }  
147 -  
148 - postThreestep(obj).then(res=>{  
149 - if(res){  
150 - this.businessKey = res.data.id + "";  
151 - this.info2 = true;  
152 - }  
153 - });  
154 -  
155 - return;  
156 - }  
157 - let obj = {};  
158 - if(type == 0){  
159 - if(row.status != "开工"){  
160 - return;  
161 - }  
162 - obj = {  
163 - objectId:row.objectId,  
164 - selfCheckTime:row.selfCheckTime,  
165 - type:0  
166 - }  
167 -  
168 - }else{  
169 - if(row.estatus != "开工"){  
170 - return;  
171 - }  
172 - obj = {  
173 - objectId:row.eid,  
174 - selfCheckTime:row.eselfCheckTime,  
175 - type:1  
176 - }  
177 - }  
178 -  
179 -  
180 -  
181 - postThreestep(obj).then(res=>{  
182 - if(res){  
183 - this.businessKey = res.data.id + "";  
184 - this.info2 = true;  
185 - }  
186 - });  
187 -  
188 -  
189 -  
190 - 135 + methods: {
  136 + getInfo(row, type) {
  137 +
  138 + if (!type) {
  139 + row.status = row.status == 1 ? "开工" : row.status;
  140 + type = row.type;
  141 +
  142 + obj = {
  143 + objectId: row.objectId,
  144 + selfCheckTime: row.selfCheckTime,
  145 + type: row.type
  146 + }
  147 +
  148 + postThreestep(obj).then(res => {
  149 + if (res) {
  150 + this.businessKey = res.data.id + ""; this.info2 = true; }
  151 + });
  152 +
  153 + return;
  154 + }
  155 + let obj = {};
  156 + if (type == 0) {
  157 + if (row.status != "开工") {
  158 + return;
  159 + }
  160 + obj = {
  161 + objectId: row.objectId,
  162 + selfCheckTime: row.selfCheckTime,
  163 + type: 0
  164 + }
  165 +
  166 + } else {
  167 + if (row.estatus != "开工") {
  168 + return;
  169 + }
  170 + obj = {
  171 + objectId: row.eid,
  172 + selfCheckTime: row.eselfCheckTime,
  173 + type: 1
  174 + }
  175 + }
  176 +
  177 +
  178 +
  179 + postThreestep(obj).then(res => {
  180 + if (res) {
  181 + this.businessKey = res.data.id + ""; this.info2 = true;
  182 + }
  183 + });
  184 +
  185 +
  186 +
  187 +
191 }, 188 },
192 areaClear() { 189 areaClear() {
193 this.areaCode = null; 190 this.areaCode = null;
@@ -221,7 +218,7 @@ export default { @@ -221,7 +218,7 @@ export default {
221 var size = this.queryParams.pageSize; 218 var size = this.queryParams.pageSize;
222 219
223 this.queryParams.page = 1; 220 this.queryParams.page = 1;
224 - this.queryParams.pageSize = 9999; 221 + this.queryParams.pageSize = 9999;
225 222
226 if (this.queryParams.timeRange) { 223 if (this.queryParams.timeRange) {
227 this.queryParams.workStartTime = this.queryParams.timeRange[0]; 224 this.queryParams.workStartTime = this.queryParams.timeRange[0];
@@ -229,8 +226,20 @@ export default { @@ -229,8 +226,20 @@ export default {
229 this.queryParams.timeRange = null; 226 this.queryParams.timeRange = null;
230 } 227 }
231 228
  229 +
  230 +
  231 +
  232 + if (this.queryParams.place && this.queryParams.place.length > 0) {
  233 + this.queryParams.place = this.queryParams.place + "";
  234 + }
  235 +
  236 + if (this.queryParams.subReason && this.queryParams.subReason.length > 0) {
  237 + this.queryParams.subReason = this.queryParams.subReason + "";
  238 + }
  239 +
  240 +
232 dayWorkList(this.queryParams).then(response => { 241 dayWorkList(this.queryParams).then(response => {
233 - let list = response.rows; 242 + let list = response.rows;
234 243
235 for (let i = 0; i < list.length; i++) { 244 for (let i = 0; i < list.length; i++) {
236 list[i].place = this.getAreaName(list[i].place); 245 list[i].place = this.getAreaName(list[i].place);
@@ -279,9 +288,7 @@ export default { @@ -279,9 +288,7 @@ export default {
279 }); 288 });
280 } else { 289 } else {
281 exportDayWorkList(data).then(res => { 290 exportDayWorkList(data).then(res => {
282 - console.log(page);  
283 this.queryParams.page = page; 291 this.queryParams.page = page;
284 - console.log(size);  
285 this.queryParams.pageSize = size; 292 this.queryParams.pageSize = size;
286 this.download(res.message); 293 this.download(res.message);
287 294
@@ -293,81 +300,108 @@ export default { @@ -293,81 +300,108 @@ export default {
293 300
294 }, 301 },
295 /** 查询开工报表列表 */ 302 /** 查询开工报表列表 */
296 - getList(tabIdx) {  
297 -  
298 - if(tabIdx && tabIdx > 3){  
299 - 303 + getList(tabIdx) {
  304 +
  305 + if (tabIdx && tabIdx > 3) {
  306 +
300 this.queryParams.his = tabIdx; 307 this.queryParams.his = tabIdx;
301 - this.$forceUpdate();  
302 - return;  
303 - }  
304 - 308 + this.$forceUpdate();
  309 + return;
  310 + }
  311 +
305 312
306 this.loading = this.$loading({ 313 this.loading = this.$loading({
307 - lock: true,  
308 - text: 'Loading',  
309 - spinner: 'el-icon-loading',  
310 - background: 'rgba(255, 255, 255, 0.7)'  
311 - }); 314 + lock: true,
  315 + text: 'Loading',
  316 + spinner: 'el-icon-loading',
  317 + background: 'rgba(255, 255, 255, 0.7)'
  318 + });
312 // let query = this.queryParams; 319 // let query = this.queryParams;
313 320
314 if (this.queryParams.his != tabIdx && tabIdx == 1) { 321 if (this.queryParams.his != tabIdx && tabIdx == 1) {
315 this.queryParams.pageNum = 1; 322 this.queryParams.pageNum = 1;
316 - this.resetQuery();  
317 - this.names = null; 323 + this.resetQuery();
  324 + this.names = null;
318 this.ename = null; 325 this.ename = null;
319 this.queryParams.his = tabIdx; 326 this.queryParams.his = tabIdx;
320 } else if (this.queryParams.his != tabIdx && tabIdx == 0) { 327 } else if (this.queryParams.his != tabIdx && tabIdx == 0) {
321 this.queryParams.pageNum = 1; 328 this.queryParams.pageNum = 1;
322 - this.resetQuery();  
323 - this.names = null; 329 + this.resetQuery();
  330 + this.names = null;
324 this.ename = null; 331 this.ename = null;
325 this.queryParams.his = tabIdx; 332 this.queryParams.his = tabIdx;
326 - } 333 + }
327 334
328 const timeRange = this.queryParams.timeRange; 335 const timeRange = this.queryParams.timeRange;
329 if (this.queryParams.timeRange) { 336 if (this.queryParams.timeRange) {
330 this.queryParams.workStartTime = this.queryParams.timeRange[0]; 337 this.queryParams.workStartTime = this.queryParams.timeRange[0];
331 this.queryParams.workEndTime = this.queryParams.timeRange[1]; 338 this.queryParams.workEndTime = this.queryParams.timeRange[1];
332 this.queryParams.timeRange = null; 339 this.queryParams.timeRange = null;
333 - }  
334 -  
335 - if (tabIdx > 1 || this.queryParams.his > 1) {  
336 - this.queryParams.his = tabIdx;  
337 - this.queryParams.status = 1;  
338 - if(tabIdx == 2){  
339 - this.queryParams.type = 0;  
340 - }else{  
341 - this.queryParams.type = 1;  
342 - }  
343 -  
344 - getNames(this.queryParams).then(res => {  
345 - this.names = res;  
346 - })  
347 -  
348 -  
349 - listThreestep(this.queryParams).then(response => {  
350 - this.threestepList = response.rows; 340 + }
  341 +
  342 + if (tabIdx > 1 || this.queryParams.his > 1) {
  343 + this.queryParams.his = tabIdx;
  344 + this.queryParams.status = 1;
  345 + if (tabIdx == 2) {
  346 + this.queryParams.type = 0;
  347 + } else {
  348 + this.queryParams.type = 1;
  349 + }
  350 +
  351 + getNames(this.queryParams).then(res => {
  352 + this.names = res;
  353 + })
  354 +
  355 + if (this.queryParams.place && this.queryParams.place.length > 0) {
  356 + this.queryParams.place = this.queryParams.place + "";
  357 + }
  358 +
  359 + listThreestep(this.queryParams).then(response => {
  360 + this.threestepList = response.rows;
351 this.total = response.total; 361 this.total = response.total;
352 -  
353 - this.loading.close();  
354 -  
355 - for (let i = 0; i < this.threestepList.length; i++) {  
356 - this.threestepList[i].place = this.getAreaName(this.threestepList[i].place);  
357 - }  
358 - });  
359 - return;  
360 - } 362 +
  363 + if (this.queryParams.place && this.queryParams.place.length > 0) {
  364 + let ps = this.queryParams.place.split(",");
  365 + this.queryParams.place = [];
  366 + for (let i in ps) {
  367 + this.queryParams.place.push(Number(ps[i]));
  368 + }
  369 + }
  370 + this.loading.close();
  371 +
  372 + for (let i = 0; i < this.threestepList.length; i++) {
  373 + this.threestepList[i].place = this.getAreaName(this.threestepList[i].place);
  374 + }
  375 + });
  376 + return;
  377 + }
361 378
  379 + if (this.queryParams.place && this.queryParams.place.length > 0) {
  380 + this.queryParams.place = this.queryParams.place + "";
  381 + }
362 382
  383 + if (this.queryParams.subReason && this.queryParams.subReason.length > 0) {
  384 + this.queryParams.subReason = this.queryParams.subReason + "";
  385 + }
363 dayWorkList(this.queryParams).then(response => { 386 dayWorkList(this.queryParams).then(response => {
364 - this.threestepList = response.rows;  
365 -  
366 - if(!this.names){  
367 - this.names = response.names;  
368 - this.enames = response.enames;  
369 - }  
370 - 387 + this.threestepList = response.rows;
  388 +
  389 + if (!this.names) {
  390 + this.names = response.names;
  391 + this.enames = response.enames;
  392 + }
  393 +
  394 + if (this.queryParams.place && this.queryParams.place.length > 0) {
  395 + let ps = this.queryParams.place.split(",");
  396 + this.queryParams.place = [];
  397 + for (let i in ps) {
  398 + this.queryParams.place.push(Number(ps[i]));
  399 + }
  400 + }
  401 +
  402 + if (this.queryParams.subReason && this.queryParams.subReason.length > 0) {
  403 + this.queryParams.subReason = this.queryParams.subReason.split(",");
  404 + }
371 405
372 this.queryParams.timeRange = timeRange; 406 this.queryParams.timeRange = timeRange;
373 this.loading.close(); 407 this.loading.close();
@@ -430,7 +464,7 @@ export default { @@ -430,7 +464,7 @@ export default {
430 this.queryParams.subReason = null; 464 this.queryParams.subReason = null;
431 this.queryParams.place = null; 465 this.queryParams.place = null;
432 this.queryParams.earthsitesName = null; 466 this.queryParams.earthsitesName = null;
433 - this.queryParams.name = null; 467 + this.queryParams.name = null;
434 this.queryParams.workAreaCodeName = null; 468 this.queryParams.workAreaCodeName = null;
435 469
436 this.resetForm("queryForm"); 470 this.resetForm("queryForm");
@@ -539,7 +573,7 @@ export default { @@ -539,7 +573,7 @@ export default {
539 confirmButtonText: "确定", 573 confirmButtonText: "确定",
540 cancelButtonText: "取消", 574 cancelButtonText: "取消",
541 type: "warning" 575 type: "warning"
542 - }).then(function () { 576 + }).then(function() {
543 return delThreestep(ids); 577 return delThreestep(ids);
544 }).then(() => { 578 }).then(() => {
545 this.getList(); 579 this.getList();
@@ -547,25 +581,30 @@ export default { @@ -547,25 +581,30 @@ export default {
547 }) 581 })
548 }, 582 },
549 /** 导出按钮操作 */ 583 /** 导出按钮操作 */
550 - handleExport() {  
551 - if(this.queryParams.his > 1){  
552 - const queryParams = this.queryParams;  
553 - this.$confirm('是否确认导出所有报工数据项?', "警告", {  
554 - confirmButtonText: "确定",  
555 - cancelButtonText: "取消",  
556 - type: "warning"  
557 - }).then(function () {  
558 - return exportThreestep(queryParams);  
559 - }).then(response => {  
560 - this.download(response.message);  
561 - })  
562 -  
563 - return;  
564 - }  
565 -  
566 -  
567 - 584 + handleExport() { const queryParams = this.queryParams;
  585 + if (this.queryParams.his > 1) {
  586 +
  587 + if (this.queryParams.place && this.queryParams.place.length > 0) {
  588 + queryParams.place = this.queryParams.place + "";
  589 + }
  590 +
  591 + if (this.queryParams.subReason && this.queryParams.subReason.length > 0) {
  592 + queryParams.subReason = this.queryParams.subReason + "";
  593 + }
  594 +
  595 + this.$confirm('是否确认导出所有报工数据项?', "警告", {
  596 + confirmButtonText: "确定",
  597 + cancelButtonText: "取消",
  598 + type: "warning"
  599 + }).then(function() {
568 600
  601 + return exportThreestep(queryParams);
  602 + }).then(response => {
  603 + this.download(response.message);
  604 + })
  605 +
  606 + return;
  607 + }
569 let curPage = this.queryParams.page; 608 let curPage = this.queryParams.page;
570 let curSize = this.queryParams.pageSize; 609 let curSize = this.queryParams.pageSize;
571 let that = this; 610 let that = this;
@@ -574,11 +613,11 @@ export default { @@ -574,11 +613,11 @@ export default {
574 confirmButtonText: "确定", 613 confirmButtonText: "确定",
575 cancelButtonText: "取消", 614 cancelButtonText: "取消",
576 type: "warning" 615 type: "warning"
577 - }).then(function () { 616 + }).then(function() {
578 that.loading = true; 617 that.loading = true;
579 that.getListAndExport(); 618 that.getListAndExport();
580 }); 619 });
581 620
582 } 621 }
583 } 622 }
584 -}; 623 +};
trash-ui/src/api/taskhismethod.js
@@ -157,7 +157,7 @@ export default { @@ -157,7 +157,7 @@ export default {
157 this.earthsites = true; 157 this.earthsites = true;
158 return; 158 return;
159 } 159 }
160 - if (this.definitionKey == "workflow_conract") { 160 + if (this.definitionKey == "workflow_conract" || this.definitionKey == "workflow_conract_edit") {
161 this.contract = true; 161 this.contract = true;
162 return; 162 return;
163 } 163 }
trash-ui/src/api/taskmethod.js
@@ -242,7 +242,7 @@ export default { @@ -242,7 +242,7 @@ export default {
242 this.earthsites = true; 242 this.earthsites = true;
243 return; 243 return;
244 } 244 }
245 - if (this.definitionKey == "workflow_conract") { 245 + if (this.definitionKey == "workflow_conract" || this.definitionKey == "workflow_conract_edit") {
246 this.contract = true; 246 this.contract = true;
247 return; 247 return;
248 } 248 }
@@ -566,6 +566,7 @@ export default { @@ -566,6 +566,7 @@ export default {
566 this.definitionKey == "workflow_vehicle" || 566 this.definitionKey == "workflow_vehicle" ||
567 this.definitionKey == "workflow_earthsites" || 567 this.definitionKey == "workflow_earthsites" ||
568 this.definitionKey == "workflow_conract" || 568 this.definitionKey == "workflow_conract" ||
  569 + this.definitionKey == "workflow_conract_edit" ||
569 this.definitionKey == "workflow_constructsite_edit" || 570 this.definitionKey == "workflow_constructsite_edit" ||
570 this.definitionKey == "workflow_earthsites_edit") { 571 this.definitionKey == "workflow_earthsites_edit") {
571 formDataSave(this.id, this.form.formData).then(response => { 572 formDataSave(this.id, this.form.formData).then(response => {
trash-ui/src/api/three_step.js
@@ -613,9 +613,22 @@ export default { @@ -613,9 +613,22 @@ export default {
613 } 613 }
614 614
615 615
616 - this.loading = true; 616 + this.loading = true;
  617 + if(this.queryParams.place){
  618 + this.queryParams.places = this.queryParams.place + "";
  619 + this.queryParams.place = [];
  620 + }
  621 +
  622 +
617 listThreestep(this.queryParams).then(response => { 623 listThreestep(this.queryParams).then(response => {
618 - this.threestepList = response.rows; 624 + this.threestepList = response.rows;
  625 + debugger;
  626 + if(this.queryParams.places){
  627 + let ps = this.queryParams.places.split(",");
  628 + for(let i in ps){
  629 + this.queryParams.place.push(Number(ps[i]));
  630 + }
  631 + }
619 this.total = response.total; 632 this.total = response.total;
620 this.loading = false; 633 this.loading = false;
621 for (let i = 0; i < this.threestepList.length; i++) { 634 for (let i = 0; i < this.threestepList.length; i++) {
@@ -1007,12 +1020,27 @@ export default { @@ -1007,12 +1020,27 @@ export default {
1007 }, 1020 },
1008 /** 导出按钮操作 */ 1021 /** 导出按钮操作 */
1009 handleExport() { 1022 handleExport() {
1010 - const queryParams = this.queryParams; 1023 + const queryParams = this.queryParams;
  1024 +
  1025 + if(this.queryParams.place){
  1026 + queryParams.places = this.queryParams.place + "";
  1027 + queryParams.place = [];
  1028 + }
  1029 +
  1030 +
  1031 +
1011 this.$confirm('是否确认导出所有报工数据项?', "警告", { 1032 this.$confirm('是否确认导出所有报工数据项?', "警告", {
1012 confirmButtonText: "确定", 1033 confirmButtonText: "确定",
1013 cancelButtonText: "取消", 1034 cancelButtonText: "取消",
1014 type: "warning" 1035 type: "warning"
1015 - }).then(function () { 1036 + }).then(function () {
  1037 +
  1038 + if(queryParams.places){
  1039 + let ps = this.queryParams.places.split(",");
  1040 + for(let i in ps){
  1041 + this.queryParams.place.push(Number(ps[i]));
  1042 + }
  1043 + }
1016 return exportThreestep(queryParams); 1044 return exportThreestep(queryParams);
1017 }).then(response => { 1045 }).then(response => {
1018 this.download(response.message); 1046 this.download(response.message);
trash-ui/src/api/trackTable.js
@@ -253,7 +253,7 @@ export default { @@ -253,7 +253,7 @@ export default {
253 this.tableList[i].type = "交办案卷" 253 this.tableList[i].type = "交办案卷"
254 } 254 }
255 if(this.tableList[i].type == 7){ 255 if(this.tableList[i].type == 7){
256 - this.tableList[i].type = "违规案卷" 256 + this.tableList[i].type = "预警信息"
257 } 257 }
258 258
259 } 259 }
trash-ui/src/api/truck_credit.js
@@ -109,7 +109,6 @@ import h5Page from &#39;@/views/h5/Pagination&#39;; @@ -109,7 +109,6 @@ import h5Page from &#39;@/views/h5/Pagination&#39;;
109 let query = { 109 let query = {
110 'page':1, 110 'page':1,
111 'size':9999, 111 'size':9999,
112 - 'dishonestState':0  
113 } 112 }
114 companyList(query).then(response => { 113 companyList(query).then(response => {
115 114
trash-ui/src/api/vio_casefile.js
@@ -39,7 +39,7 @@ export default { @@ -39,7 +39,7 @@ export default {
39 showSearch: true, 39 showSearch: true,
40 // 总条数 40 // 总条数
41 total: 0, 41 total: 0,
42 - // 平台违规案卷表格数据 42 + // 预警信息表格数据
43 violationCaseFileList: [], 43 violationCaseFileList: [],
44 // 弹出层标题 44 // 弹出层标题
45 title: "", 45 title: "",
@@ -282,7 +282,7 @@ export default { @@ -282,7 +282,7 @@ export default {
282 // this.form.owningRegion = item.name; 282 // this.form.owningRegion = item.name;
283 283
284 // }, 284 // },
285 - /** 查询平台违规案卷列表 */ 285 + /** 查询预警信息列表 */
286 getList() { 286 getList() {
287 this.loading = true; 287 this.loading = true;
288 if(this.queryParams.createTime){ 288 if(this.queryParams.createTime){
@@ -297,6 +297,8 @@ export default { @@ -297,6 +297,8 @@ export default {
297 } 297 }
298 298
299 query.createTime = null; 299 query.createTime = null;
  300 + if(query.owningRegion)
  301 + query.owningRegion = query.owningRegion + ""
300 302
301 listViolationCaseFile(query).then(response => { 303 listViolationCaseFile(query).then(response => {
302 this.violationCaseFileList = response.rows; 304 this.violationCaseFileList = response.rows;
@@ -362,7 +364,7 @@ export default { @@ -362,7 +364,7 @@ export default {
362 handleInfo(row) { 364 handleInfo(row) {
363 this.idInfo = row.id + ""; 365 this.idInfo = row.id + "";
364 this.openInfo = true; 366 this.openInfo = true;
365 - this.title = "平台违规案卷详情"; 367 + this.title = "预警信息详情";
366 }, 368 },
367 /** 新增按钮操作 */ 369 /** 新增按钮操作 */
368 handleAdd() { 370 handleAdd() {
@@ -373,7 +375,7 @@ export default { @@ -373,7 +375,7 @@ export default {
373 this.form.number = this.getNumber(); 375 this.form.number = this.getNumber();
374 this.form.violationGrade = "一般类"; 376 this.form.violationGrade = "一般类";
375 this.form.sendObject = "区管理部门"; 377 this.form.sendObject = "区管理部门";
376 - this.title = "添加平台违规案卷"; 378 + this.title = "添加预警信息";
377 }, 379 },
378 /** 修改按钮操作 */ 380 /** 修改按钮操作 */
379 handleUpdate(row) { 381 handleUpdate(row) {
@@ -384,7 +386,7 @@ export default { @@ -384,7 +386,7 @@ export default {
384 let files = JSON.stringify(response.data.uploadFiles); 386 let files = JSON.stringify(response.data.uploadFiles);
385 this.fileEntityList = JSON.parse(files.replaceAll("filePath", "url").replaceAll("fileName", "name")) 387 this.fileEntityList = JSON.parse(files.replaceAll("filePath", "url").replaceAll("fileName", "name"))
386 this.open = true; 388 this.open = true;
387 - this.title = "修改平台违规案卷"; 389 + this.title = "修改预警信息";
388 }); 390 });
389 }, 391 },
390 /** 提交按钮 */ 392 /** 提交按钮 */
@@ -444,7 +446,7 @@ export default { @@ -444,7 +446,7 @@ export default {
444 /** 删除按钮操作 */ 446 /** 删除按钮操作 */
445 handleDelete(row) { 447 handleDelete(row) {
446 const ids = row.id || this.ids; 448 const ids = row.id || this.ids;
447 - this.$confirm('是否确认删除平台违规案卷编号为"' + ids + '"的数据项?', "警告", { 449 + this.$confirm('是否确认删除预警信息编号为"' + ids + '"的数据项?', "警告", {
448 confirmButtonText: "确定", 450 confirmButtonText: "确定",
449 cancelButtonText: "取消", 451 cancelButtonText: "取消",
450 type: "warning" 452 type: "warning"
@@ -469,8 +471,11 @@ export default { @@ -469,8 +471,11 @@ export default {
469 } 471 }
470 472
471 query.createTime = null; 473 query.createTime = null;
472 -  
473 - this.$confirm('是否确认导出所有平台违规案卷数据项?', "警告", { 474 +
  475 + if(query.owningRegion)
  476 + query.owningRegion = query.owningRegion + ""
  477 +
  478 + this.$confirm('是否确认导出所有预警信息数据项?', "警告", {
474 confirmButtonText: "确定", 479 confirmButtonText: "确定",
475 cancelButtonText: "取消", 480 cancelButtonText: "取消",
476 type: "warning" 481 type: "warning"
trash-ui/src/api/warningInfo.js
@@ -27,7 +27,6 @@ import { @@ -27,7 +27,6 @@ import {
27 getEarthSitesList, 27 getEarthSitesList,
28 getConstructionList, 28 getConstructionList,
29 getCompanyList, 29 getCompanyList,
30 - getAreaList  
31 } from "@/api/casefile/remoteServer"; 30 } from "@/api/casefile/remoteServer";
32 import {getBase64} from "@/api/business/threestep"; 31 import {getBase64} from "@/api/business/threestep";
33 32
@@ -157,8 +156,8 @@ export default { @@ -157,8 +156,8 @@ export default {
157 this.caseType = res.rows; 156 this.caseType = res.rows;
158 }); 157 });
159 158
160 - getAreaList().then(res => {  
161 - this.areas = res.data; 159 + getArea().then(res => {
  160 + this.areas = res.result;
162 }); 161 });
163 162
164 163
@@ -260,9 +259,12 @@ export default { @@ -260,9 +259,12 @@ export default {
260 } 259 }
261 260
262 query.createTime = null; 261 query.createTime = null;
  262 + if(query.owningRegion)
  263 + query.owningRegion = query.owningRegion + ""
  264 +
  265 + listViolationWarningInformation(query).then(response => {
263 266
264 267
265 - listViolationWarningInformation(query).then(response => {  
266 this.violationWarningInformationList = response.rows; 268 this.violationWarningInformationList = response.rows;
267 this.total = response.total; 269 this.total = response.total;
268 this.loading = false; 270 this.loading = false;
@@ -324,7 +326,7 @@ export default { @@ -324,7 +326,7 @@ export default {
324 handleInfo(row) { 326 handleInfo(row) {
325 this.idInfo = row.id + ""; 327 this.idInfo = row.id + "";
326 this.openInfo = true; 328 this.openInfo = true;
327 - this.title = "平台违规案卷详情"; 329 + this.title = "违规预警详情";
328 }, 330 },
329 /** 新增按钮操作 */ 331 /** 新增按钮操作 */
330 handleAdd() { 332 handleAdd() {
@@ -427,7 +429,9 @@ export default { @@ -427,7 +429,9 @@ export default {
427 for(var i in this.queryParams){ 429 for(var i in this.queryParams){
428 query[i] = this.queryParams[i]; 430 query[i] = this.queryParams[i];
429 } 431 }
430 - 432 + if(query.owningRegion)
  433 + query.owningRegion = query.owningRegion + ""
  434 +
431 query.createTime = null; 435 query.createTime = null;
432 436
433 this.$confirm('是否确认导出所有违规预警信息数据项?', "警告", { 437 this.$confirm('是否确认导出所有违规预警信息数据项?', "警告", {
trash-ui/src/views/activiti/task/index.vue
@@ -30,8 +30,8 @@ @@ -30,8 +30,8 @@
30 <el-option label="驾驶员信息审批" value="workflow_driver"/> 30 <el-option label="驾驶员信息审批" value="workflow_driver"/>
31 <el-option label="报工审批" value="workflow_threestep"/> 31 <el-option label="报工审批" value="workflow_threestep"/>
32 <el-option label="交办案卷" value="workflow_caseoffline"/> 32 <el-option label="交办案卷" value="workflow_caseoffline"/>
33 - <el-option label="违规案卷处置流程" value="workflow_casefile"/>  
34 - <el-option label="平台预警信息" value="violation_warning"/> 33 + <el-option label="预警信息" value="workflow_casefile"/>
  34 + <el-option label="预警提醒" value="violation_warning"/>
35 <el-option label="办文办事" value="handleAffairs"/> 35 <el-option label="办文办事" value="handleAffairs"/>
36 <el-option label="后勤管理" value="logistics"/> 36 <el-option label="后勤管理" value="logistics"/>
37 <el-option label="会议事务" value="conference"/> 37 <el-option label="会议事务" value="conference"/>
trash-ui/src/views/activiti/taskhistory/index.vue
@@ -22,8 +22,8 @@ @@ -22,8 +22,8 @@
22 <el-option label="驾驶员信息审批" value="workflow_driver"/> 22 <el-option label="驾驶员信息审批" value="workflow_driver"/>
23 <el-option label="报工审批" value="workflow_threestep"/> 23 <el-option label="报工审批" value="workflow_threestep"/>
24 <el-option label="交办案卷" value="workflow_caseoffline"/> 24 <el-option label="交办案卷" value="workflow_caseoffline"/>
25 - <el-option label="违规案卷处置流程" value="workflow_casefile"/>  
26 - <el-option label="平台预警信息" value="violation_warning"/> 25 + <el-option label="预警信息" value="workflow_casefile"/>
  26 + <el-option label="预警提醒" value="violation_warning"/>
27 <el-option label="办文办事" value="handleAffairs"/> 27 <el-option label="办文办事" value="handleAffairs"/>
28 <el-option label="后勤管理" value="logistics"/> 28 <el-option label="后勤管理" value="logistics"/>
29 <el-option label="会议事务" value="conference"/> 29 <el-option label="会议事务" value="conference"/>
trash-ui/src/views/business/DriverCredit/index.vue
@@ -109,8 +109,7 @@ @@ -109,8 +109,7 @@
109 reserve-keyword 109 reserve-keyword
110 placeholder="驾驶员姓名" 110 placeholder="驾驶员姓名"
111 @change="getObjId"> 111 @change="getObjId">
112 - <el-option  
113 - v-if="dictNames.indexOf(item.name) == -1" 112 + <el-option
114 v-for="item in driverList" 113 v-for="item in driverList"
115 :key="item.id" 114 :key="item.id"
116 :label="item.name" 115 :label="item.name"
trash-ui/src/views/business/dayWorkReport/index.vue
@@ -58,14 +58,14 @@ @@ -58,14 +58,14 @@
58 </el-col> 58 </el-col>
59 <el-col :span="4"> 59 <el-col :span="4">
60 <el-form-item label="工地区属" > 60 <el-form-item label="工地区属" >
61 - <el-select v-model="queryParams.place" placeholder="工地所属区域 " size="small"> 61 + <el-select v-model="queryParams.place" multiple placeholder="工地所属区域 " size="small">
62 <el-option v-for="item in areas" :label="item.name" :value="item.code" /> 62 <el-option v-for="item in areas" :label="item.name" :value="item.code" />
63 </el-select> 63 </el-select>
64 </el-form-item> 64 </el-form-item>
65 </el-col> 65 </el-col>
66 <el-col :span="4"> 66 <el-col :span="4">
67 <el-form-item label="处理场所区属" > 67 <el-form-item label="处理场所区属" >
68 - <el-select v-model="queryParams.subReason" placeholder="工地所属区域 " size="small"> 68 + <el-select v-model="queryParams.subReason" multiple placeholder="工地所属区域 " size="small">
69 <el-option v-for="item in areas" :label="item.name" :value="item.name" /> 69 <el-option v-for="item in areas" :label="item.name" :value="item.name" />
70 </el-select> 70 </el-select>
71 </el-form-item> 71 </el-form-item>
trash-ui/src/views/business/threestep/index.vue
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 </el-select> 23 </el-select>
24 </el-form-item> 24 </el-form-item>
25 <el-form-item label="所属区域" prop="place"> 25 <el-form-item label="所属区域" prop="place">
26 - <el-select v-model="queryParams.place" placeholder="请选择所属区域 " size="small"> 26 + <el-select v-model="queryParams.place" multiple placeholder="请选择所属区域 " size="small">
27 <el-option v-for="item in areas" :label="item.name" :value="item.code" /> 27 <el-option v-for="item in areas" :label="item.name" :value="item.code" />
28 </el-select> 28 </el-select>
29 </el-form-item> 29 </el-form-item>
trash-ui/src/views/business/track/index.vue
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <el-menu-item index="4">车辆</el-menu-item> 9 <el-menu-item index="4">车辆</el-menu-item>
10 <el-menu-item index="5">后勤管理</el-menu-item> 10 <el-menu-item index="5">后勤管理</el-menu-item>
11 <el-menu-item index="6">交办案卷</el-menu-item> 11 <el-menu-item index="6">交办案卷</el-menu-item>
12 - <el-menu-item index="7">违规案卷</el-menu-item> 12 + <el-menu-item index="7">预警信息</el-menu-item>
13 <el-menu-item index="99">设置</el-menu-item> 13 <el-menu-item index="99">设置</el-menu-item>
14 </el-menu> 14 </el-menu>
15 15
@@ -374,7 +374,7 @@ @@ -374,7 +374,7 @@
374 oninput="if(value){value=value.replace(/[^\d]/g,'')} if(value<=1){value=1} if(value>100){value=100}"/> 374 oninput="if(value){value=value.replace(/[^\d]/g,'')} if(value<=1){value=1} if(value>100){value=100}"/>
375 </el-form-item></el-col> 375 </el-form-item></el-col>
376 </el-row> 376 </el-row>
377 - <h3>违规案卷</h3> 377 + <h3>预警信息</h3>
378 <el-row> 378 <el-row>
379 <el-col :span="8"> 379 <el-col :span="8">
380 <el-form-item label="异常流程审批超时(天)" > 380 <el-form-item label="异常流程审批超时(天)" >
trash-ui/src/views/business/track/trackTable.vue
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 <el-option value="4" label="车辆"/> 26 <el-option value="4" label="车辆"/>
27 <el-option value="5" label="后勤管理"/> 27 <el-option value="5" label="后勤管理"/>
28 <el-option value="6" label="交办案卷" /> 28 <el-option value="6" label="交办案卷" />
29 - <el-option value="7" label="违规案卷"/> 29 + <el-option value="7" label="预警信息"/>
30 </el-select> 30 </el-select>
31 31
32 </el-form-item> 32 </el-form-item>
trash-ui/src/views/caseOffline/caseOffline/index.vue
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 </el-select> 7 </el-select>
8 </el-form-item> 8 </el-form-item>
9 <el-form-item label="所属区域" prop="place"> 9 <el-form-item label="所属区域" prop="place">
10 - <el-select v-model="queryParams.place" placeholder="请选择所属区域" size="small"> 10 + <el-select v-model="queryParams.place" multiple placeholder="请选择所属区域" size="small">
11 <el-option v-for="item in areas" :label="item.name" :value="item.code"/> 11 <el-option v-for="item in areas" :label="item.name" :value="item.code"/>
12 </el-select> 12 </el-select>
13 </el-form-item> 13 </el-form-item>
trash-ui/src/views/casefile/violationCaseFile/index.vue
@@ -3,20 +3,20 @@ @@ -3,20 +3,20 @@
3 <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="105px"> 3 <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="105px">
4 <el-row> 4 <el-row>
5 <el-form-item label="所属区域" prop="owningRegion"> 5 <el-form-item label="所属区域" prop="owningRegion">
6 - <el-select v-model="queryParams.owningRegion" placeholder="请选择所属区域" size="small"> 6 + <el-select v-model="queryParams.owningRegion" multiple placeholder="请选择所属区域" size="small">
7 <el-option v-for="item in areas" :label="item.name" :value="item.name" /> 7 <el-option v-for="item in areas" :label="item.name" :value="item.name" />
8 </el-select> 8 </el-select>
9 9
10 </el-form-item> 10 </el-form-item>
11 - <el-form-item label="违规类型" prop="violationType">  
12 - <el-select v-model="queryParams.violationType" placeholder="请选择违规类型" size="small">  
13 - <el-option v-for="item in caseType" :label="item.dictLabel" :value="item.dictValue" /> 11 + <el-form-item label="预警类型" prop="violationType">
  12 + <el-select v-model="queryParams.violationType" placeholder="请选择预警类型" size="small">
  13 + <el-option v-for="item in caseType" v-if="item.status=='0'" :label="item.dictLabel" :value="item.dictValue" />
14 </el-select> 14 </el-select>
15 </el-form-item> 15 </el-form-item>
16 16
17 17
18 - <el-form-item label="违规对象类型" prop="violationObjectType">  
19 - <el-select v-model="queryParams.violationObjectType" placeholder="请选择违规对象类型" size="small"> 18 + <el-form-item label="预警对象类型" prop="violationObjectType">
  19 + <el-select v-model="queryParams.violationObjectType" placeholder="请选择预警对象类型" size="small">
20 <el-option label="工地" value="0" /> 20 <el-option label="工地" value="0" />
21 <el-option label="处理场所" value="1" /> 21 <el-option label="处理场所" value="1" />
22 <el-option label="企业" value="2" /> 22 <el-option label="企业" value="2" />
@@ -24,10 +24,10 @@ @@ -24,10 +24,10 @@
24 </el-form-item> 24 </el-form-item>
25 </el-row> 25 </el-row>
26 <el-row> 26 <el-row>
27 - <el-form-item label="违规对象" prop="projectName"> 27 + <el-form-item label="预警对象" prop="projectName">
28 <el-input 28 <el-input
29 v-model="queryParams.projectName" 29 v-model="queryParams.projectName"
30 - placeholder="请输入违规对象" 30 + placeholder="请输入预警对象"
31 size="small" 31 size="small"
32 /> 32 />
33 </el-form-item> 33 </el-form-item>
@@ -72,7 +72,7 @@ @@ -72,7 +72,7 @@
72 v-hasPermi="['casefile:violationCaseFile:add']" 72 v-hasPermi="['casefile:violationCaseFile:add']"
73 73
74 v-if="checkPer(['intelligencecontrols.messagemanage.enter'])" 74 v-if="checkPer(['intelligencecontrols.messagemanage.enter'])"
75 - >违规案卷录入</el-button> 75 + >预警信息录入</el-button>
76 </el-col> 76 </el-col>
77 <!-- <el-col :span="1.5">--> 77 <!-- <el-col :span="1.5">-->
78 <!-- <el-button--> 78 <!-- <el-button-->
@@ -100,13 +100,13 @@ @@ -100,13 +100,13 @@
100 <el-table-column type="selection" width="55" align="center" /> 100 <el-table-column type="selection" width="55" align="center" />
101 <el-table-column label="序号" align="center" type='index'/> 101 <el-table-column label="序号" align="center" type='index'/>
102 <el-table-column label="所属区域" align="center" prop="owningRegion" /> 102 <el-table-column label="所属区域" align="center" prop="owningRegion" />
103 - <el-table-column label="违规对象" align="center" prop="projectName" />  
104 - <el-table-column label="违规对象类型" align="center" prop="violationObjectType"> 103 + <el-table-column label="预警对象" align="center" prop="projectName" />
  104 + <el-table-column label="预警对象类型" align="center" prop="violationObjectType">
105 <template slot-scope="scope"> 105 <template slot-scope="scope">
106 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"处理场所":"企业"}}</span> 106 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"处理场所":"企业"}}</span>
107 </template> 107 </template>
108 </el-table-column> 108 </el-table-column>
109 - <el-table-column label="违规类型" align="center" prop="violationType"> 109 + <el-table-column label="预警类型" align="center" prop="violationType">
110 <template slot-scope="scope"> 110 <template slot-scope="scope">
111 <span>{{getCaseType(scope.row.violationType)}}</span> 111 <span>{{getCaseType(scope.row.violationType)}}</span>
112 </template> 112 </template>
@@ -199,7 +199,7 @@ @@ -199,7 +199,7 @@
199 @pagination="getList" 199 @pagination="getList"
200 /> 200 />
201 201
202 - <!-- 添加或修改平台违规案卷对话框 --> 202 + <!-- 添加或修改平台预警信息对话框 -->
203 <el-dialog :title="title" :visible.sync="open" width="850px" append-to-body :close-on-click-modal="false"> 203 <el-dialog :title="title" :visible.sync="open" width="850px" append-to-body :close-on-click-modal="false">
204 <el-form ref="form" :model="form" :rules="rules" label-width="115px"> 204 <el-form ref="form" :model="form" :rules="rules" label-width="115px">
205 <el-row :gutter="2"> 205 <el-row :gutter="2">
@@ -209,8 +209,8 @@ @@ -209,8 +209,8 @@
209 </el-form-item> 209 </el-form-item>
210 </el-col> 210 </el-col>
211 <el-col :span="11"> 211 <el-col :span="11">
212 - <el-form-item label="违规对象类型" prop="violationObjectType">  
213 - <el-select v-model="form.violationObjectType" placeholder="请选择违规对象类型" size="small" style="width: 100%"> 212 + <el-form-item label="预警对象类型" prop="violationObjectType">
  213 + <el-select v-model="form.violationObjectType" placeholder="请选择预警对象类型" size="small" style="width: 100%">
214 <el-option label="工地" value="0" /> 214 <el-option label="工地" value="0" />
215 <el-option label="处理场所" value="1" /> 215 <el-option label="处理场所" value="1" />
216 <el-option label="企业" value="2" /> 216 <el-option label="企业" value="2" />
@@ -227,8 +227,8 @@ @@ -227,8 +227,8 @@
227 </el-form-item> 227 </el-form-item>
228 </el-col> 228 </el-col>
229 <el-col :span="11"> 229 <el-col :span="11">
230 - <el-form-item label="违规类型" prop="violationType">  
231 - <el-select v-model="form.violationType" placeholder="请选择违规类型" style="width: 100%;"> 230 + <el-form-item label="预警类型" prop="violationType">
  231 + <el-select v-model="form.violationType" placeholder="请选择预警类型" style="width: 100%;">
232 <el-option v-for="item in caseType" v-if="item.status=='0'" :label="item.dictLabel" :value="item.dictValue" /> 232 <el-option v-for="item in caseType" v-if="item.status=='0'" :label="item.dictLabel" :value="item.dictValue" />
233 </el-select> 233 </el-select>
234 </el-form-item> 234 </el-form-item>
@@ -236,21 +236,21 @@ @@ -236,21 +236,21 @@
236 </el-row> 236 </el-row>
237 <el-row :gutter="2"> 237 <el-row :gutter="2">
238 <el-col :span="11"> 238 <el-col :span="11">
239 - <el-form-item label="违规等级" prop="violationGrade">  
240 - <el-select v-model="form.violationGrade" placeholder="请选择违规等级" style="width: 100%;"> 239 + <el-form-item label="预警等级" prop="violationGrade">
  240 + <el-select v-model="form.violationGrade" placeholder="请选择预警等级" style="width: 100%;">
241 <el-option label="一般类" value="一般类"/> 241 <el-option label="一般类" value="一般类"/>
242 <el-option label="重点类" value="重点类" /> 242 <el-option label="重点类" value="重点类" />
243 </el-select> 243 </el-select>
244 </el-form-item> 244 </el-form-item>
245 </el-col> 245 </el-col>
246 <el-col :span="11"> 246 <el-col :span="11">
247 - <el-form-item label="违规对象" prop="projectName"> 247 + <el-form-item label="预警对象" prop="projectName">
248 <el-select 248 <el-select
249 v-model="form.projectName" 249 v-model="form.projectName"
250 :filterable="true" 250 :filterable="true"
251 :loading="isLoading" placeholder="请输入项目名称" style="width: 100%;" 251 :loading="isLoading" placeholder="请输入项目名称" style="width: 100%;"
252 :filter-method="getRemoteDate"> 252 :filter-method="getRemoteDate">
253 - <el-option v-for="item in projectNameList[form.violationObjectType]" 253 + <el-option v-for="item in projectNameList[form.violationObjectType]"
254 :key="item.name" :label="item.name" :value="item.name" :title="item.name" 254 :key="item.name" :label="item.name" :value="item.name" :title="item.name"
255 @click.native="getAreaName(item.areaCode)"></el-option> 255 @click.native="getAreaName(item.areaCode)"></el-option>
256 </el-select> 256 </el-select>
@@ -274,12 +274,12 @@ @@ -274,12 +274,12 @@
274 274
275 <el-row :gutter="2"> 275 <el-row :gutter="2">
276 <el-col :span="8" :offset="3"> 276 <el-col :span="8" :offset="3">
277 - <el-button style="margin-left: 14px" type="primary" @click="createDescribe">生成违规描述</el-button> 277 + <el-button style="margin-left: 14px" type="primary" @click="createDescribe">生成预警描述</el-button>
278 </el-col> 278 </el-col>
279 </el-row> 279 </el-row>
280 <el-row> 280 <el-row>
281 <el-col :span="22"> 281 <el-col :span="22">
282 - <el-form-item label="违规描述" prop="describe"> 282 + <el-form-item label="预警描述" prop="describe">
283 <el-input v-model="form.describe" type="textarea" placeholder="请输入内容" :row="4"/> 283 <el-input v-model="form.describe" type="textarea" placeholder="请输入内容" :row="4"/>
284 </el-form-item> 284 </el-form-item>
285 </el-col> 285 </el-col>
trash-ui/src/views/casefile/violationCaseFile/violationCaseTable.vue
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="app-container"> 2 <div class="app-container">
3 <el-form ref="queryForm" :inline="true" label-width="105px"> 3 <el-form ref="queryForm" :inline="true" label-width="105px">
4 <el-form-item label="所属区域" prop="owningRegion"> 4 <el-form-item label="所属区域" prop="owningRegion">
5 - <el-select v-model="owningRegion" placeholder="请选择所属区域" clearable size="small"> 5 + <el-select v-model="owningRegion" multiple placeholder="请选择所属区域" clearable size="small">
6 <el-option v-for="item in areas" :label="item.name" :value="item.name" /> 6 <el-option v-for="item in areas" :label="item.name" :value="item.name" />
7 </el-select> 7 </el-select>
8 </el-form-item> 8 </el-form-item>
@@ -27,11 +27,11 @@ @@ -27,11 +27,11 @@
27 {{ owningRegion != "" && owningRegion != null ? owningRegion : "长沙市" }} 27 {{ owningRegion != "" && owningRegion != null ? owningRegion : "长沙市" }}
28 </template> 28 </template>
29 </el-table-column> 29 </el-table-column>
30 - <el-table-column property="type" label="案卷类型" header-align="center" align="center"></el-table-column>  
31 - <el-table-column property="count" label="违规案卷数" header-align="center" align="center"></el-table-column>  
32 - <el-table-column property="repCount" label="违规案卷回复数" header-align="center" 30 + <el-table-column property="type" label="预警类型" header-align="center" align="center"></el-table-column>
  31 + <el-table-column property="count" label="预警信息数" header-align="center" align="center"></el-table-column>
  32 + <el-table-column property="repCount" label="预警信息回复数" header-align="center"
33 align="center"></el-table-column> 33 align="center"></el-table-column>
34 - <el-table-column property="repPct" label="违规案卷回复率" header-align="center" align="center"></el-table-column> 34 + <el-table-column property="repPct" label="预警信息回复率" header-align="center" align="center"></el-table-column>
35 </el-table> 35 </el-table>
36 </div> 36 </div>
37 </template> 37 </template>
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 <script> 39 <script>
40 40
41 import {caseTable} from "@/api/casefile/violationCaseFile"; 41 import {caseTable} from "@/api/casefile/violationCaseFile";
42 -import {getAreaList} from "@/api/casefile/remoteServer"; 42 +import {getArea} from "@/api/dict";
43 43
44 export default { 44 export default {
45 name: "caseTable", 45 name: "caseTable",
@@ -60,8 +60,8 @@ export default { @@ -60,8 +60,8 @@ export default {
60 this.tableData = res.data; 60 this.tableData = res.data;
61 this.hackReset = true; 61 this.hackReset = true;
62 }); 62 });
63 - getAreaList().then(res => {  
64 - this.areas = res.data; 63 + getArea().then(res => {
  64 + this.areas = res.result;
65 }); 65 });
66 }, 66 },
67 methods: { 67 methods: {
@@ -117,8 +117,12 @@ export default { @@ -117,8 +117,12 @@ export default {
117 if(this.createTime.length!=0){ 117 if(this.createTime.length!=0){
118 startDate = this.createTime[0]; 118 startDate = this.createTime[0];
119 endDate = this.createTime[1]; 119 endDate = this.createTime[1];
120 - }  
121 - caseTable({owningRegion: this.owningRegion, startDate: startDate, endDate: endDate}).then(res => { 120 + }
  121 + let owningRegion = null;
  122 + if(this.owningRegion)
  123 + owningRegion = this.owningRegion + ""
  124 +
  125 + caseTable({owningRegion: owningRegion, startDate: startDate, endDate: endDate}).then(res => {
122 this.tableData = res.data; 126 this.tableData = res.data;
123 this.hackReset = false; 127 this.hackReset = false;
124 this.$nextTick(() => { 128 this.$nextTick(() => {
trash-ui/src/views/casefile/violationWarningInformation/index.vue
@@ -9,13 +9,13 @@ @@ -9,13 +9,13 @@
9 </el-select> 9 </el-select>
10 </el-form-item> 10 </el-form-item>
11 <el-form-item label="所属区域" prop="owningRegion"> 11 <el-form-item label="所属区域" prop="owningRegion">
12 - <el-select v-model="queryParams.owningRegion" placeholder="请选择所属区域" clearable size="small"> 12 + <el-select v-model="queryParams.owningRegion" multiple placeholder="请选择所属区域" clearable size="small">
13 <el-option v-for="item in areas" :label="item.name" :value="item.name" /> 13 <el-option v-for="item in areas" :label="item.name" :value="item.name" />
14 </el-select> 14 </el-select>
15 </el-form-item> 15 </el-form-item>
16 <el-form-item label="预警类型" prop="violationType"> 16 <el-form-item label="预警类型" prop="violationType">
17 <el-select v-model="queryParams.violationType" placeholder="请选择预警类型" clearable size="small"> 17 <el-select v-model="queryParams.violationType" placeholder="请选择预警类型" clearable size="small">
18 - <el-option v-for="item in caseType" :label="item.dictLabel" :value="item.dictValue" /> 18 + <el-option v-for="item in caseType" v-if="item.status=='0'" :label="item.dictLabel" :value="item.dictValue" />
19 </el-select> 19 </el-select>
20 </el-form-item> 20 </el-form-item>
21 <el-form-item label="预警对象" prop="projectName"> 21 <el-form-item label="预警对象" prop="projectName">
@@ -143,8 +143,8 @@ @@ -143,8 +143,8 @@
143 <el-form ref="form" :model="form" :rules="rules" label-width="115px"> 143 <el-form ref="form" :model="form" :rules="rules" label-width="115px">
144 <el-row :gutter="2"> 144 <el-row :gutter="2">
145 <el-col :span="11"> 145 <el-col :span="11">
146 - <el-form-item label="案卷编号" prop="number">  
147 - <el-input v-model="form.number" placeholder="请输入案卷编号" :disabled="true"/> 146 + <el-form-item label="预警编号" prop="number">
  147 + <el-input v-model="form.number" placeholder="请输入预警编号" :disabled="true"/>
148 </el-form-item> 148 </el-form-item>
149 </el-col> 149 </el-col>
150 <el-col :span="11"> 150 <el-col :span="11">
trash-ui/src/views/casefile/violationWarningInformation/violationWarningInformationInfo.vue
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 <el-form ref="form" :model="form" label-width="115px"> 2 <el-form ref="form" :model="form" label-width="115px">
3 <el-row :gutter="2"> 3 <el-row :gutter="2">
4 <el-col :span="11"> 4 <el-col :span="11">
5 - <el-form-item label="案卷编号" prop="number">  
6 - <el-input v-model="form.number" placeholder="请输入案卷编号" :disabled="true"/> 5 + <el-form-item label="预警编号" prop="number">
  6 + <el-input v-model="form.number" placeholder="请输入预警编号" :disabled="true"/>
7 </el-form-item> 7 </el-form-item>
8 </el-col> 8 </el-col>
9 <el-col :span="11"> 9 <el-col :span="11">
trash-ui/src/views/casefile/violationWarningInformation/violationWarningInformationTable.vue
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="app-container"> 2 <div class="app-container">
3 <el-form ref="queryForm" :inline="true" label-width="105px"> 3 <el-form ref="queryForm" :inline="true" label-width="105px">
4 <el-form-item label="所属区域" prop="owningRegion"> 4 <el-form-item label="所属区域" prop="owningRegion">
5 - <el-select v-model="owningRegion" placeholder="请选择所属区域" clearable size="small"> 5 + <el-select v-model="owningRegion" multiple placeholder="请选择所属区域" clearable size="small">
6 <el-option v-for="item in areas" :label="item.name" :value="item.name"/> 6 <el-option v-for="item in areas" :label="item.name" :value="item.name"/>
7 </el-select> 7 </el-select>
8 </el-form-item> 8 </el-form-item>
@@ -27,10 +27,10 @@ @@ -27,10 +27,10 @@
27 </template> 27 </template>
28 </el-table-column> 28 </el-table-column>
29 <el-table-column property="type" label="预警类型" header-align="center" align="center"></el-table-column> 29 <el-table-column property="type" label="预警类型" header-align="center" align="center"></el-table-column>
30 - <el-table-column property="count" label="预警案卷数" header-align="center" align="center"></el-table-column>  
31 - <el-table-column property="repCount" label="预警案卷回复数" header-align="center" 30 + <el-table-column property="count" label="预警提醒数" header-align="center" align="center"></el-table-column>
  31 + <el-table-column property="repCount" label="预警提醒回复数" header-align="center"
32 align="center"></el-table-column> 32 align="center"></el-table-column>
33 - <el-table-column property="repPct" label="预警案卷回复率" header-align="center" align="center"></el-table-column> 33 + <el-table-column property="repPct" label="预警提醒回复率" header-align="center" align="center"></el-table-column>
34 </el-table> 34 </el-table>
35 </div> 35 </div>
36 </template> 36 </template>
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <script> 38 <script>
39 39
40 import {caseTable} from "@/api/casefile/violationWarningInformation"; 40 import {caseTable} from "@/api/casefile/violationWarningInformation";
41 -import {getAreaList} from "@/api/casefile/remoteServer"; 41 +import {getArea} from "@/api/dict";
42 42
43 export default { 43 export default {
44 name: "caseTable", 44 name: "caseTable",
@@ -59,8 +59,8 @@ export default { @@ -59,8 +59,8 @@ export default {
59 this.tableData = res.data; 59 this.tableData = res.data;
60 this.hackReset = true; 60 this.hackReset = true;
61 }); 61 });
62 - getAreaList().then(res => {  
63 - this.areas = res.data; 62 + getArea().then(res => {
  63 + this.areas = res.result;
64 }); 64 });
65 }, 65 },
66 methods: { 66 methods: {
@@ -116,8 +116,13 @@ export default { @@ -116,8 +116,13 @@ export default {
116 if(this.createTime.length!=0){ 116 if(this.createTime.length!=0){
117 startDate = this.createTime[0]; 117 startDate = this.createTime[0];
118 endDate = this.createTime[1]; 118 endDate = this.createTime[1];
119 - }  
120 - caseTable({owningRegion:this.owningRegion,startDate:startDate,endDate:endDate}).then(res => { 119 + }
  120 +
  121 + let owningRegion = null;
  122 + if(this.owningRegion)
  123 + owningRegion = this.owningRegion + ""
  124 +
  125 + caseTable({owningRegion:owningRegion,startDate:startDate,endDate:endDate}).then(res => {
121 this.tableData = res.data; 126 this.tableData = res.data;
122 this.hackReset = false; 127 this.hackReset = false;
123 this.$nextTick(() => { 128 this.$nextTick(() => {
trash-ui/src/views/h5/task/index.vue
@@ -26,8 +26,8 @@ @@ -26,8 +26,8 @@
26 <el-option label="驾驶员信息审批" value="workflow_driver"/> 26 <el-option label="驾驶员信息审批" value="workflow_driver"/>
27 <el-option label="报工审批" value="workflow_threestep"/> 27 <el-option label="报工审批" value="workflow_threestep"/>
28 <el-option label="交办案卷" value="workflow_caseoffline"/> 28 <el-option label="交办案卷" value="workflow_caseoffline"/>
29 - <el-option label="违规案卷处置流程" value="workflow_casefile"/>  
30 - <el-option label="平台预警信息" value="violation_warning"/> 29 + <el-option label="预警信息" value="workflow_casefile"/>
  30 + <el-option label="预警提醒" value="violation_warning"/>
31 <el-option label="办文办事" value="handleAffairs"/> 31 <el-option label="办文办事" value="handleAffairs"/>
32 <el-option label="后勤管理" value="logistics"/> 32 <el-option label="后勤管理" value="logistics"/>
33 <el-option label="会议事务" value="conference"/> 33 <el-option label="会议事务" value="conference"/>
trash-ui/src/views/h5/task/violationCaseFileInfo.vue
1 <template> 1 <template>
2 <el-form ref="form" :model="form" :rules="rules" label-width="80px"> 2 <el-form ref="form" :model="form" :rules="rules" label-width="80px">
3 3
4 - <el-form-item label="案卷编号" prop="number">  
5 - <el-input v-model="form.number" placeholder="请输入案卷编号" :disabled="true"/> 4 + <el-form-item label="预警编号" prop="number">
  5 + <el-input v-model="form.number" placeholder="请输入预警编号" :disabled="true"/>
6 </el-form-item> 6 </el-form-item>
7 7
8 - <el-form-item label="违规对象类型" prop="violationObjectType">  
9 - <el-select v-model="form.violationObjectType" placeholder="请选择违规对象类型" style="width: 100%;" :disabled="true"> 8 + <el-form-item label="预警对象类型" prop="violationObjectType">
  9 + <el-select v-model="form.violationObjectType" placeholder="请选择预警对象类型" style="width: 100%;" :disabled="true">
10 <el-option label="工地" value="0" /> 10 <el-option label="工地" value="0" />
11 <el-option label="处理场所" value="1" /> 11 <el-option label="处理场所" value="1" />
12 <el-option label="企业" value="2" /> 12 <el-option label="企业" value="2" />
@@ -21,12 +21,12 @@ @@ -21,12 +21,12 @@
21 </el-select> 21 </el-select>
22 </el-form-item> 22 </el-form-item>
23 23
24 - <el-form-item label="违规类型" prop="violationType"> 24 + <el-form-item label="预警类型" prop="violationType">
25 <el-input :value="getCaseType(form.violationType)" :disabled="true"/> 25 <el-input :value="getCaseType(form.violationType)" :disabled="true"/>
26 </el-form-item> 26 </el-form-item>
27 27
28 28
29 - <el-form-item label="违规等级" prop="violationGrade"> 29 + <el-form-item label="预警等级" prop="violationGrade">
30 <el-select v-model="form.violationGrade" placeholder="请选择企业名称" style="width: 100%;" :disabled="true"> 30 <el-select v-model="form.violationGrade" placeholder="请选择企业名称" style="width: 100%;" :disabled="true">
31 <el-option label="一般类" value="一般类"/> 31 <el-option label="一般类" value="一般类"/>
32 <el-option label="重点类" value="重点类" /> 32 <el-option label="重点类" value="重点类" />
@@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
63 <el-input :value="form.readTime" :disabled="true"/> 63 <el-input :value="form.readTime" :disabled="true"/>
64 </el-form-item> 64 </el-form-item>
65 65
66 - <el-form-item label="违规描述" prop="describe"> 66 + <el-form-item label="预警描述" prop="describe">
67 <el-input v-model="form.describe" type="textarea" placeholder="请输入内容" :row="4" :disabled="true"/> 67 <el-input v-model="form.describe" type="textarea" placeholder="请输入内容" :row="4" :disabled="true"/>
68 </el-form-item> 68 </el-form-item>
69 69
trash-ui/src/views/h5/taskhistory/index.vue
@@ -12,8 +12,8 @@ @@ -12,8 +12,8 @@
12 <el-option label="驾驶员信息审批" value="workflow_driver"/> 12 <el-option label="驾驶员信息审批" value="workflow_driver"/>
13 <el-option label="报工审批" value="workflow_threestep"/> 13 <el-option label="报工审批" value="workflow_threestep"/>
14 <el-option label="交办案卷" value="workflow_caseoffline"/> 14 <el-option label="交办案卷" value="workflow_caseoffline"/>
15 - <el-option label="违规案卷处置流程" value="workflow_casefile"/>  
16 - <el-option label="平台预警信息" value="violation_warning"/> 15 + <el-option label="预警信息" value="workflow_casefile"/>
  16 + <el-option label="预警提醒" value="violation_warning"/>
17 <el-option label="办文办事" value="handleAffairs"/> 17 <el-option label="办文办事" value="handleAffairs"/>
18 <el-option label="后勤管理" value="logistics"/> 18 <el-option label="后勤管理" value="logistics"/>
19 <el-option label="会议事务" value="conference"/> 19 <el-option label="会议事务" value="conference"/>
trash-ui/src/views/h5/violationCaseFile/index.vue
@@ -93,13 +93,13 @@ @@ -93,13 +93,13 @@
93 @pagination="getList" 93 @pagination="getList"
94 /> 94 />
95 95
96 - <!-- 添加或修改平台违规案卷对话框 --> 96 + <!-- 添加或修改平台违规预警对话框 -->
97 <el-dialog :title="title" :visible.sync="open" width="300px" append-to-body :close-on-click-modal="false"> 97 <el-dialog :title="title" :visible.sync="open" width="300px" append-to-body :close-on-click-modal="false">
98 <el-form ref="form" :model="form" :rules="rules" label-width="80px"> 98 <el-form ref="form" :model="form" :rules="rules" label-width="80px">
99 <el-row :gutter="2"> 99 <el-row :gutter="2">
100 <el-col :span="11"> 100 <el-col :span="11">
101 - <el-form-item label="案卷编号" prop="number">  
102 - <el-input v-model="form.number" placeholder="请输入案卷编号" :disabled="true"/> 101 + <el-form-item label="预警编号" prop="number">
  102 + <el-input v-model="form.number" placeholder="请输入预警编号" :disabled="true"/>
103 </el-form-item> 103 </el-form-item>
104 </el-col> 104 </el-col>
105 <el-col :span="11"> 105 <el-col :span="11">
trash-ui/src/views/h5/violationWarningInformation/index.vue
@@ -90,8 +90,8 @@ @@ -90,8 +90,8 @@
90 <el-dialog :title="title" :visible.sync="open" width="300px" append-to-body :close-on-click-modal="false"> 90 <el-dialog :title="title" :visible.sync="open" width="300px" append-to-body :close-on-click-modal="false">
91 <el-form ref="form" :model="form" :rules="rules" label-width="80px"> 91 <el-form ref="form" :model="form" :rules="rules" label-width="80px">
92 92
93 - <el-form-item label="案卷编号" prop="number">  
94 - <el-input v-model="form.number" placeholder="请输入案卷编号" :disabled="true"/> 93 + <el-form-item label="预警编号" prop="number">
  94 + <el-input v-model="form.number" placeholder="请输入预警编号" :disabled="true"/>
95 </el-form-item> 95 </el-form-item>
96 <el-form-item label="预警对象类型" prop="violationObjectType"> 96 <el-form-item label="预警对象类型" prop="violationObjectType">
97 <el-select v-model="form.violationObjectType" placeholder="请选择预警对象类型" style="width: 100%;"> 97 <el-select v-model="form.violationObjectType" placeholder="请选择预警对象类型" style="width: 100%;">
trash-workFlow/src/main/java/com/trash/business/controller/SupervisionThreestepController.java
@@ -73,7 +73,6 @@ public class SupervisionThreestepController extends BaseController { @@ -73,7 +73,6 @@ public class SupervisionThreestepController extends BaseController {
73 @GetMapping("/list") 73 @GetMapping("/list")
74 public TableDataInfo list(SupervisionThreestep supervisionThreestep) { 74 public TableDataInfo list(SupervisionThreestep supervisionThreestep) {
75 startPage(); 75 startPage();
76 -  
77 List<SupervisionThreestep> list = supervisionThreestepService 76 List<SupervisionThreestep> list = supervisionThreestepService
78 .selectSupervisionThreestepList(supervisionThreestep); 77 .selectSupervisionThreestepList(supervisionThreestep);
79 return getDataTable(list); 78 return getDataTable(list);
@@ -292,7 +291,11 @@ public class SupervisionThreestepController extends BaseController { @@ -292,7 +291,11 @@ public class SupervisionThreestepController extends BaseController {
292 for(Object obj:constructionList){ 291 for(Object obj:constructionList){
293 objIds.add(((JSONObject)obj).getString("id")); 292 objIds.add(((JSONObject)obj).getString("id"));
294 } 293 }
295 - list.get(i).setWorkAreaCodeName(((JSONObject)constructionList.get(objIds.indexOf(list.get(i).getObjectId()))).getString("workAreaCodeName")); 294 +
  295 + int x = objIds.indexOf(list.get(i).getObjectId());
  296 + if(x > -1){
  297 + list.get(i).setWorkAreaCodeName(((JSONObject)constructionList.get(x)).getString("workAreaCodeName"));
  298 + }
296 299
297 list.get(i).setId((long) i + 1); 300 list.get(i).setId((long) i + 1);
298 301
trash-workFlow/src/main/java/com/trash/business/domain/SupervisionThreestep.java
@@ -138,7 +138,18 @@ public class SupervisionThreestep extends BaseEntity @@ -138,7 +138,18 @@ public class SupervisionThreestep extends BaseEntity
138 private String attchItem2; 138 private String attchItem2;
139 private String attchItem3; 139 private String attchItem3;
140 140
141 - @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") 141 + private String[] places;
  142 +
  143 +
  144 + public String[] getPlaces() {
  145 + return places;
  146 + }
  147 +
  148 + public void setPlaces(String[] places) {
  149 + this.places = places;
  150 + }
  151 +
  152 + @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
142 private Date workStartTime; 153 private Date workStartTime;
143 154
144 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") 155 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
trash-workFlow/src/main/java/com/trash/business/service/impl/DriverCreditServiceImpl.java
@@ -96,10 +96,10 @@ public class DriverCreditServiceImpl implements IDriverCreditService @@ -96,10 +96,10 @@ public class DriverCreditServiceImpl implements IDriverCreditService
96 JSONObject json = (JSONObject) obj; 96 JSONObject json = (JSONObject) obj;
97 if(companys.indexOf(json.getString("companyId")) > -1){ 97 if(companys.indexOf(json.getString("companyId")) > -1){
98 ids.add(json.getString("id")); 98 ids.add(json.getString("id"));
  99 + System.out.print(json.getString("id") + " ");
99 } 100 }
100 } 101 }
101 102
102 -  
103 driverCredit.setIds(ids); 103 driverCredit.setIds(ids);
104 104
105 105
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
@@ -341,166 +341,53 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -341,166 +341,53 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
341 redisCache.setCacheObject("areas", areas); 341 redisCache.setCacheObject("areas", areas);
342 } 342 }
343 343
344 - // boolean isAdmin = false;  
345 - //  
346 - // if  
347 - // ("事务中心".equals(SecurityUtils.getLoginUser().getUser().getCompanyName()))  
348 - // {  
349 - // supervisionThreestep.setPlace(null);  
350 - // isAdmin = true;  
351 - // } else if  
352 - // ("渣土办".equals(SecurityUtils.getLoginUser().getUser().getCompanyName()))  
353 - // {  
354 - // supervisionThreestep.setPlace(SecurityUtils.getLoginUser().getUser().getAreaCode());  
355 - // areaCode = SecurityUtils.getLoginUser().getUser().getAreaCode();  
356 - // isAdmin = true;  
357 - // }  
358 -  
359 List<SupervisionThreestep> allList = supervisionThreestepMapper.selectDayWorkList(supervisionThreestep); 344 List<SupervisionThreestep> allList = supervisionThreestepMapper.selectDayWorkList(supervisionThreestep);
360 List<SupervisionThreestep> filterList = new ArrayList<>(); 345 List<SupervisionThreestep> filterList = new ArrayList<>();
361 346
362 List<SupervisionThreestep> constructions = new ArrayList<>(); 347 List<SupervisionThreestep> constructions = new ArrayList<>();
363 List<SupervisionThreestep> earthsites = new ArrayList<>(); 348 List<SupervisionThreestep> earthsites = new ArrayList<>();
364 -  
365 - List<Map<String, String>> list = new ArrayList<>();  
366 -  
367 - String companyName = SecurityUtils.getLoginUser().getUser().getCompanyName();  
368 -  
369 - // if (!isAdmin && areaCode.isEmpty()) {  
370 - //  
371 - // if (companyName != null) {  
372 - //  
373 - // JSONArray array = redisCache.getCacheObject("constructionList");  
374 - //  
375 - // for (SupervisionThreestep three : allList) {  
376 - // if (three.getType() == 1) {  
377 - // filterList.add(three);  
378 - // continue;  
379 - // }  
380 - //  
381 - // for (Object obj : array) {  
382 - // JSONObject con = (JSONObject) obj;  
383 - // if (three.getObjectId().equals(con.getString("id"))) {  
384 - //  
385 - // if (con.getString("transportCompany") != null  
386 - // && con.getString("transportCompany").equals(companyName)) {  
387 - //  
388 - // filterList.add(three);  
389 - // continue;  
390 - // }  
391 - //  
392 - // JSONArray array2 =  
393 - // RemoteServerUtils.getUnitetransport(con.getString("id"));  
394 - //  
395 - // for (Object comObj : array2) {  
396 - // JSONObject company = (JSONObject) comObj;  
397 - //  
398 - // if (company.getString("companyName") != null  
399 - // && company.getString("companyName").equals(companyName)) {  
400 - //  
401 - // filterList.add(three);  
402 - // break;  
403 - // }  
404 - // }  
405 - // }  
406 - // }  
407 - //  
408 - // }  
409 - // }  
410 - // } else {  
411 - filterList = allList;  
412 - // }  
413 -  
414 - for (SupervisionThreestep s : filterList) {  
415 - if (s.getType() == 1) {  
416 - for (Object object : areas) {  
417 - JSONObject area = (JSONObject) object;  
418 - if (s.getPlace().equals(area.getString("code"))) {  
419 - s.setPlace(area.getString("name"));  
420 - }  
421 -  
422 - if (areaCode.equals(area.getString("code"))) {  
423 - areaCode = area.getString("name");  
424 - }  
425 - }  
426 - }  
427 -  
428 - if (supervisionThreestep.getHis().equals("1")) {  
429 - if (yearFomat.format(s.getSelfCheckTime()).equals(yearFomat.format(new Date()))) {  
430 - continue;  
431 - }  
432 - }  
433 -  
434 - if (s.getType() == 0) {  
435 - constructions.add(s);  
436 - } else {  
437 - earthsites.add(s);  
438 - } 349 + List<Map<String, String>> list = null;
  350 + if(supervisionThreestep.getHis().equals("1")){
  351 + list = redisCache.getCacheObject("dayWorkList");
439 } 352 }
440 -  
441 - for (SupervisionThreestep s : constructions) {  
442 -  
443 - if (supervisionThreestep.getHis().equals("1")) {  
444 - for (SupervisionThreestep e : earthsites) {  
445 -  
446 - if (!s.getEarthsitesId().contains(e.getObjectId()))  
447 - continue;  
448 -  
449 - if (yearFomat.format(s.getCreateTime()).equals(yearFomat.format(e.getCreateTime()))) {  
450 -  
451 - if (s.getStatus() != 1 || e.getStatus() != 1) {  
452 - continue; 353 + if (list == null || list.size() == 0) {
  354 + list = new ArrayList<Map<String, String>>();
  355 + String companyName = SecurityUtils.getLoginUser().getUser().getCompanyName();
  356 +
  357 + filterList = allList;
  358 +
  359 + for (SupervisionThreestep s : filterList) {
  360 + if (s.getType() == 1) {
  361 + for (Object object : areas) {
  362 + JSONObject area = (JSONObject) object;
  363 + if (s.getPlace().equals(area.getString("code"))) {
  364 + s.setPlace(area.getString("name"));
453 } 365 }
454 366
455 - Map<String, String> map = new HashMap<String, String>();  
456 - map.put("id", s.getId() + "");  
457 - map.put("createTime", yearFomat.format(s.getCreateTime()));  
458 - map.put("name", s.getName());  
459 - map.put("place", s.getPlace());  
460 -  
461 - for (Object constObj : constructionList) {  
462 - JSONObject constJSON = (JSONObject) constObj;  
463 -  
464 - if (!s.getObjectId().equals(constJSON.getString("id")))  
465 - continue;  
466 - else {  
467 - map.put("address", constJSON.getString("address"));  
468 - map.put("siteInvestmentTypeName", constJSON.getString("siteInvestmentTypeName"));  
469 - map.put("workAreaCodeName", constJSON.getString("workAreaCodeName"));  
470 - break;  
471 - } 367 + if (areaCode.equals(area.getString("code"))) {
  368 + areaCode = area.getString("name");
472 } 369 }
473 -  
474 - map.put("status", "开工");  
475 - map.put("selfCheckTime", dateTime.format(s.getSelfCheckTime()));  
476 - map.put("objectId", s.getObjectId());  
477 - map.put("type", "");  
478 - map.put("eid", e.getObjectId());  
479 - map.put("ename", e.getName());  
480 - map.put("eplace", e.getPlace());  
481 - map.put("estatus", "开工");  
482 - map.put("eselfCheckTime", dateTime.format(e.getSelfCheckTime()));  
483 - map.put("etype", "");  
484 -  
485 - map.put("descript", "有效开工");  
486 -  
487 - list.add(map);  
488 } 370 }
489 } 371 }
490 - } else {  
491 - for (Object object : contracts) {  
492 - JSONObject jsonObject = (JSONObject) object;  
493 372
494 - if (!s.getObjectId().equals(jsonObject.getString("constructionSiteID"))) 373 + if (supervisionThreestep.getHis().equals("1")) {
  374 + if (yearFomat.format(s.getSelfCheckTime()).equals(yearFomat.format(new Date()))) {
495 continue; 375 continue;
  376 + }
  377 + }
496 378
497 - for (SupervisionThreestep e : earthsites) { 379 + if (s.getType() == 0) {
  380 + constructions.add(s);
  381 + } else {
  382 + earthsites.add(s);
  383 + }
  384 + }
498 385
499 - if (!supervisionThreestep.getHis().equals("1")  
500 - && !e.getObjectId().equals(jsonObject.getString("earthSiteID")))  
501 - continue; 386 + for (SupervisionThreestep s : constructions) {
  387 + if (supervisionThreestep.getHis().equals("1")) {
  388 + for (SupervisionThreestep e : earthsites) {
502 389
503 - if (supervisionThreestep.getHis().equals("1") && !s.getEarthsitesId().contains(e.getObjectId())) 390 + if (!s.getEarthsitesId().contains(e.getObjectId()))
504 continue; 391 continue;
505 392
506 if (yearFomat.format(s.getCreateTime()).equals(yearFomat.format(e.getCreateTime()))) { 393 if (yearFomat.format(s.getCreateTime()).equals(yearFomat.format(e.getCreateTime()))) {
@@ -514,6 +401,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -514,6 +401,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
514 map.put("createTime", yearFomat.format(s.getCreateTime())); 401 map.put("createTime", yearFomat.format(s.getCreateTime()));
515 map.put("name", s.getName()); 402 map.put("name", s.getName());
516 map.put("place", s.getPlace()); 403 map.put("place", s.getPlace());
  404 +
517 for (Object constObj : constructionList) { 405 for (Object constObj : constructionList) {
518 JSONObject constJSON = (JSONObject) constObj; 406 JSONObject constJSON = (JSONObject) constObj;
519 407
@@ -526,6 +414,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -526,6 +414,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
526 break; 414 break;
527 } 415 }
528 } 416 }
  417 +
529 map.put("status", "开工"); 418 map.put("status", "开工");
530 map.put("selfCheckTime", dateTime.format(s.getSelfCheckTime())); 419 map.put("selfCheckTime", dateTime.format(s.getSelfCheckTime()));
531 map.put("objectId", s.getObjectId()); 420 map.put("objectId", s.getObjectId());
@@ -542,10 +431,73 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -542,10 +431,73 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
542 list.add(map); 431 list.add(map);
543 } 432 }
544 } 433 }
  434 +
  435 +
  436 + redisCache.setCacheObject("dayWorkList", list, 1, TimeUnit.DAYS);
  437 + } else {
  438 + for (Object object : contracts) {
  439 + JSONObject jsonObject = (JSONObject) object;
  440 +
  441 + if (!s.getObjectId().equals(jsonObject.getString("constructionSiteID")))
  442 + continue;
  443 +
  444 + for (SupervisionThreestep e : earthsites) {
  445 +
  446 + if (!supervisionThreestep.getHis().equals("1")
  447 + && !e.getObjectId().equals(jsonObject.getString("earthSiteID")))
  448 + continue;
  449 +
  450 + if (supervisionThreestep.getHis().equals("1") && !s.getEarthsitesId().contains(e.getObjectId()))
  451 + continue;
  452 +
  453 + if (yearFomat.format(s.getCreateTime()).equals(yearFomat.format(e.getCreateTime()))) {
  454 +
  455 + if (s.getStatus() != 1 || e.getStatus() != 1) {
  456 + continue;
  457 + }
  458 +
  459 + Map<String, String> map = new HashMap<String, String>();
  460 + map.put("id", s.getId() + "");
  461 + map.put("createTime", yearFomat.format(s.getCreateTime()));
  462 + map.put("name", s.getName());
  463 + map.put("place", s.getPlace());
  464 + for (Object constObj : constructionList) {
  465 + JSONObject constJSON = (JSONObject) constObj;
  466 +
  467 + if (!s.getObjectId().equals(constJSON.getString("id")))
  468 + continue;
  469 + else {
  470 + map.put("address", constJSON.getString("address"));
  471 + map.put("siteInvestmentTypeName", constJSON.getString("siteInvestmentTypeName"));
  472 + map.put("workAreaCodeName", constJSON.getString("workAreaCodeName"));
  473 + break;
  474 + }
  475 + }
  476 + map.put("status", "开工");
  477 + map.put("selfCheckTime", dateTime.format(s.getSelfCheckTime()));
  478 + map.put("objectId", s.getObjectId());
  479 + map.put("type", "");
  480 + map.put("eid", e.getObjectId());
  481 + map.put("ename", e.getName());
  482 + map.put("eplace", e.getPlace());
  483 + map.put("estatus", "开工");
  484 + map.put("eselfCheckTime", dateTime.format(e.getSelfCheckTime()));
  485 + map.put("etype", "");
  486 +
  487 + map.put("descript", "有效开工");
  488 +
  489 + list.add(map);
  490 + }
  491 + }
  492 + }
545 } 493 }
  494 +
546 } 495 }
547 496
548 } 497 }
  498 +
  499 +
  500 +
549 501
550 List FilterList = new ArrayList<>(); 502 List FilterList = new ArrayList<>();
551 503
@@ -565,8 +517,20 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -565,8 +517,20 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
565 String workAreaCodeName = supervisionThreestep.getWorkAreaCodeName(); 517 String workAreaCodeName = supervisionThreestep.getWorkAreaCodeName();
566 518
567 for (Map<String, String> map : list) { 519 for (Map<String, String> map : list) {
  520 + try {
  521 + long start = supervisionThreestep.getWorkStartTime().getTime();
  522 + long end = supervisionThreestep.getWorkEndTime().getTime();
  523 + long t = dateTime.parse( map.get("selfCheckTime")).getTime();
  524 + if(t < start || t > end){
  525 + continue;
  526 + }
  527 + } catch (ParseException e) {
  528 + // TODO Auto-generated catch block
  529 + e.printStackTrace();
  530 + }
  531 +
568 if (place != null) { 532 if (place != null) {
569 - if (!place.equals(map.get("place"))) { 533 + if (!place.contains(map.get("place"))) {
570 continue; 534 continue;
571 } 535 }
572 } 536 }
@@ -576,7 +540,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -576,7 +540,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
576 } 540 }
577 } 541 }
578 if (eplace != null) { 542 if (eplace != null) {
579 - if (!eplace.equals(map.get("eplace"))) { 543 + if (!eplace.contains(map.get("eplace"))) {
580 continue; 544 continue;
581 } 545 }
582 } 546 }
trash-workFlow/src/main/java/com/trash/business/service/impl/TruckCreditServiceImpl.java
@@ -268,6 +268,7 @@ public class TruckCreditServiceImpl implements ITruckCreditService @@ -268,6 +268,7 @@ public class TruckCreditServiceImpl implements ITruckCreditService
268 268
269 if(array == null) 269 if(array == null)
270 array = JSONArray.parseArray(SpringUtils.getBean(SysTempMapper.class).getLocalData("companyList")); 270 array = JSONArray.parseArray(SpringUtils.getBean(SysTempMapper.class).getLocalData("companyList"));
  271 +
271 if(array != null) { 272 if(array != null) {
272 for(Object obj:array) { 273 for(Object obj:array) {
273 JSONObject json = (JSONObject)obj; 274 JSONObject json = (JSONObject)obj;
@@ -299,13 +300,16 @@ public class TruckCreditServiceImpl implements ITruckCreditService @@ -299,13 +300,16 @@ public class TruckCreditServiceImpl implements ITruckCreditService
299 redisCache.setCacheObject("deletedTrucks", delete); 300 redisCache.setCacheObject("deletedTrucks", delete);
300 } 301 }
301 302
302 - jsonArray.addAll(delete);  
303 -  
304 -  
305 - for(Object obj:jsonArray){  
306 - JSONObject json = (JSONObject) obj;  
307 - if(companys.indexOf(json.getString("companyID")) > -1){  
308 - ids.add(json.getString("id")); 303 + if(jsonArray != null){
  304 + if(delete != null)
  305 + jsonArray.addAll(delete);
  306 +
  307 +
  308 + for(Object obj:jsonArray){
  309 + JSONObject json = (JSONObject) obj;
  310 + if(companys.indexOf(json.getString("companyID")) > -1){
  311 + ids.add(json.getString("id"));
  312 + }
309 } 313 }
310 } 314 }
311 } 315 }
trash-workFlow/src/main/java/com/trash/workflow/listener/ConractListener.java
@@ -10,7 +10,9 @@ import org.activiti.engine.delegate.ExecutionListener; @@ -10,7 +10,9 @@ import org.activiti.engine.delegate.ExecutionListener;
10 import org.activiti.engine.delegate.Expression; 10 import org.activiti.engine.delegate.Expression;
11 import org.springframework.beans.factory.annotation.Autowired; 11 import org.springframework.beans.factory.annotation.Autowired;
12 12
  13 +import com.trash.common.config.trashConfig;
13 import com.trash.common.utils.RemoteServerUtils; 14 import com.trash.common.utils.RemoteServerUtils;
  15 +import com.trash.common.utils.SecurityUtils;
14 import com.trash.common.utils.spring.SpringUtils; 16 import com.trash.common.utils.spring.SpringUtils;
15 import com.trash.workflow.domain.Workflow; 17 import com.trash.workflow.domain.Workflow;
16 import com.trash.workflow.mapper.WorkflowMapper; 18 import com.trash.workflow.mapper.WorkflowMapper;
@@ -25,7 +27,8 @@ public class ConractListener implements ExecutionListener { @@ -25,7 +27,8 @@ public class ConractListener implements ExecutionListener {
25 27
26 @Autowired 28 @Autowired
27 IWorkflowService workflowService; 29 IWorkflowService workflowService;
28 - 30 + @Autowired
  31 + trashConfig trashConfig;
29 32
30 @Override 33 @Override
31 public void notify(DelegateExecution delegateExecution) { 34 public void notify(DelegateExecution delegateExecution) {
@@ -38,8 +41,56 @@ public class ConractListener implements ExecutionListener { @@ -38,8 +41,56 @@ public class ConractListener implements ExecutionListener {
38 map.put("auditStatus", state.getValue(delegateExecution).toString()); 41 map.put("auditStatus", state.getValue(delegateExecution).toString());
39 maps.add(map); 42 maps.add(map);
40 43
41 - Object obj = RemoteServerUtils.updateConractStatus(maps);  
42 - 44 + boolean obj = false;
  45 + try{
  46 + obj = (boolean)RemoteServerUtils.updateConractStatus(maps);
  47 + }catch(Exception e){
  48 + e.printStackTrace();
  49 + }
  50 +
  51 + if(!obj){
  52 + final String token = trashConfig.getToken();
  53 + new Thread(new Runnable() {
  54 +
  55 + @Override
  56 + public void run() {
  57 + while(true){
  58 + try {
  59 +
  60 + boolean object = false;
  61 + try{
  62 + object = (boolean)RemoteServerUtils.updateConractStatus(maps,token);
  63 + }catch(Exception e){
  64 + e.printStackTrace();
  65 + }
  66 +
  67 + try {
  68 + Thread.sleep(30000);
  69 + } catch (InterruptedException e) {
  70 + // TODO Auto-generated catch block
  71 + e.printStackTrace();
  72 + }
  73 + if(object){
  74 + break;
  75 + }
  76 +
  77 + } catch (Exception e) {
  78 + e.printStackTrace();
  79 + }
  80 +
  81 + try {
  82 + Thread.sleep(30000);
  83 + } catch (InterruptedException e) {
  84 + // TODO Auto-generated catch block
  85 + e.printStackTrace();
  86 + }
  87 +
  88 + }
  89 +
  90 + }
  91 + }).start();
  92 + }
  93 +
43 workflowUtils.sendDataToHisTory(delegateExecution, state,String.valueOf(obj)); 94 workflowUtils.sendDataToHisTory(delegateExecution, state,String.valueOf(obj));
44 95
45 96
trash-workFlow/src/main/java/com/trash/workflow/listener/ConstructionEndListener.java
@@ -10,7 +10,9 @@ import org.activiti.engine.delegate.ExecutionListener; @@ -10,7 +10,9 @@ import org.activiti.engine.delegate.ExecutionListener;
10 import org.activiti.engine.delegate.Expression; 10 import org.activiti.engine.delegate.Expression;
11 import org.springframework.beans.factory.annotation.Autowired; 11 import org.springframework.beans.factory.annotation.Autowired;
12 12
  13 +import com.trash.common.config.trashConfig;
13 import com.trash.common.utils.RemoteServerUtils; 14 import com.trash.common.utils.RemoteServerUtils;
  15 +import com.trash.common.utils.SecurityUtils;
14 import com.trash.common.utils.spring.SpringUtils; 16 import com.trash.common.utils.spring.SpringUtils;
15 import com.trash.workflow.domain.Workflow; 17 import com.trash.workflow.domain.Workflow;
16 import com.trash.workflow.mapper.WorkflowMapper; 18 import com.trash.workflow.mapper.WorkflowMapper;
@@ -27,6 +29,9 @@ public class ConstructionEndListener implements ExecutionListener { @@ -27,6 +29,9 @@ public class ConstructionEndListener implements ExecutionListener {
27 29
28 @Autowired 30 @Autowired
29 IWorkflowService workflowService; 31 IWorkflowService workflowService;
  32 +
  33 + @Autowired
  34 + trashConfig trashConfig;
30 35
31 36
32 @Override 37 @Override
@@ -40,8 +45,54 @@ public class ConstructionEndListener implements ExecutionListener { @@ -40,8 +45,54 @@ public class ConstructionEndListener implements ExecutionListener {
40 map.put("auditStatus", state.getValue(delegateExecution).toString()); 45 map.put("auditStatus", state.getValue(delegateExecution).toString());
41 maps.add(map); 46 maps.add(map);
42 47
43 - Object obj = RemoteServerUtils.updateConstationCreditAndStatus(maps);  
44 - 48 + boolean obj = false;
  49 + try{
  50 + obj = (boolean)RemoteServerUtils.updateConstationCreditAndStatus(maps);
  51 + }catch(Exception e){
  52 + e.printStackTrace();
  53 + }
  54 + if(!obj){
  55 + final String token = trashConfig.getToken();;
  56 + new Thread(new Runnable() {
  57 +
  58 + @Override
  59 + public void run() {
  60 + while(true){
  61 + try {
  62 +
  63 + boolean object = false;
  64 + try{
  65 + object = (boolean)RemoteServerUtils.updateConstationCreditAndStatus(maps,token);
  66 + }catch(Exception e){
  67 + e.printStackTrace();
  68 + }
  69 + try {
  70 + Thread.sleep(30000);
  71 + } catch (InterruptedException e) {
  72 + // TODO Auto-generated catch block
  73 + e.printStackTrace();
  74 + }
  75 + if(object){
  76 + break;
  77 + }
  78 +
  79 + } catch (Exception e) {
  80 + e.printStackTrace();
  81 + }
  82 +
  83 + try {
  84 + Thread.sleep(30000);
  85 + } catch (InterruptedException e) {
  86 + // TODO Auto-generated catch block
  87 + e.printStackTrace();
  88 + }
  89 +
  90 + }
  91 +
  92 + }
  93 + },"conThread").start();
  94 + }
  95 +
45 workflowUtils.sendDataToHisTory(delegateExecution, state,String.valueOf(obj)); 96 workflowUtils.sendDataToHisTory(delegateExecution, state,String.valueOf(obj));
46 97
47 98
trash-workFlow/src/main/java/com/trash/workflow/listener/EarthSitesEndStateListener.java
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired; @@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
13 13
14 import com.alibaba.fastjson.JSON; 14 import com.alibaba.fastjson.JSON;
15 import com.alibaba.fastjson.JSONObject; 15 import com.alibaba.fastjson.JSONObject;
  16 +import com.trash.common.config.trashConfig;
16 import com.trash.common.core.domain.model.LoginUser; 17 import com.trash.common.core.domain.model.LoginUser;
17 import com.trash.common.utils.RemoteServerUtils; 18 import com.trash.common.utils.RemoteServerUtils;
18 import com.trash.common.utils.SecurityUtils; 19 import com.trash.common.utils.SecurityUtils;
@@ -29,6 +30,8 @@ public class EarthSitesEndStateListener implements ExecutionListener { @@ -29,6 +30,8 @@ public class EarthSitesEndStateListener implements ExecutionListener {
29 30
30 private Expression state; 31 private Expression state;
31 32
  33 + @Autowired
  34 + trashConfig trashConfig;
32 35
33 @Override 36 @Override
34 public void notify(DelegateExecution delegateExecution) { 37 public void notify(DelegateExecution delegateExecution) {
@@ -41,8 +44,55 @@ public class EarthSitesEndStateListener implements ExecutionListener { @@ -41,8 +44,55 @@ public class EarthSitesEndStateListener implements ExecutionListener {
41 map.put("auditStatus", state.getValue(delegateExecution).toString()); 44 map.put("auditStatus", state.getValue(delegateExecution).toString());
42 maps.add(map); 45 maps.add(map);
43 46
44 - Object obj = RemoteServerUtils.updateEarthSitesCreditAndStatus(maps);  
45 - 47 + boolean obj = false;
  48 + try{
  49 + obj = (boolean)RemoteServerUtils.updateEarthSitesCreditAndStatus(maps);
  50 + }catch(Exception e){
  51 + e.printStackTrace();
  52 + }
  53 +
  54 + if(!obj){
  55 + final String token = trashConfig.getToken();;
  56 + new Thread(new Runnable() {
  57 +
  58 + @Override
  59 + public void run() {
  60 + while(true){
  61 + try {
  62 +
  63 + boolean object = false;
  64 + try{
  65 + object = (boolean)RemoteServerUtils.updateEarthSitesCreditAndStatus(maps,token);
  66 + }catch(Exception e){
  67 + e.printStackTrace();
  68 + }
  69 + try {
  70 + Thread.sleep(30000);
  71 + } catch (InterruptedException e) {
  72 + // TODO Auto-generated catch block
  73 + e.printStackTrace();
  74 + }
  75 + if(object){
  76 + break;
  77 + }
  78 +
  79 + } catch (Exception e) {
  80 + e.printStackTrace();
  81 + }
  82 +
  83 + try {
  84 + Thread.sleep(30000);
  85 + } catch (InterruptedException e) {
  86 + // TODO Auto-generated catch block
  87 + e.printStackTrace();
  88 + }
  89 +
  90 + }
  91 +
  92 + }
  93 + }).start();
  94 + }
  95 +
46 workflowUtils.sendDataToHisTory(delegateExecution, state,String.valueOf(obj)); 96 workflowUtils.sendDataToHisTory(delegateExecution, state,String.valueOf(obj));
47 97
48 System.out.println("流程状态更新 更新ID:" + delegateExecution.getProcessInstanceBusinessKey() + "状态:" + state.getValue(delegateExecution).toString()); 98 System.out.println("流程状态更新 更新ID:" + delegateExecution.getProcessInstanceBusinessKey() + "状态:" + state.getValue(delegateExecution).toString());
trash-workFlow/src/main/java/com/trash/workflow/listener/baseDataListener.java
@@ -4,6 +4,7 @@ import com.trash.office.domain.Conference; @@ -4,6 +4,7 @@ import com.trash.office.domain.Conference;
4 import com.trash.office.mapper.ConferenceMapper; 4 import com.trash.office.mapper.ConferenceMapper;
5 import com.trash.workflow.mapper.WorkflowMapper; 5 import com.trash.workflow.mapper.WorkflowMapper;
6 import com.alibaba.fastjson.JSONObject; 6 import com.alibaba.fastjson.JSONObject;
  7 +import com.trash.common.config.trashConfig;
7 import com.trash.common.utils.RemoteServerUtils; 8 import com.trash.common.utils.RemoteServerUtils;
8 import com.trash.common.utils.SecurityUtils; 9 import com.trash.common.utils.SecurityUtils;
9 import com.trash.common.utils.spring.SpringUtils; 10 import com.trash.common.utils.spring.SpringUtils;
@@ -18,6 +19,7 @@ import org.activiti.engine.delegate.ExecutionListener; @@ -18,6 +19,7 @@ import org.activiti.engine.delegate.ExecutionListener;
18 import org.activiti.engine.delegate.Expression; 19 import org.activiti.engine.delegate.Expression;
19 import org.slf4j.Logger; 20 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory; 21 import org.slf4j.LoggerFactory;
  22 +import org.springframework.beans.factory.annotation.Autowired;
21 23
22 24
23 public class baseDataListener implements ExecutionListener { 25 public class baseDataListener implements ExecutionListener {
@@ -25,6 +27,9 @@ public class baseDataListener implements ExecutionListener { @@ -25,6 +27,9 @@ public class baseDataListener implements ExecutionListener {
25 27
26 private static final Logger log = LoggerFactory.getLogger(baseDataListener.class); 28 private static final Logger log = LoggerFactory.getLogger(baseDataListener.class);
27 29
  30 + @Autowired
  31 + trashConfig trashConfig;
  32 +
28 @Override 33 @Override
29 public void notify(DelegateExecution delegateExecution) { 34 public void notify(DelegateExecution delegateExecution) {
30 35
@@ -57,7 +62,7 @@ public class baseDataListener implements ExecutionListener { @@ -57,7 +62,7 @@ public class baseDataListener implements ExecutionListener {
57 62
58 63
59 if(!object){ 64 if(!object){
60 - final String token = "auth:token:" + SecurityUtils.getLoginUser().getToken(); 65 + final String token = trashConfig.getToken();
61 new Thread(new Runnable() { 66 new Thread(new Runnable() {
62 67
63 @Override 68 @Override
@@ -78,7 +83,7 @@ public class baseDataListener implements ExecutionListener { @@ -78,7 +83,7 @@ public class baseDataListener implements ExecutionListener {
78 83
79 try { 84 try {
80 log.info("baseDataListener:" + delegateExecution.getProcessInstanceBusinessKey().split(":")[1] + "" + object); 85 log.info("baseDataListener:" + delegateExecution.getProcessInstanceBusinessKey().split(":")[1] + "" + object);
81 - Thread.sleep(3000); 86 + Thread.sleep(30000);
82 } catch (InterruptedException e) { 87 } catch (InterruptedException e) {
83 // TODO Auto-generated catch block 88 // TODO Auto-generated catch block
84 e.printStackTrace(); 89 e.printStackTrace();
trash-workFlow/src/main/java/com/trash/workflow/service/impl/WorkflowServiceImpl.java
@@ -119,7 +119,6 @@ public class WorkflowServiceImpl implements IWorkflowService { @@ -119,7 +119,6 @@ public class WorkflowServiceImpl implements IWorkflowService {
119 119
120 String businessKey = flowType + ":" + map.get("id"); // 流程对应事务key 120 String businessKey = flowType + ":" + map.get("id"); // 流程对应事务key
121 String title = map.get("title").toString(); 121 String title = map.get("title").toString();
122 -  
123 String reason = map.get("reason").toString(); 122 String reason = map.get("reason").toString();
124 String startTime = map.get("startTime").toString(); 123 String startTime = map.get("startTime").toString();
125 String endTime = map.get("endTime").toString(); 124 String endTime = map.get("endTime").toString();
@@ -170,8 +169,6 @@ public class WorkflowServiceImpl implements IWorkflowService { @@ -170,8 +169,6 @@ public class WorkflowServiceImpl implements IWorkflowService {
170 169
171 constructionSign.setObjectId(map.get("id").toString()); 170 constructionSign.setObjectId(map.get("id").toString());
172 171
173 -  
174 -  
175 if (!user.getAvatar().contains("null")) { 172 if (!user.getAvatar().contains("null")) {
176 constructionSign.setSign1(SecurityUtils.getLoginUser().getUser().getAvatar()); 173 constructionSign.setSign1(SecurityUtils.getLoginUser().getUser().getAvatar());
177 constructionSign.setSign1Time(new Date()); 174 constructionSign.setSign1Time(new Date());
trash-workFlow/src/main/resources/mapper/ConstructionCreditMapper.xml
@@ -97,7 +97,6 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -97,7 +97,6 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
97 </delete> 97 </delete>
98 98
99 <select id="getNames" parameterType="ConstructionCredit" resultType="String"> 99 <select id="getNames" parameterType="ConstructionCredit" resultType="String">
100 -  
101 select DISTINCT name from construction_credit 100 select DISTINCT name from construction_credit
102 <where> 101 <where>
103 <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> 102 <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
@@ -125,13 +124,17 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -125,13 +124,17 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
125 124
126 125
127 <select id="selectConstructionCreditHistory" parameterType="ConstructionCredit" resultMap="ConstructionCreditResult"> 126 <select id="selectConstructionCreditHistory" parameterType="ConstructionCredit" resultMap="ConstructionCreditResult">
128 -  
129 - select c.* from (select a.* from construction_credit a where not exists (select b.* from construction_credit b where a.name = b.name and a.id &lt; id )) c  
130 - 127 + SELECT t1.*
  128 + FROM construction_credit t1
  129 + INNER JOIN (
  130 + SELECT name, MAX(id) as max_id
  131 + FROM construction_credit
  132 + GROUP BY name
  133 + ) t2 ON t1.name = t2.name AND t1.id = t2.max_id
131 <where> 134 <where>
132 - <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>  
133 - <if test="type != null and type != ''"> and type = #{type}</if>  
134 - <if test="place != null and place != ''"> and place = #{place}</if> 135 + <if test="name != null and name != ''"> and t1.name like concat('%', #{name}, '%')</if>
  136 + <if test="type != null and type != ''"> and t1.type = #{type}</if>
  137 + <if test="place != null and place != ''"> and t1.place = #{place}</if>
135 <if test="ids != null "> 138 <if test="ids != null ">
136 and object_id in 139 and object_id in
137 <foreach item="id" collection="ids" open="(" separator="," close=")"> 140 <foreach item="id" collection="ids" open="(" separator="," close=")">
@@ -139,6 +142,8 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -139,6 +142,8 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
139 </foreach> 142 </foreach>
140 </if> 143 </if>
141 </where> 144 </where>
  145 +
  146 + ORDER BY id desc
142 </select> 147 </select>
143 148
144 </mapper> 149 </mapper>
145 \ No newline at end of file 150 \ No newline at end of file
trash-workFlow/src/main/resources/mapper/SupervisionThreestepMapper.xml
@@ -135,7 +135,14 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -135,7 +135,14 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
135 <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> 135 <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
136 <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and 136 <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and
137 #{workEndTime}</if> 137 #{workEndTime}</if>
138 - 138 +
  139 + <if test="places != null and places.length > 0">
  140 + and place in
  141 + <foreach item="place" collection="places" open="(" separator=","
  142 + close=")">
  143 + #{place}
  144 + </foreach>
  145 + </if>
139 <if test="ids != null"> 146 <if test="ids != null">
140 and object_id in 147 and object_id in
141 <foreach item="id" collection="ids" open="(" separator="," 148 <foreach item="id" collection="ids" open="(" separator=","
trash-workFlow/src/main/resources/mapper/TruckCreditMapper.xml
@@ -129,18 +129,25 @@ @@ -129,18 +129,25 @@
129 129
130 <select id="selectTruckCreditHistory" parameterType="TruckCredit" resultMap="TruckCreditResult"> 130 <select id="selectTruckCreditHistory" parameterType="TruckCredit" resultMap="TruckCreditResult">
131 131
132 - select c.* from (select a.* from truck_credit a where not exists (select b.* from truck_credit b where a.license_plate = b.license_plate and a.id &lt; id )) c  
133 - 132 + SELECT t1.*
  133 + FROM truck_credit t1
  134 + INNER JOIN (
  135 + SELECT license_plate, MAX(id) as max_id
  136 + FROM truck_credit
  137 + GROUP BY license_plate
  138 + ) t2 ON t1.license_plate = t2.license_plate AND t1.id = t2.max_id
134 <where> 139 <where>
135 - <if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%')</if>  
136 - <if test="licensePlate != null and licensePlate != ''"> and license_plate like concat('%', #{licensePlate}, '%')</if>  
137 - <if test="ids != null ">  
138 - and object_id in 140 + <if test="companyId != null and companyId != ''"> and t1.company_id like concat('%',#{companyId},'%')</if>
  141 + <if test="licensePlate != null and licensePlate != ''"> and t1.license_plate like concat('%', #{licensePlate}, '%')</if>
  142 + <if test="ids != null and ids.size() > 0">
  143 + and t1.object_id in
139 <foreach item="id" collection="ids" open="(" separator="," close=")"> 144 <foreach item="id" collection="ids" open="(" separator="," close=")">
140 #{id} 145 #{id}
141 </foreach> 146 </foreach>
142 </if> 147 </if>
143 </where> 148 </where>
  149 +
  150 + ORDER BY id desc
144 </select> 151 </select>
145 152
146 </mapper> 153 </mapper>
147 \ No newline at end of file 154 \ No newline at end of file
trash-workFlow/src/main/resources/mapper/caseOffline/CaseOfflineMapper.xml
@@ -36,7 +36,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -36,7 +36,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
36 <where> 36 <where>
37 <if test="status1 != null "> ${status1}</if> 37 <if test="status1 != null "> ${status1}</if>
38 <if test="type != null and type != ''"> and type = #{type}</if> 38 <if test="type != null and type != ''"> and type = #{type}</if>
39 - <if test="place != null and place != ''"> and place = #{place}</if> 39 + <if test="place != null and place != ''">and LOCATE(place , #{place}) > 0</if>
40 <if test="startTime != null "> and create_time between #{startTime} and #{endTime}</if> 40 <if test="startTime != null "> and create_time between #{startTime} and #{endTime}</if>
41 <if test="names != null and names.size() > 0"> 41 <if test="names != null and names.size() > 0">
42 and site_name in 42 and site_name in
trash-workFlow/src/main/resources/mapper/casefile/ViolationCaseFileMapper.xml
@@ -44,7 +44,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -44,7 +44,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
44 <where> 44 <where>
45 <if test="number != null and number != ''"> and number = #{number}</if> 45 <if test="number != null and number != ''"> and number = #{number}</if>
46 <if test="violationObjectType != null and violationObjectType != ''"> and violation_object_type = #{violationObjectType}</if> 46 <if test="violationObjectType != null and violationObjectType != ''"> and violation_object_type = #{violationObjectType}</if>
47 - <if test="owningRegion != null and owningRegion != ''"> and owning_region like concat('%', #{owningRegion}, '%')</if> 47 + <if test="owningRegion != null and owningRegion != ''">and LOCATE(owning_region , #{owningRegion}) > 0</if>
48 <if test="violationType != null and violationType != ''"> and violation_type = #{violationType}</if> 48 <if test="violationType != null and violationType != ''"> and violation_type = #{violationType}</if>
49 <if test="violationGrade != null and violationGrade != ''"> and violation_grade = #{violationGrade}</if> 49 <if test="violationGrade != null and violationGrade != ''"> and violation_grade = #{violationGrade}</if>
50 <if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if> 50 <if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
@@ -77,7 +77,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -77,7 +77,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
77 <select id="selectViolationCaseFileListByTable" parameterType="violationCaseFile" resultMap="violationCaseFileResult"> 77 <select id="selectViolationCaseFileListByTable" parameterType="violationCaseFile" resultMap="violationCaseFileResult">
78 <include refid="selectViolationCaseFileVo"/> 78 <include refid="selectViolationCaseFileVo"/>
79 <where> 79 <where>
80 - <if test="owningRegion != null and owningRegion != ''">and owning_region = #{owningRegion}</if> 80 + <if test="owningRegion != null and owningRegion != ''">and LOCATE(owning_region , #{owningRegion}) > 0</if>
81 <if test="startDate!=null and endDate!=null and startDate!='' and endDate!=''">and create_time between #{startDate} and #{endDate}</if> 81 <if test="startDate!=null and endDate!=null and startDate!='' and endDate!=''">and create_time between #{startDate} and #{endDate}</if>
82 </where> 82 </where>
83 </select> 83 </select>
trash-workFlow/src/main/resources/mapper/casefile/ViolationWarningInformationMapper.xml
@@ -41,7 +41,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -41,7 +41,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
41 <where> 41 <where>
42 <if test="number != null and number != ''"> and `number` = #{number}</if> 42 <if test="number != null and number != ''"> and `number` = #{number}</if>
43 <if test="violationObjectType != null and violationObjectType != ''"> and violation_object_type = #{violationObjectType}</if> 43 <if test="violationObjectType != null and violationObjectType != ''"> and violation_object_type = #{violationObjectType}</if>
44 - <if test="owningRegion != null and owningRegion != ''"> and owning_region = #{owningRegion}</if> 44 + <if test="owningRegion != null and owningRegion != ''"> and LOCATE(owning_region , #{owningRegion}) > 0</if>
45 <if test="violationType != null and violationType != ''"> and violation_type = #{violationType}</if> 45 <if test="violationType != null and violationType != ''"> and violation_type = #{violationType}</if>
46 <if test="violationGrade != null and violationGrade != ''"> and violation_grade = #{violationGrade}</if> 46 <if test="violationGrade != null and violationGrade != ''"> and violation_grade = #{violationGrade}</if>
47 <if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if> 47 <if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
@@ -65,7 +65,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -65,7 +65,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
65 <select id="selectViolationWarningInformationListByTable" parameterType="ViolationWarningInformation" resultMap="ViolationWarningInformationResult"> 65 <select id="selectViolationWarningInformationListByTable" parameterType="ViolationWarningInformation" resultMap="ViolationWarningInformationResult">
66 <include refid="selectViolationWarningInformationVo"/> 66 <include refid="selectViolationWarningInformationVo"/>
67 <where> 67 <where>
68 - <if test="owningRegion != null and owningRegion != ''">and owning_region = #{owningRegion}</if> 68 + <if test="owningRegion != null and owningRegion != ''">and LOCATE(owning_region , #{owningRegion}) > 0</if>
69 <if test="startDate!=null and endDate!=null and startDate!='' and endDate!=''">and create_time between #{startDate} and #{endDate}</if> 69 <if test="startDate!=null and endDate!=null and startDate!='' and endDate!=''">and create_time between #{startDate} and #{endDate}</if>
70 </where> 70 </where>
71 </select> 71 </select>