Commit a6f8ec991ed7603136a05bace79234233d2a8090
1 parent
3a9d1c24
m
Showing
51 changed files
with
2100 additions
and
354 deletions
trash-activiti/src/main/java/com/trash/activiti/service/impl/FormHistoryDataServiceImpl.java
| @@ -117,7 +117,7 @@ public class FormHistoryDataServiceImpl implements IFormHistoryDataService { | @@ -117,7 +117,7 @@ public class FormHistoryDataServiceImpl implements IFormHistoryDataService { | ||
| 117 | // } | 117 | // } |
| 118 | // ); | 118 | // ); |
| 119 | 119 | ||
| 120 | - returnHistoryFromDataDTOS = returnHistoryFromDataDTOS.stream().sorted((y,x) -> x.getCreateTime().compareTo(y.getCreateTime())).collect(Collectors.toList()); | 120 | + returnHistoryFromDataDTOS = returnHistoryFromDataDTOS.stream().sorted((x,y) -> x.getCreateTime().compareTo(y.getCreateTime())).collect(Collectors.toList()); |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | return returnHistoryFromDataDTOS; | 123 | return returnHistoryFromDataDTOS; |
trash-admin/src/main/resources/logback.xml
| @@ -11,14 +11,14 @@ | @@ -11,14 +11,14 @@ | ||
| 11 | <encoder> | 11 | <encoder> |
| 12 | <pattern>${log.pattern}</pattern> | 12 | <pattern>${log.pattern}</pattern> |
| 13 | </encoder> | 13 | </encoder> |
| 14 | - <filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
| 15 | - <!-- 过滤的级别 --> | 14 | +<!-- <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| 15 | + 过滤的级别 | ||
| 16 | <level>ERROR</level> | 16 | <level>ERROR</level> |
| 17 | - <!-- 匹配时的操作:接收(记录) --> | 17 | + 匹配时的操作:接收(记录) |
| 18 | <onMatch>ACCEPT</onMatch> | 18 | <onMatch>ACCEPT</onMatch> |
| 19 | - <!-- 不匹配时的操作:拒绝(不记录) --> | 19 | + 不匹配时的操作:拒绝(不记录) |
| 20 | <onMismatch>DENY</onMismatch> | 20 | <onMismatch>DENY</onMismatch> |
| 21 | - </filter> | 21 | + </filter> --> |
| 22 | </appender> | 22 | </appender> |
| 23 | 23 | ||
| 24 | <!-- 系统日志输出 --> | 24 | <!-- 系统日志输出 --> |
trash-common/src/main/java/com/trash/common/utils/RemoteServerUtils.java
| @@ -47,6 +47,9 @@ public class RemoteServerUtils { | @@ -47,6 +47,9 @@ public class RemoteServerUtils { | ||
| 47 | public static String EarthSitesList = "//api/siteservice/cs/earthsites/ledger/list"; | 47 | public static String EarthSitesList = "//api/siteservice/cs/earthsites/ledger/list"; |
| 48 | 48 | ||
| 49 | public static String ConstructionInfo = "/api/siteservice/cs/constructionsites/"; | 49 | public static String ConstructionInfo = "/api/siteservice/cs/constructionsites/"; |
| 50 | + | ||
| 51 | + | ||
| 52 | + public static String constructionLicenseById = "/api/siteservice/cs/constructionsites/license/"; | ||
| 50 | 53 | ||
| 51 | public static String ConstructionList = "/api/siteservice/cs/constructionsites/search"; | 54 | public static String ConstructionList = "/api/siteservice/cs/constructionsites/search"; |
| 52 | 55 | ||
| @@ -262,6 +265,19 @@ public class RemoteServerUtils { | @@ -262,6 +265,19 @@ public class RemoteServerUtils { | ||
| 262 | return turckList; | 265 | return turckList; |
| 263 | } | 266 | } |
| 264 | 267 | ||
| 268 | + public static JSONObject getConstructionLicenseById(String id) { | ||
| 269 | + JSONObject turckList=null; | ||
| 270 | + Object object = get(constructionLicenseById + id,null); | ||
| 271 | + | ||
| 272 | + if(object != null){ | ||
| 273 | + turckList = JSON.parseObject(object.toString()); | ||
| 274 | + return turckList; | ||
| 275 | + } | ||
| 276 | + | ||
| 277 | + return turckList; | ||
| 278 | + | ||
| 279 | + } | ||
| 280 | + | ||
| 265 | 281 | ||
| 266 | public static JSONObject getConstructionInfo(String id) { | 282 | public static JSONObject getConstructionInfo(String id) { |
| 267 | JSONObject turckList=null; | 283 | JSONObject turckList=null; |
trash-quartz/src/main/java/com/trash/quartz/task/DriverTask.java
| @@ -160,7 +160,7 @@ public class DriverTask | @@ -160,7 +160,7 @@ public class DriverTask | ||
| 160 | TruckCredit truckCredit = new TruckCredit(); | 160 | TruckCredit truckCredit = new TruckCredit(); |
| 161 | truckCredit.setTime(new Date()); | 161 | truckCredit.setTime(new Date()); |
| 162 | truckCredit.setCreateBy("定时器"); | 162 | truckCredit.setCreateBy("定时器"); |
| 163 | - truckCredit.setReason("证件过期"); | 163 | + truckCredit.setReason("道路运输证有效期:"+truck.getString("transportCertValid") + " 行驶证有效期:" + truck.getString("licenseValid") + ",证件过期"); |
| 164 | truckCredit.setLostCredit(1L); | 164 | truckCredit.setLostCredit(1L); |
| 165 | truckCredit.setObjectId(truck.getString("id")); | 165 | truckCredit.setObjectId(truck.getString("id")); |
| 166 | truckCredit.setLicensePlate(truck.getString("licenseplateNo")); | 166 | truckCredit.setLicensePlate(truck.getString("licenseplateNo")); |
| @@ -224,7 +224,7 @@ public class DriverTask | @@ -224,7 +224,7 @@ public class DriverTask | ||
| 224 | CompanyCredit companyCredit = new CompanyCredit(); | 224 | CompanyCredit companyCredit = new CompanyCredit(); |
| 225 | companyCredit.setTime(new Date()); | 225 | companyCredit.setTime(new Date()); |
| 226 | companyCredit.setCreateBy("定时器"); | 226 | companyCredit.setCreateBy("定时器"); |
| 227 | - companyCredit.setReason("证件过期"); | 227 | + companyCredit.setReason("企业道路运输经营许可证有效期:" + company.getString("businessLicenseValidTime") + " 企业营业执照有效期:" + company.getString("registrationValidTime") + ",证件过期"); |
| 228 | companyCredit.setLostCredit(1L); | 228 | companyCredit.setLostCredit(1L); |
| 229 | companyCredit.setObjectId(company.getString("id")); | 229 | companyCredit.setObjectId(company.getString("id")); |
| 230 | companyCredit.setName(company.getString("name")); | 230 | companyCredit.setName(company.getString("name")); |
trash-ui/public/bpmnjs/index.js
| @@ -83558,7 +83558,21 @@ module.exports = function(group, element, bpmnFactory, translate) { | @@ -83558,7 +83558,21 @@ module.exports = function(group, element, bpmnFactory, translate) { | ||
| 83558 | var value = $("#activiti-form-field-id").val(); | 83558 | var value = $("#activiti-form-field-id").val(); |
| 83559 | 83559 | ||
| 83560 | value = value.split("--__!!")[0]; | 83560 | value = value.split("--__!!")[0]; |
| 83561 | - | 83561 | + debugger; |
| 83562 | + if($("#FormProperty_type").val() == "radio"){ | ||
| 83563 | + $("#FormLabel").val("审批"); | ||
| 83564 | + $("#FormValue").val("通过,驳回"); | ||
| 83565 | + | ||
| 83566 | + $("#FormLabel").value = "审批"; | ||
| 83567 | + $("#FormValue").value = "通过,驳回"; | ||
| 83568 | + } | ||
| 83569 | + if($("#FormProperty_type").val() == "textarea"){ | ||
| 83570 | + $("#FormLabel").val("批注"); | ||
| 83571 | + $("#FormValue").val("NULL"); | ||
| 83572 | + | ||
| 83573 | + $("#FormLabel").value = "批注"; | ||
| 83574 | + $("#FormValue").value = "NULL"; | ||
| 83575 | + } | ||
| 83562 | var label = $("#FormLabel").val() == "" ? "NULL" : $("#FormLabel").val(); | 83576 | var label = $("#FormLabel").val() == "" ? "NULL" : $("#FormLabel").val(); |
| 83563 | var labelValue = $("#FormValue").val() == "" ? "NULL" : $("#FormValue").val(); | 83577 | var labelValue = $("#FormValue").val() == "" ? "NULL" : $("#FormValue").val(); |
| 83564 | 83578 | ||
| @@ -83642,14 +83656,14 @@ module.exports = function(group, element, bpmnFactory, translate) { | @@ -83642,14 +83656,14 @@ module.exports = function(group, element, bpmnFactory, translate) { | ||
| 83642 | if(param[2]){ | 83656 | if(param[2]){ |
| 83643 | p = param[2]; | 83657 | p = param[2]; |
| 83644 | } | 83658 | } |
| 83645 | - $(".bpp-properties-entry[data-entry='form-field-id']").append("<p>标签</p><input id=FormLabel type=input value="+p +">"); | 83659 | + $(".bpp-properties-entry[data-entry='form-field-id']").append("<p>标签</p><input id=FormLabel type=input value='审批'>"); |
| 83646 | 83660 | ||
| 83647 | p = ""; | 83661 | p = ""; |
| 83648 | 83662 | ||
| 83649 | if(param[4]){ | 83663 | if(param[4]){ |
| 83650 | p = param[4].replace("--__--",","); | 83664 | p = param[4].replace("--__--",","); |
| 83651 | } | 83665 | } |
| 83652 | - $(".bpp-properties-entry[data-entry='form-field-id']").append("<p>参数</p><input id=FormValue type=input value="+p +">"); | 83666 | + $(".bpp-properties-entry[data-entry='form-field-id']").append("<p>参数</p><input id=FormValue type=input value='通过,驳回'>"); |
| 83653 | 83667 | ||
| 83654 | p = ''; | 83668 | p = ''; |
| 83655 | 83669 | ||
| @@ -83659,12 +83673,12 @@ module.exports = function(group, element, bpmnFactory, translate) { | @@ -83659,12 +83673,12 @@ module.exports = function(group, element, bpmnFactory, translate) { | ||
| 83659 | 83673 | ||
| 83660 | $(".bpp-properties-entry[data-entry='form-field-id']").append("<p>是否关键</p><input id=isprime type=checkbox "+p+">"); | 83674 | $(".bpp-properties-entry[data-entry='form-field-id']").append("<p>是否关键</p><input id=isprime type=checkbox "+p+">"); |
| 83661 | 83675 | ||
| 83662 | - | ||
| 83663 | $("#FormProperty_type").change(updateParamInput); | 83676 | $("#FormProperty_type").change(updateParamInput); |
| 83664 | $("#FormLabel").change(updateParamInput); | 83677 | $("#FormLabel").change(updateParamInput); |
| 83665 | $("#FormValue").change(updateParamInput); | 83678 | $("#FormValue").change(updateParamInput); |
| 83666 | $("#isprime").change(updateParamInput); | 83679 | $("#isprime").change(updateParamInput); |
| 83667 | 83680 | ||
| 83681 | + | ||
| 83668 | if (!idValue || idValue.trim() === '') { | 83682 | if (!idValue || idValue.trim() === '') { |
| 83669 | return { id: 'Form field id must not be empty' }; | 83683 | return { id: 'Form field id must not be empty' }; |
| 83670 | } | 83684 | } |
trash-ui/src/api/business/threeHistory.js
0 → 100644
| 1 | +import request from '@/utils/request' | ||
| 2 | + | ||
| 3 | +// 查询开停工列表 | ||
| 4 | +export function listThreeHistory(query) { | ||
| 5 | + return request({ | ||
| 6 | + url: '/threehistory/threeHistory/list', | ||
| 7 | + method: 'get', | ||
| 8 | + params: query | ||
| 9 | + }) | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +// 查询开停工详细 | ||
| 13 | +export function getThreeHistory(id) { | ||
| 14 | + return request({ | ||
| 15 | + url: '/threehistory/threeHistory/' + id, | ||
| 16 | + method: 'get' | ||
| 17 | + }) | ||
| 18 | +} | ||
| 19 | + | ||
| 20 | +// 新增开停工 | ||
| 21 | +export function addThreeHistory(data) { | ||
| 22 | + return request({ | ||
| 23 | + url: '/threehistory/threeHistory', | ||
| 24 | + method: 'post', | ||
| 25 | + data: data | ||
| 26 | + }) | ||
| 27 | +} | ||
| 28 | + | ||
| 29 | +// 修改开停工 | ||
| 30 | +export function updateThreeHistory(data) { | ||
| 31 | + return request({ | ||
| 32 | + url: '/threehistory/threeHistory', | ||
| 33 | + method: 'put', | ||
| 34 | + data: data | ||
| 35 | + }) | ||
| 36 | +} | ||
| 37 | + | ||
| 38 | +// 删除开停工 | ||
| 39 | +export function delThreeHistory(id) { | ||
| 40 | + return request({ | ||
| 41 | + url: '/threehistory/threeHistory/' + id, | ||
| 42 | + method: 'delete' | ||
| 43 | + }) | ||
| 44 | +} | ||
| 45 | + | ||
| 46 | +// 导出开停工 | ||
| 47 | +export function exportThreeHistory(query) { | ||
| 48 | + return request({ | ||
| 49 | + url: '/threehistory/threeHistory/export', | ||
| 50 | + method: 'get', | ||
| 51 | + params: query | ||
| 52 | + }) | ||
| 53 | +} | ||
| 0 | \ No newline at end of file | 54 | \ No newline at end of file |
trash-ui/src/api/business/truckActivate.js
| @@ -50,4 +50,12 @@ export function exportTruckActivate(query) { | @@ -50,4 +50,12 @@ export function exportTruckActivate(query) { | ||
| 50 | method: 'get', | 50 | method: 'get', |
| 51 | params: query | 51 | params: query |
| 52 | }) | 52 | }) |
| 53 | -} | ||
| 54 | \ No newline at end of file | 53 | \ No newline at end of file |
| 54 | +} | ||
| 55 | +// 导出车辆激活 | ||
| 56 | +export function exportTruckInfoActivate(query) { | ||
| 57 | + return request({ | ||
| 58 | + url: '/business/truckActivate/exportInfo', | ||
| 59 | + method: 'get', | ||
| 60 | + params: query | ||
| 61 | + }) | ||
| 62 | +} |
trash-ui/src/api/caseoffline.js
| @@ -146,26 +146,29 @@ export default { | @@ -146,26 +146,29 @@ export default { | ||
| 146 | }, | 146 | }, |
| 147 | methods: { | 147 | methods: { |
| 148 | getSite(item){ | 148 | getSite(item){ |
| 149 | - | ||
| 150 | this.remoteQueryData.name = item; | 149 | this.remoteQueryData.name = item; |
| 151 | - | ||
| 152 | - constructionsitesList(this.remoteQueryData).then(res => { | ||
| 153 | - this.data[0]= res.result.list; | ||
| 154 | - for(let i in res.result.list){ | ||
| 155 | - if(res.result.list[i].name == item){ | ||
| 156 | - this.form.objectId = res.result.list[i].id; | 150 | + if(this.form.siteType == 0){ |
| 151 | + constructionsitesList(this.remoteQueryData).then(res => { | ||
| 152 | + this.data[0]= res.result.list; | ||
| 153 | + for(let i in res.result.list){ | ||
| 154 | + if(res.result.list[i].name == item){ | ||
| 155 | + this.form.objectId = res.result.list[i].id; | ||
| 156 | + } | ||
| 157 | } | 157 | } |
| 158 | - } | ||
| 159 | - }); | ||
| 160 | - | ||
| 161 | - earthsitesList(this.remoteQueryData).then(res => { | ||
| 162 | - this.data[1]= res.result.list; | ||
| 163 | - for(let i in res.result.list){ | ||
| 164 | - if(res.result.list[i].name == item){ | ||
| 165 | - this.form.objectId = res.result.list[i].id; | 158 | + }); |
| 159 | + }else{ | ||
| 160 | + earthsitesList(this.remoteQueryData).then(res => { | ||
| 161 | + this.data[1]= res.result.list; | ||
| 162 | + for(let i in res.result.list){ | ||
| 163 | + if(res.result.list[i].name == item){ | ||
| 164 | + this.form.objectId = res.result.list[i].id; | ||
| 165 | + } | ||
| 166 | } | 166 | } |
| 167 | - } | ||
| 168 | - }); | 167 | + }); |
| 168 | + } | ||
| 169 | + | ||
| 170 | + | ||
| 171 | + | ||
| 169 | 172 | ||
| 170 | }, | 173 | }, |
| 171 | /** 查询线下交办案卷列表 */ | 174 | /** 查询线下交办案卷列表 */ |
trash-ui/src/api/dayWorkReport.js
| 1 | import h5Page from '@/views/h5/Pagination'; | 1 | import h5Page from '@/views/h5/Pagination'; |
| 2 | 2 | ||
| 3 | +import threeHistory from '@/views/business/threeHistory/index'; | ||
| 4 | +import earthInfo from '@/views/business/threeHistory/earthInfo'; | ||
| 3 | 5 | ||
| 4 | import { | 6 | import { |
| 5 | dayWorkList, | 7 | dayWorkList, |
| @@ -19,7 +21,6 @@ import { | @@ -19,7 +21,6 @@ import { | ||
| 19 | } from "@/api/business/threestep"; | 21 | } from "@/api/business/threestep"; |
| 20 | 22 | ||
| 21 | 23 | ||
| 22 | - | ||
| 23 | import { | 24 | import { |
| 24 | Upload | 25 | Upload |
| 25 | } from "element-ui"; | 26 | } from "element-ui"; |
| @@ -41,6 +42,8 @@ export default { | @@ -41,6 +42,8 @@ export default { | ||
| 41 | components: { | 42 | components: { |
| 42 | h5Page, | 43 | h5Page, |
| 43 | threestepInfo, | 44 | threestepInfo, |
| 45 | + threeHistory, | ||
| 46 | + earthInfo, | ||
| 44 | }, | 47 | }, |
| 45 | data() { | 48 | data() { |
| 46 | return { | 49 | return { |
| @@ -118,6 +121,7 @@ export default { | @@ -118,6 +121,7 @@ export default { | ||
| 118 | businessKey:null, | 121 | businessKey:null, |
| 119 | names:null, | 122 | names:null, |
| 120 | enames:null, | 123 | enames:null, |
| 124 | + threeHistoryType:0, | ||
| 121 | }; | 125 | }; |
| 122 | }, | 126 | }, |
| 123 | created() { | 127 | created() { |
| @@ -216,12 +220,9 @@ export default { | @@ -216,12 +220,9 @@ export default { | ||
| 216 | var page = this.queryParams.page; | 220 | var page = this.queryParams.page; |
| 217 | var size = this.queryParams.pageSize; | 221 | var size = this.queryParams.pageSize; |
| 218 | 222 | ||
| 219 | - | ||
| 220 | this.queryParams.page = 1; | 223 | this.queryParams.page = 1; |
| 221 | this.queryParams.pageSize = 9999; | 224 | this.queryParams.pageSize = 9999; |
| 222 | 225 | ||
| 223 | - console.log(this.queryParams); | ||
| 224 | - | ||
| 225 | if (this.queryParams.timeRange) { | 226 | if (this.queryParams.timeRange) { |
| 226 | this.queryParams.workStartTime = this.queryParams.timeRange[0]; | 227 | this.queryParams.workStartTime = this.queryParams.timeRange[0]; |
| 227 | this.queryParams.workEndTime = this.queryParams.timeRange[1]; | 228 | this.queryParams.workEndTime = this.queryParams.timeRange[1]; |
| @@ -290,6 +291,15 @@ export default { | @@ -290,6 +291,15 @@ export default { | ||
| 290 | }, | 291 | }, |
| 291 | /** 查询开工报表列表 */ | 292 | /** 查询开工报表列表 */ |
| 292 | getList(tabIdx) { | 293 | getList(tabIdx) { |
| 294 | + | ||
| 295 | + if(tabIdx && tabIdx > 3){ | ||
| 296 | + | ||
| 297 | + this.queryParams.his = tabIdx; | ||
| 298 | + this.$forceUpdate(); | ||
| 299 | + return; | ||
| 300 | + } | ||
| 301 | + | ||
| 302 | + | ||
| 293 | this.loading = this.$loading({ | 303 | this.loading = this.$loading({ |
| 294 | lock: true, | 304 | lock: true, |
| 295 | text: 'Loading', | 305 | text: 'Loading', |
trash-ui/src/api/three_step.js
| @@ -341,9 +341,6 @@ export default { | @@ -341,9 +341,6 @@ export default { | ||
| 341 | this.remoteQueryData.name = value; | 341 | this.remoteQueryData.name = value; |
| 342 | this.remoteData = []; | 342 | this.remoteData = []; |
| 343 | this.getRemoteData(); | 343 | this.getRemoteData(); |
| 344 | - | ||
| 345 | - | ||
| 346 | - | ||
| 347 | }, | 344 | }, |
| 348 | getCompanyTrucks(objId){ | 345 | getCompanyTrucks(objId){ |
| 349 | this.form.companys = null; | 346 | this.form.companys = null; |
trash-ui/src/api/truck_active.js
| @@ -4,7 +4,8 @@ import { | @@ -4,7 +4,8 @@ import { | ||
| 4 | delTruckActivate, | 4 | delTruckActivate, |
| 5 | addTruckActivate, | 5 | addTruckActivate, |
| 6 | updateTruckActivate, | 6 | updateTruckActivate, |
| 7 | - exportTruckActivate | 7 | + exportTruckActivate, |
| 8 | + exportTruckInfoActivate | ||
| 8 | } from "@/api/business/truckActivate"; | 9 | } from "@/api/business/truckActivate"; |
| 9 | 10 | ||
| 10 | 11 | ||
| @@ -436,6 +437,21 @@ export default { | @@ -436,6 +437,21 @@ export default { | ||
| 436 | }).then(response => { | 437 | }).then(response => { |
| 437 | this.download(response.message); | 438 | this.download(response.message); |
| 438 | }) | 439 | }) |
| 440 | + }, | ||
| 441 | + | ||
| 442 | + /** 导出按钮操作 */ | ||
| 443 | + handleInfoExport() { | ||
| 444 | + const queryParams = this.queryParams; | ||
| 445 | + | ||
| 446 | + this.$confirm('是否确认导出所有车辆激活数据项?', "警告", { | ||
| 447 | + confirmButtonText: "确定", | ||
| 448 | + cancelButtonText: "取消", | ||
| 449 | + type: "warning" | ||
| 450 | + }).then(function() { | ||
| 451 | + return exportTruckInfoActivate(queryParams); | ||
| 452 | + }).then(response => { | ||
| 453 | + this.download(response.message); | ||
| 454 | + }) | ||
| 439 | } | 455 | } |
| 440 | } | 456 | } |
| 441 | }; | 457 | }; |
trash-ui/src/layout/index.vue
| 1 | <template> | 1 | <template> |
| 2 | - <app-main /> | 2 | + <div :class="classObj" class="app-wrapper"> |
| 3 | + <sidebar class="sidebar-container"/> | ||
| 4 | + <div :class="{hasTagsView:needTagsView}" class="main-container"> | ||
| 5 | + <tags-view v-if="needTagsView"/> | ||
| 6 | + <app-main/> | ||
| 7 | + | ||
| 8 | + </div> | ||
| 9 | + </div> | ||
| 3 | </template> | 10 | </template> |
| 4 | 11 | ||
| 5 | <script> | 12 | <script> |
| 6 | import RightPanel from '@/components/RightPanel' | 13 | import RightPanel from '@/components/RightPanel' |
| 7 | -import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components' | 14 | +import {AppMain, Navbar, Settings, Sidebar, TagsView} from './components' |
| 8 | import ResizeMixin from './mixin/ResizeHandler' | 15 | import ResizeMixin from './mixin/ResizeHandler' |
| 9 | -import { mapState } from 'vuex' | 16 | +import {mapState} from 'vuex' |
| 10 | 17 | ||
| 11 | export default { | 18 | export default { |
| 12 | name: 'Layout', | 19 | name: 'Layout', |
| @@ -38,52 +45,63 @@ export default { | @@ -38,52 +45,63 @@ export default { | ||
| 38 | }, | 45 | }, |
| 39 | methods: { | 46 | methods: { |
| 40 | handleClickOutside() { | 47 | handleClickOutside() { |
| 41 | - this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) | 48 | + this.$store.dispatch('app/closeSideBar', {withoutAnimation: false}) |
| 42 | } | 49 | } |
| 43 | } | 50 | } |
| 44 | } | 51 | } |
| 45 | </script> | 52 | </script> |
| 46 | 53 | ||
| 47 | <style lang="scss" scoped> | 54 | <style lang="scss" scoped> |
| 48 | - @import "~@/assets/styles/mixin.scss"; | ||
| 49 | - @import "~@/assets/styles/variables.scss"; | ||
| 50 | - | ||
| 51 | - .app-wrapper { | ||
| 52 | - @include clearfix; | ||
| 53 | - position: relative; | ||
| 54 | - height: 100%; | ||
| 55 | - width: 100%; | ||
| 56 | - | ||
| 57 | - &.mobile.openSidebar { | ||
| 58 | - position: fixed; | ||
| 59 | - top: 0; | ||
| 60 | - } | ||
| 61 | - } | 55 | +@import "~@/assets/styles/mixin.scss"; |
| 56 | +@import "~@/assets/styles/variables.scss"; | ||
| 62 | 57 | ||
| 63 | - .drawer-bg { | ||
| 64 | - background: #000; | ||
| 65 | - opacity: 0.3; | ||
| 66 | - width: 100%; | ||
| 67 | - top: 0; | ||
| 68 | - height: 100%; | ||
| 69 | - position: absolute; | ||
| 70 | - z-index: 999; | ||
| 71 | - } | 58 | +.app-wrapper { |
| 59 | + @include clearfix; | ||
| 60 | + position: relative; | ||
| 61 | + height: 100%; | ||
| 62 | + width: 100%; | ||
| 72 | 63 | ||
| 73 | - .fixed-header { | 64 | + &.mobile.openSidebar { |
| 74 | position: fixed; | 65 | position: fixed; |
| 75 | top: 0; | 66 | top: 0; |
| 76 | - right: 0; | ||
| 77 | - z-index: 9; | ||
| 78 | - width: calc(100% - #{$sideBarWidth}); | ||
| 79 | - transition: width 0.28s; | ||
| 80 | } | 67 | } |
| 68 | +} | ||
| 81 | 69 | ||
| 82 | - .hideSidebar .fixed-header { | ||
| 83 | - width: calc(100% - 54px) | ||
| 84 | - } | 70 | +.drawer-bg { |
| 71 | + background: #000; | ||
| 72 | + opacity: 0.3; | ||
| 73 | + width: 100%; | ||
| 74 | + top: 0; | ||
| 75 | + height: 100%; | ||
| 76 | + position: absolute; | ||
| 77 | + z-index: 999; | ||
| 78 | +} | ||
| 85 | 79 | ||
| 86 | - .mobile .fixed-header { | ||
| 87 | - width: 100%; | ||
| 88 | - } | 80 | +.fixed-header { |
| 81 | + position: fixed; | ||
| 82 | + top: 0; | ||
| 83 | + right: 0; | ||
| 84 | + z-index: 9; | ||
| 85 | + width: calc(100% - #{$sideBarWidth}); | ||
| 86 | + transition: width 0.28s; | ||
| 87 | +} | ||
| 88 | + | ||
| 89 | +.hideSidebar .fixed-header { | ||
| 90 | + width: calc(100% - 54px) | ||
| 91 | +} | ||
| 92 | + | ||
| 93 | +.mobile .fixed-header { | ||
| 94 | + width: 100%; | ||
| 95 | +} | ||
| 96 | + | ||
| 97 | +.preview figure { | ||
| 98 | + float: left; | ||
| 99 | + width: 30%; | ||
| 100 | + height:calc(30vw - 0px); | ||
| 101 | + margin: 1.5%; | ||
| 102 | +} | ||
| 103 | + | ||
| 104 | +.preview figure img { | ||
| 105 | + width: 400px; | ||
| 106 | +} | ||
| 89 | </style> | 107 | </style> |
trash-ui/src/layout/index44.vue renamed to trash-ui/src/layout/index5.vue
| 1 | <template> | 1 | <template> |
| 2 | - <div :class="classObj" class="app-wrapper"> | ||
| 3 | - <sidebar class="sidebar-container"/> | ||
| 4 | - <div :class="{hasTagsView:needTagsView}" class="main-container"> | ||
| 5 | - <tags-view v-if="needTagsView"/> | ||
| 6 | - <app-main/> | ||
| 7 | - | ||
| 8 | - </div> | ||
| 9 | - </div> | 2 | + <app-main /> |
| 10 | </template> | 3 | </template> |
| 11 | 4 | ||
| 12 | <script> | 5 | <script> |
| 13 | import RightPanel from '@/components/RightPanel' | 6 | import RightPanel from '@/components/RightPanel' |
| 14 | -import {AppMain, Navbar, Settings, Sidebar, TagsView} from './components' | 7 | +import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components' |
| 15 | import ResizeMixin from './mixin/ResizeHandler' | 8 | import ResizeMixin from './mixin/ResizeHandler' |
| 16 | -import {mapState} from 'vuex' | 9 | +import { mapState } from 'vuex' |
| 17 | 10 | ||
| 18 | export default { | 11 | export default { |
| 19 | name: 'Layout', | 12 | name: 'Layout', |
| @@ -45,63 +38,52 @@ export default { | @@ -45,63 +38,52 @@ export default { | ||
| 45 | }, | 38 | }, |
| 46 | methods: { | 39 | methods: { |
| 47 | handleClickOutside() { | 40 | handleClickOutside() { |
| 48 | - this.$store.dispatch('app/closeSideBar', {withoutAnimation: false}) | 41 | + this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) |
| 49 | } | 42 | } |
| 50 | } | 43 | } |
| 51 | } | 44 | } |
| 52 | </script> | 45 | </script> |
| 53 | 46 | ||
| 54 | <style lang="scss" scoped> | 47 | <style lang="scss" scoped> |
| 55 | -@import "~@/assets/styles/mixin.scss"; | ||
| 56 | -@import "~@/assets/styles/variables.scss"; | 48 | + @import "~@/assets/styles/mixin.scss"; |
| 49 | + @import "~@/assets/styles/variables.scss"; | ||
| 57 | 50 | ||
| 58 | -.app-wrapper { | ||
| 59 | - @include clearfix; | ||
| 60 | - position: relative; | ||
| 61 | - height: 100%; | ||
| 62 | - width: 100%; | 51 | + .app-wrapper { |
| 52 | + @include clearfix; | ||
| 53 | + position: relative; | ||
| 54 | + height: 100%; | ||
| 55 | + width: 100%; | ||
| 63 | 56 | ||
| 64 | - &.mobile.openSidebar { | ||
| 65 | - position: fixed; | ||
| 66 | - top: 0; | 57 | + &.mobile.openSidebar { |
| 58 | + position: fixed; | ||
| 59 | + top: 0; | ||
| 60 | + } | ||
| 67 | } | 61 | } |
| 68 | -} | ||
| 69 | 62 | ||
| 70 | -.drawer-bg { | ||
| 71 | - background: #000; | ||
| 72 | - opacity: 0.3; | ||
| 73 | - width: 100%; | ||
| 74 | - top: 0; | ||
| 75 | - height: 100%; | ||
| 76 | - position: absolute; | ||
| 77 | - z-index: 999; | ||
| 78 | -} | ||
| 79 | - | ||
| 80 | -.fixed-header { | ||
| 81 | - position: fixed; | ||
| 82 | - top: 0; | ||
| 83 | - right: 0; | ||
| 84 | - z-index: 9; | ||
| 85 | - width: calc(100% - #{$sideBarWidth}); | ||
| 86 | - transition: width 0.28s; | ||
| 87 | -} | ||
| 88 | - | ||
| 89 | -.hideSidebar .fixed-header { | ||
| 90 | - width: calc(100% - 54px) | ||
| 91 | -} | 63 | + .drawer-bg { |
| 64 | + background: #000; | ||
| 65 | + opacity: 0.3; | ||
| 66 | + width: 100%; | ||
| 67 | + top: 0; | ||
| 68 | + height: 100%; | ||
| 69 | + position: absolute; | ||
| 70 | + z-index: 999; | ||
| 71 | + } | ||
| 92 | 72 | ||
| 93 | -.mobile .fixed-header { | ||
| 94 | - width: 100%; | ||
| 95 | -} | 73 | + .fixed-header { |
| 74 | + position: fixed; | ||
| 75 | + top: 0; | ||
| 76 | + right: 0; | ||
| 77 | + z-index: 9; | ||
| 78 | + width: calc(100% - #{$sideBarWidth}); | ||
| 79 | + transition: width 0.28s; | ||
| 80 | + } | ||
| 96 | 81 | ||
| 97 | -.preview figure { | ||
| 98 | - float: left; | ||
| 99 | - width: 30%; | ||
| 100 | - height:calc(30vw - 0px); | ||
| 101 | - margin: 1.5%; | ||
| 102 | -} | 82 | + .hideSidebar .fixed-header { |
| 83 | + width: calc(100% - 54px) | ||
| 84 | + } | ||
| 103 | 85 | ||
| 104 | -.preview figure img { | ||
| 105 | - width: 400px; | ||
| 106 | -} | 86 | + .mobile .fixed-header { |
| 87 | + width: 100%; | ||
| 88 | + } | ||
| 107 | </style> | 89 | </style> |
trash-ui/src/main.js
| @@ -37,8 +37,8 @@ Vue.prototype.handleTree = handleTree | @@ -37,8 +37,8 @@ Vue.prototype.handleTree = handleTree | ||
| 37 | Vue.prototype.parseStatus = parseStatus | 37 | Vue.prototype.parseStatus = parseStatus |
| 38 | Vue.prototype.checkPer = checkPermi | 38 | Vue.prototype.checkPer = checkPermi |
| 39 | 39 | ||
| 40 | -// Vue.prototype.remoteFrame = "http://183.66.242.6:14601" | ||
| 41 | -Vue.prototype.remoteFrame = "http://175.6.47.84:8008" | 40 | +Vue.prototype.remoteFrame = "http://183.66.242.6:14601" |
| 41 | +// Vue.prototype.remoteFrame = "http://175.6.47.84:8008" | ||
| 42 | 42 | ||
| 43 | Vue.prototype.msgSuccess = function (msg) { | 43 | Vue.prototype.msgSuccess = function (msg) { |
| 44 | this.$message({ showClose: true, message: msg, type: "success" }); | 44 | this.$message({ showClose: true, message: msg, type: "success" }); |
trash-ui/src/views/activiti/task/companyInfo.vue
| 1 | -<template> | ||
| 2 | - <iframe width="100%" height="600px" frameborder="no" id="iFrame" :src=src></iframe> | 1 | +<template > |
| 2 | + <iframe width="1400px" height="2000px" frameborder="no" id="iFrame" :src="src"></iframe> | ||
| 3 | </template> | 3 | </template> |
| 4 | 4 | ||
| 5 | <script> | 5 | <script> |
| @@ -102,5 +102,9 @@ import store from "@/store"; | @@ -102,5 +102,9 @@ import store from "@/store"; | ||
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | + iframe{ | ||
| 106 | + overflow: hidden; | ||
| 107 | + } | ||
| 108 | + | ||
| 105 | 109 | ||
| 106 | </style> | 110 | </style> |
trash-ui/src/views/activiti/task/index.vue
| @@ -320,7 +320,7 @@ | @@ -320,7 +320,7 @@ | ||
| 320 | </el-dialog> | 320 | </el-dialog> |
| 321 | 321 | ||
| 322 | 322 | ||
| 323 | - <el-dialog :title="title" :visible.sync="construct" width="1200px" append-to-body> | 323 | + <el-dialog :title="title" :visible.sync="construct" width="1500px" append-to-body> |
| 324 | <companyInfo :businessKey="businessKey" :businessType="2" :signData="signData" v-if="construct"/> | 324 | <companyInfo :businessKey="businessKey" :businessType="2" :signData="signData" v-if="construct"/> |
| 325 | <div v-for="item in this.form.formData"> | 325 | <div v-for="item in this.form.formData"> |
| 326 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" | 326 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" |
| @@ -339,7 +339,7 @@ | @@ -339,7 +339,7 @@ | ||
| 339 | </div> | 339 | </div> |
| 340 | </el-dialog> | 340 | </el-dialog> |
| 341 | 341 | ||
| 342 | - <el-dialog :title="title" :visible.sync="earthsites" width="1200px" append-to-body> | 342 | + <el-dialog :title="title" :visible.sync="earthsites" width="1500px" append-to-body> |
| 343 | <companyInfo :businessKey="businessKey" :businessType="3" v-if="earthsites"/> | 343 | <companyInfo :businessKey="businessKey" :businessType="3" v-if="earthsites"/> |
| 344 | <div v-for="item in this.form.formData"> | 344 | <div v-for="item in this.form.formData"> |
| 345 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" | 345 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" |
| @@ -359,7 +359,7 @@ | @@ -359,7 +359,7 @@ | ||
| 359 | </div> | 359 | </div> |
| 360 | </el-dialog> | 360 | </el-dialog> |
| 361 | 361 | ||
| 362 | - <el-dialog :title="title" :visible.sync="contract" width="1200px" append-to-body> | 362 | + <el-dialog :title="title" :visible.sync="contract" width="1500px" append-to-body> |
| 363 | <companyInfo :businessKey="businessKey" :businessType="4" v-if="contract"/> | 363 | <companyInfo :businessKey="businessKey" :businessType="4" v-if="contract"/> |
| 364 | 364 | ||
| 365 | <div v-for="item in this.form.formData"> | 365 | <div v-for="item in this.form.formData"> |
| @@ -562,7 +562,7 @@ | @@ -562,7 +562,7 @@ | ||
| 562 | </div> | 562 | </div> |
| 563 | </el-dialog> | 563 | </el-dialog> |
| 564 | 564 | ||
| 565 | - <el-dialog :title="title" :visible.sync="company" width="1200px" append-to-body :close-on-click-modal="false"> | 565 | + <el-dialog :title="title" :visible.sync="company" width="1500px" append-to-body :close-on-click-modal="false"> |
| 566 | <companyInfo :businessKey="businessKey" :businessType="0" v-if="company"/> | 566 | <companyInfo :businessKey="businessKey" :businessType="0" v-if="company"/> |
| 567 | <div v-for="item in this.form.formData"> | 567 | <div v-for="item in this.form.formData"> |
| 568 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" | 568 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" |
| @@ -581,7 +581,7 @@ | @@ -581,7 +581,7 @@ | ||
| 581 | </div> | 581 | </div> |
| 582 | </el-dialog> | 582 | </el-dialog> |
| 583 | 583 | ||
| 584 | - <el-dialog :title="title" :visible.sync="vehicle" width="1200px" append-to-body :close-on-click-modal="false"> | 584 | + <el-dialog :title="title" :visible.sync="vehicle" width="1500px" append-to-body :close-on-click-modal="false"> |
| 585 | <companyInfo :businessKey="businessKey" :businessType="1" v-if="vehicle"/> | 585 | <companyInfo :businessKey="businessKey" :businessType="1" v-if="vehicle"/> |
| 586 | <div v-for="item in this.form.formData"> | 586 | <div v-for="item in this.form.formData"> |
| 587 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" | 587 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" |
| @@ -600,7 +600,7 @@ | @@ -600,7 +600,7 @@ | ||
| 600 | </div> | 600 | </div> |
| 601 | </el-dialog> | 601 | </el-dialog> |
| 602 | 602 | ||
| 603 | - <el-dialog :title="title" :visible.sync="driver" width="1200px" append-to-body :close-on-click-modal="false"> | 603 | + <el-dialog :title="title" :visible.sync="driver" width="1500px" append-to-body :close-on-click-modal="false"> |
| 604 | <companyInfo :businessKey="businessKey" :businessType="5" v-if="driver"/> | 604 | <companyInfo :businessKey="businessKey" :businessType="5" v-if="driver"/> |
| 605 | <div v-for="item in this.form.formData"> | 605 | <div v-for="item in this.form.formData"> |
| 606 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" | 606 | <el-input v-if="item.controlType=='textarea'" :label="item.controlLable" v-model="item.controlValue" |
trash-ui/src/views/activiti/task/sitePaper.vue
| @@ -53,36 +53,26 @@ | @@ -53,36 +53,26 @@ | ||
| 53 | <el-col :span="18" class="bd_padding">{{infoData.effectiveFrom}} 至 {{infoData.effectiveEnd}}</el-col> | 53 | <el-col :span="18" class="bd_padding">{{infoData.effectiveFrom}} 至 {{infoData.effectiveEnd}}</el-col> |
| 54 | </el-row> | 54 | </el-row> |
| 55 | 55 | ||
| 56 | - <!-- <el-row class="bd_bottom"> | ||
| 57 | - <el-col :span="6" >申报资料</el-col> | 56 | + <el-row class="bd_bottom"> |
| 57 | + <el-col :span="6" class="bd_right bd_padding">视频监控设施</el-col> | ||
| 58 | + <el-col :span="18" class="bd_padding">{{infoData.monitorBallName}}</el-col> | ||
| 59 | + </el-row> | ||
| 60 | + | ||
| 61 | + <el-row class="bd_bottom"> | ||
| 62 | + <el-col :span="6" class="bd_padding">洗车作业平台及设施设备情况</el-col> | ||
| 58 | <el-col :span="18" class="bd_left"> | 63 | <el-col :span="18" class="bd_left"> |
| 59 | <el-row class="bd_bottom"> | 64 | <el-row class="bd_bottom"> |
| 60 | - <el-col :span="6" class="bd_right bd_padding">《长沙市城市营理和综合执法局政务服务事项办理申清表》</el-col> | ||
| 61 | - <el-col :span="6" class="bd_padding">√ | ||
| 62 | - </el-col> | ||
| 63 | - <el-col :span="6" class="bd_left bd_right" style="height: 80px;">用地证明材料</el-col> | ||
| 64 | - <el-col :span="6" class="bd_padding">√ | ||
| 65 | - </el-col> | ||
| 66 | - </el-row> | ||
| 67 | - <el-row class="bd_bottom"> | ||
| 68 | - <el-col :span="6" class="bd_right bd_padding">建筑垃圾处置方案</el-col> | ||
| 69 | - <el-col :span="6" class="bd_right bd_padding">√ | ||
| 70 | - </el-col> | ||
| 71 | - <el-col :span="6" class="bd_right bd_padding">建设工程施工合同</el-col> | ||
| 72 | - <el-col :span="6" class="bd_padding">√ | 65 | + <el-col :span="6" class="bd_right bd_padding">净车出场保洁设施</el-col> |
| 66 | + <el-col :span="18" class="bd_padding">{{infoData.washingPlatformName}} | ||
| 73 | </el-col> | 67 | </el-col> |
| 74 | </el-row> | 68 | </el-row> |
| 75 | <el-row > | 69 | <el-row > |
| 76 | - <el-col :span="6" class="bd_right bd_padding">消纳处置合同</el-col> | ||
| 77 | - <el-col :span="6" class="bd_right bd_padding">√ | ||
| 78 | - </el-col> | ||
| 79 | - <el-col :span="6" class="bd_right bd_padding">建设垃圾运输合同</el-col> | ||
| 80 | - <el-col :span="6" class="bd_padding">√ | ||
| 81 | - </el-col> | 70 | + <el-col :span="6" class="bd_right bd_padding" style="height: 80px;">照明设施</el-col> |
| 71 | + <el-col :span="18" class="bd_padding">{{infoData.lightingFacilitiesName}} | ||
| 72 | + </el-col> | ||
| 82 | </el-row> | 73 | </el-row> |
| 83 | - | ||
| 84 | </el-col> | 74 | </el-col> |
| 85 | - </el-row> --> | 75 | + </el-row> |
| 86 | <el-row class="bd_bottom"> | 76 | <el-row class="bd_bottom"> |
| 87 | <el-col :span="6" class="bd_right bd_padding">消纳场地</el-col> | 77 | <el-col :span="6" class="bd_right bd_padding">消纳场地</el-col> |
| 88 | <el-col :span="18" class="bd_padding">{{infoData.earthName}}</el-col> | 78 | <el-col :span="18" class="bd_padding">{{infoData.earthName}}</el-col> |
trash-ui/src/views/business/dayWorkReport/index.vue
| @@ -15,9 +15,15 @@ | @@ -15,9 +15,15 @@ | ||
| 15 | <el-button :class="{'el-button':true,'el-button--primary':this.queryParams.pageStatus==3}" size="mini" @click="getList(3);">处理场所报工记录</el-button> | 15 | <el-button :class="{'el-button':true,'el-button--primary':this.queryParams.pageStatus==3}" size="mini" @click="getList(3);">处理场所报工记录</el-button> |
| 16 | </el-col> | 16 | </el-col> |
| 17 | 17 | ||
| 18 | + <el-col :span="1.5"> | ||
| 19 | + <el-button :class="{'el-button':true, 'el-button--primary':this.queryParams.pageStatus==4}" size="mini" @click="getList(4);">工地开停工</el-button> | ||
| 20 | + </el-col> | ||
| 21 | + <el-col :span="1.5"> | ||
| 22 | + <el-button :class="{'el-button':true,'el-button--primary':this.queryParams.pageStatus==5}" size="mini" @click="getList(5);">处理场所开停工</el-button> | ||
| 23 | + </el-col> | ||
| 18 | </el-row> | 24 | </el-row> |
| 19 | 25 | ||
| 20 | - <el-form :model="queryParams" ref="queryForm" label-width="100px"> | 26 | + <el-form :model="queryParams" ref="queryForm" label-width="100px" v-if="queryParams.his < 4"> |
| 21 | <el-row v-if="this.queryParams.his < 2"> | 27 | <el-row v-if="this.queryParams.his < 2"> |
| 22 | <el-col :span="6"> | 28 | <el-col :span="6"> |
| 23 | <el-form-item label="工地名称" > | 29 | <el-form-item label="工地名称" > |
| @@ -43,7 +49,7 @@ | @@ -43,7 +49,7 @@ | ||
| 43 | <el-option v-for="item in areas" :label="item.name" :value="item.code" /> | 49 | <el-option v-for="item in areas" :label="item.name" :value="item.code" /> |
| 44 | </el-select> | 50 | </el-select> |
| 45 | </el-form-item> | 51 | </el-form-item> |
| 46 | - </el-col> | 52 | + </el-col> |
| 47 | <el-col :span="6"> | 53 | <el-col :span="6"> |
| 48 | <el-form-item label="处理场所区属" > | 54 | <el-form-item label="处理场所区属" > |
| 49 | <el-select v-model="queryParams.subReason" placeholder="工地所属区域 " size="small"> | 55 | <el-select v-model="queryParams.subReason" placeholder="工地所属区域 " size="small"> |
| @@ -73,16 +79,16 @@ | @@ -73,16 +79,16 @@ | ||
| 73 | </el-row> | 79 | </el-row> |
| 74 | <el-row> | 80 | <el-row> |
| 75 | <el-col :span="6"> | 81 | <el-col :span="6"> |
| 76 | - <el-form-item label="开始时间" v-if="this.queryParams.his > 0"> | ||
| 77 | - <el-date-picker | ||
| 78 | - v-model="queryParams.timeRange" | ||
| 79 | - value-format="yyyy-MM-dd HH:mm:ss" | ||
| 80 | - type="datetimerange" | ||
| 81 | - range-separator="至" | ||
| 82 | - start-placeholder="开始日期" | ||
| 83 | - end-placeholder="结束日期"> | ||
| 84 | - </el-date-picker> | ||
| 85 | - </el-form-item> | 82 | + <el-form-item label="开始时间" v-if="this.queryParams.his > 0"> |
| 83 | + <el-date-picker | ||
| 84 | + v-model="queryParams.timeRange" | ||
| 85 | + value-format="yyyy-MM-dd HH:mm:ss" | ||
| 86 | + type="datetimerange" | ||
| 87 | + range-separator="至" | ||
| 88 | + start-placeholder="开始日期" | ||
| 89 | + end-placeholder="结束日期"> | ||
| 90 | + </el-date-picker> | ||
| 91 | + </el-form-item> | ||
| 86 | </el-col> | 92 | </el-col> |
| 87 | </el-row> | 93 | </el-row> |
| 88 | <el-form-item> | 94 | <el-form-item> |
| @@ -93,7 +99,7 @@ | @@ -93,7 +99,7 @@ | ||
| 93 | 99 | ||
| 94 | <p v-if="queryParams.his < 2"> {{dayWorkCount}}</p> | 100 | <p v-if="queryParams.his < 2"> {{dayWorkCount}}</p> |
| 95 | 101 | ||
| 96 | - <el-row :gutter="10" class="mb8"> | 102 | + <el-row :gutter="10" class="mb8" v-if="queryParams.his < 4"> |
| 97 | <el-col :span="1.5"> | 103 | <el-col :span="1.5"> |
| 98 | <el-button size="mini" @click="handleExport" v-hasPermi="['business:threestep:export']">导出</el-button> | 104 | <el-button size="mini" @click="handleExport" v-hasPermi="['business:threestep:export']">导出</el-button> |
| 99 | </el-col> | 105 | </el-col> |
| @@ -130,7 +136,7 @@ | @@ -130,7 +136,7 @@ | ||
| 130 | <el-table-column label="备注" align="center" prop="descript"/> | 136 | <el-table-column label="备注" align="center" prop="descript"/> |
| 131 | </el-table> | 137 | </el-table> |
| 132 | 138 | ||
| 133 | - <el-table :data="threestepList" v-show="queryParams.his > 1"> | 139 | + <el-table :data="threestepList" v-show="queryParams.his > 1 && queryParams.his < 4"> |
| 134 | <el-table-column label="序号" align="center" type='index'/> | 140 | <el-table-column label="序号" align="center" type='index'/> |
| 135 | 141 | ||
| 136 | <el-table-column label="项目类型" align="center" prop="type"> | 142 | <el-table-column label="项目类型" align="center" prop="type"> |
| @@ -164,10 +170,16 @@ | @@ -164,10 +170,16 @@ | ||
| 164 | <threestepInfo :businessKey="businessKey" v-if="info2"/> | 170 | <threestepInfo :businessKey="businessKey" v-if="info2"/> |
| 165 | </el-dialog> | 171 | </el-dialog> |
| 166 | 172 | ||
| 167 | - <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" | 173 | + <pagination v-if="this.queryParams.his < 4" v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
| 168 | @pagination="getList(queryParams.his)" /> | 174 | @pagination="getList(queryParams.his)" /> |
| 175 | + | ||
| 176 | + | ||
| 177 | + <threeHistory v-if="queryParams.his == 4"/> | ||
| 178 | + <earthInfo v-if="queryParams.his == 5"/> | ||
| 179 | + | ||
| 169 | </div> | 180 | </div> |
| 170 | 181 | ||
| 182 | + | ||
| 171 | </template> | 183 | </template> |
| 172 | 184 | ||
| 173 | <script src="../../../api/dayWorkReport.js" /> | 185 | <script src="../../../api/dayWorkReport.js" /> |
trash-ui/src/views/business/threeHistory/earthInfo.vue
0 → 100644
trash-ui/src/views/business/threeHistory/index.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div class="app-container"> | ||
| 3 | + <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> | ||
| 4 | + <el-form-item label="名称" prop="name"> | ||
| 5 | + <el-input | ||
| 6 | + v-model="queryParams.name" | ||
| 7 | + placeholder="请输入名称" | ||
| 8 | + clearable | ||
| 9 | + size="small" | ||
| 10 | + @keyup.enter.native="handleQuery" | ||
| 11 | + /> | ||
| 12 | + </el-form-item> | ||
| 13 | + <el-form-item label="所属区域" prop="place"> | ||
| 14 | + <el-select v-model="queryParams.place" placeholder="请选择所属区域 " size="small"> | ||
| 15 | + <el-option v-for="item in areas" :label="item.name" :value="item.name" /> | ||
| 16 | + </el-select> | ||
| 17 | + </el-form-item> | ||
| 18 | + <el-form-item> | ||
| 19 | + <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | ||
| 20 | + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | ||
| 21 | + </el-form-item> | ||
| 22 | + </el-form> | ||
| 23 | + | ||
| 24 | + <el-row :gutter="10" class="mb8"> | ||
| 25 | + <el-col :span="1.5"> | ||
| 26 | + <el-button | ||
| 27 | + type="primary" | ||
| 28 | + size="mini" | ||
| 29 | + @click="handleAdd(3)" | ||
| 30 | + v-hasPermi="['threehistory:threeHistory:add']" | ||
| 31 | + >申请开工</el-button> | ||
| 32 | + </el-col> | ||
| 33 | + <el-col :span="1.5"> | ||
| 34 | + <el-button | ||
| 35 | + type="primary" | ||
| 36 | + size="mini" | ||
| 37 | + @click="handleAdd(1)" | ||
| 38 | + v-hasPermi="['threehistory:threeHistory:add']" | ||
| 39 | + >申请停工</el-button> | ||
| 40 | + </el-col> | ||
| 41 | + <el-col :span="1.5"> | ||
| 42 | + <el-button | ||
| 43 | + type="warning" | ||
| 44 | + size="mini" | ||
| 45 | + @click="handleExport" | ||
| 46 | + v-hasPermi="['threehistory:threeHistory:export']" | ||
| 47 | + >导出</el-button> | ||
| 48 | + </el-col> | ||
| 49 | + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | ||
| 50 | + </el-row> | ||
| 51 | + | ||
| 52 | + <el-table v-loading="loading" :data="threeHistoryList" @selection-change="handleSelectionChange"> | ||
| 53 | + <el-table-column label="序号" align="center" type="index" /> | ||
| 54 | + <el-table-column :label="pageLabel" align="center" prop="name" /> | ||
| 55 | + <el-table-column :label="pageType" align="center" prop="projectType" /> | ||
| 56 | + <el-table-column label="所属区域" align="center" prop="place" /> | ||
| 57 | + <el-table-column label="操作时间" align="center" prop="createTime" /> | ||
| 58 | + <el-table-column label="操作人" align="center" prop="createBy" /> | ||
| 59 | + <el-table-column label="状态" align="center" prop="status"> | ||
| 60 | + <template slot-scope="scope"> | ||
| 61 | + <span>{{ scope.row.status == 3 ? "申请停工" : "申请开工"}}</span> | ||
| 62 | + </template> | ||
| 63 | + </el-table-column> | ||
| 64 | + <el-table-column label="开停工原因" align="center" prop="reason" /> | ||
| 65 | + </el-table> | ||
| 66 | + | ||
| 67 | + <pagination | ||
| 68 | + v-show="total>0" | ||
| 69 | + :total="total" | ||
| 70 | + :page.sync="queryParams.pageNum" | ||
| 71 | + :limit.sync="queryParams.pageSize" | ||
| 72 | + @pagination="getList" | ||
| 73 | + /> | ||
| 74 | + | ||
| 75 | + <!-- 添加或修改开停工对话框 --> | ||
| 76 | + <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> | ||
| 77 | + <el-form ref="form" :model="form" :rules="rules" label-width="150px"> | ||
| 78 | + <el-form-item :label="pageLabel" prop="objectId"> | ||
| 79 | + <el-select v-model="form.objectId" filterable reserve-keyword @change="getObjId" :filter-method="getObjId"> | ||
| 80 | + <el-option v-for="item in threestepList" :label="item.name" | ||
| 81 | + :value="item.objectId"> | ||
| 82 | + </el-option> | ||
| 83 | + </el-select> | ||
| 84 | + </el-form-item> | ||
| 85 | + <el-form-item label="执法部门负责人" prop="person"> | ||
| 86 | + <el-input v-model="form.person" placeholder="请输入执法部门负责人" :maxlength="40" show-word-limit /> | ||
| 87 | + </el-form-item> | ||
| 88 | + <el-form-item label="联系方式" prop="personNumber"> | ||
| 89 | + <el-input v-model="form.personNumber" placeholder="请输入联系方式" :maxlength="11" show-word-limit/> | ||
| 90 | + </el-form-item> | ||
| 91 | + <el-form-item label="管理部门负责人" prop="person1"> | ||
| 92 | + <el-input v-model="form.person1" placeholder="请输入管理部门负责人" :maxlength="40" show-word-limit /> | ||
| 93 | + </el-form-item> | ||
| 94 | + <el-form-item label="联系方式" prop="person1Number"> | ||
| 95 | + <el-input v-model="form.person1Number" placeholder="请输入联系方式" :maxlength="11" show-word-limit/> | ||
| 96 | + </el-form-item> | ||
| 97 | + <el-form-item label="开停工原因" prop="reason"> | ||
| 98 | + <el-input v-model="form.reason" placeholder="请输入开停工原因" :maxlength="200" show-word-limit type="textarea" rows="3"/> | ||
| 99 | + </el-form-item> | ||
| 100 | + </el-form> | ||
| 101 | + <div slot="footer" class="dialog-footer"> | ||
| 102 | + <el-button type="primary" @click="submitForm">确 定</el-button> | ||
| 103 | + <el-button @click="cancel">取 消</el-button> | ||
| 104 | + </div> | ||
| 105 | + </el-dialog> | ||
| 106 | + </div> | ||
| 107 | +</template> | ||
| 108 | + | ||
| 109 | +<script> | ||
| 110 | + | ||
| 111 | +import { listThreeHistory, getThreeHistory, | ||
| 112 | +delThreeHistory, addThreeHistory, | ||
| 113 | +updateThreeHistory, exportThreeHistory } from "@/api/business/threeHistory"; | ||
| 114 | + | ||
| 115 | +import { | ||
| 116 | + listThreestep, | ||
| 117 | + getThreestep, | ||
| 118 | + delThreestep, | ||
| 119 | + addThreestep, | ||
| 120 | + updateThreestep, | ||
| 121 | + exportThreestep, | ||
| 122 | + getNames | ||
| 123 | +} from "@/api/business/threestep"; | ||
| 124 | + | ||
| 125 | +import { | ||
| 126 | + getArea, | ||
| 127 | + constructionLicenseById, | ||
| 128 | + earthsitesById | ||
| 129 | +} from "@/api/dict"; | ||
| 130 | + | ||
| 131 | +export default { | ||
| 132 | + name: "ThreeHistory", | ||
| 133 | + props: { | ||
| 134 | + type: { | ||
| 135 | + type: Number | ||
| 136 | + }, | ||
| 137 | + }, | ||
| 138 | + data() { | ||
| 139 | + return { | ||
| 140 | + // 遮罩层 | ||
| 141 | + loading: true, | ||
| 142 | + // 选中数组 | ||
| 143 | + ids: [], | ||
| 144 | + // 非单个禁用 | ||
| 145 | + single: true, | ||
| 146 | + // 非多个禁用 | ||
| 147 | + multiple: true, | ||
| 148 | + // 显示搜索条件 | ||
| 149 | + showSearch: true, | ||
| 150 | + // 总条数 | ||
| 151 | + total: 0, | ||
| 152 | + // 开停工表格数据 | ||
| 153 | + threeHistoryList: [], | ||
| 154 | + // 弹出层标题 | ||
| 155 | + title: "", | ||
| 156 | + // 是否显示弹出层 | ||
| 157 | + open: false, | ||
| 158 | + // 查询参数 | ||
| 159 | + queryParams: { | ||
| 160 | + pageNum: 1, | ||
| 161 | + pageSize: 10, | ||
| 162 | + type:0, | ||
| 163 | + name: null, | ||
| 164 | + place: null, | ||
| 165 | + }, | ||
| 166 | + workQuery : { | ||
| 167 | + pageNum: 1, | ||
| 168 | + pageSize: 500, | ||
| 169 | + }, | ||
| 170 | + pageLabel:"名称", | ||
| 171 | + pageType:"类型", | ||
| 172 | + threestepList:null, | ||
| 173 | + areas: [], | ||
| 174 | + // 表单参数 | ||
| 175 | + form: {}, | ||
| 176 | + // 表单校验 | ||
| 177 | + rules: { | ||
| 178 | + objectId: [{ | ||
| 179 | + required: true, | ||
| 180 | + message: '请填写完整', | ||
| 181 | + trigger: 'change' | ||
| 182 | + },], | ||
| 183 | + } | ||
| 184 | + }; | ||
| 185 | + }, | ||
| 186 | + created() { | ||
| 187 | + if(!this.type){ | ||
| 188 | + this.type = 0; | ||
| 189 | + } | ||
| 190 | + if(this.type == 0){ | ||
| 191 | + this.pageLabel = "工地名称"; | ||
| 192 | + this.pageType = "工地类型"; | ||
| 193 | + }else{ | ||
| 194 | + this.pageLabel = "处理场所名称"; | ||
| 195 | + this.pageType = "处理场所类型"; | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + this.workQuery.type = this.type; | ||
| 199 | + this.queryParams.type = this.type; | ||
| 200 | + getArea().then(res => { | ||
| 201 | + this.areas = res.result; | ||
| 202 | + }); | ||
| 203 | + | ||
| 204 | + this.getList(); | ||
| 205 | + }, | ||
| 206 | + methods: { | ||
| 207 | + getList() { | ||
| 208 | + this.loading = true; | ||
| 209 | + listThreeHistory(this.queryParams).then(response => { | ||
| 210 | + this.threeHistoryList = response.rows; | ||
| 211 | + this.total = response.total; | ||
| 212 | + this.loading = false; | ||
| 213 | + }); | ||
| 214 | + }, | ||
| 215 | + // 取消按钮 | ||
| 216 | + cancel() { | ||
| 217 | + this.open = false; | ||
| 218 | + this.reset(); | ||
| 219 | + }, | ||
| 220 | + // 表单重置 | ||
| 221 | + reset() { | ||
| 222 | + this.form = { | ||
| 223 | + id: null, | ||
| 224 | + name: null, | ||
| 225 | + type: null, | ||
| 226 | + place: null, | ||
| 227 | + reason: null, | ||
| 228 | + status: 0, | ||
| 229 | + objectId: null, | ||
| 230 | + createBy: null, | ||
| 231 | + createTime: null, | ||
| 232 | + person: null, | ||
| 233 | + personNumber: null, | ||
| 234 | + person1: null, | ||
| 235 | + person1Number: null | ||
| 236 | + }; | ||
| 237 | + | ||
| 238 | + | ||
| 239 | + this.resetForm("form"); | ||
| 240 | + }, | ||
| 241 | + /** 搜索按钮操作 */ | ||
| 242 | + handleQuery() { | ||
| 243 | + this.queryParams.pageNum = 1; | ||
| 244 | + this.getList(); | ||
| 245 | + }, | ||
| 246 | + /** 重置按钮操作 */ | ||
| 247 | + resetQuery() { | ||
| 248 | + this.resetForm("queryForm"); | ||
| 249 | + this.handleQuery(); | ||
| 250 | + }, | ||
| 251 | + // 多选框选中数据 | ||
| 252 | + handleSelectionChange(selection) { | ||
| 253 | + this.ids = selection.map(item => item.id) | ||
| 254 | + this.single = selection.length!==1 | ||
| 255 | + this.multiple = !selection.length | ||
| 256 | + }, | ||
| 257 | + /** 新增按钮操作 */ | ||
| 258 | + handleAdd(status) { | ||
| 259 | + this.reset(); | ||
| 260 | + | ||
| 261 | + let date = new Date(); | ||
| 262 | + let d = date.getDate(); | ||
| 263 | + if(date.getHours() < 8){ | ||
| 264 | + d -= 1; | ||
| 265 | + } | ||
| 266 | + let start = date.getFullYear() + "-" + (date.getMonth()+1) + "-" + d + " 08:00:00" | ||
| 267 | + let end = date.getFullYear() + "-" + (date.getMonth()+1) + "-" + (d+1) + " 08:00:00" | ||
| 268 | + | ||
| 269 | + this.workQuery.name = null; | ||
| 270 | + this.workQuery.workStartTime = start; | ||
| 271 | + this.workQuery.workEndTime = end; | ||
| 272 | + this.workQuery.status = status; | ||
| 273 | + | ||
| 274 | + this.form.workStartTime = start; | ||
| 275 | + this.form.workEndTime = end; | ||
| 276 | + this.form.type = this.type; | ||
| 277 | + | ||
| 278 | + | ||
| 279 | + if(status == 3){ | ||
| 280 | + this.form.status = 1; | ||
| 281 | + }else{ | ||
| 282 | + this.form.status = 3; | ||
| 283 | + } | ||
| 284 | + | ||
| 285 | + listThreestep(this.workQuery).then(response => { | ||
| 286 | + this.open = true; | ||
| 287 | + this.title = "添加开停工"; | ||
| 288 | + this.threestepList = response.rows; | ||
| 289 | + }); | ||
| 290 | + | ||
| 291 | + }, | ||
| 292 | + getObjId(value) { | ||
| 293 | + this.workQuery.name = value; | ||
| 294 | + | ||
| 295 | + listThreestep(this.workQuery).then(response => { | ||
| 296 | + | ||
| 297 | + this.open = true; | ||
| 298 | + this.title = "添加开停工"; | ||
| 299 | + this.threestepList = response.rows; | ||
| 300 | + }); | ||
| 301 | + }, | ||
| 302 | + | ||
| 303 | + /** 修改按钮操作 */ | ||
| 304 | + handleUpdate(row) { | ||
| 305 | + this.reset(); | ||
| 306 | + const id = row.id || this.ids | ||
| 307 | + getThreeHistory(id).then(response => { | ||
| 308 | + this.form = response.data; | ||
| 309 | + this.open = true; | ||
| 310 | + this.title = "修改开停工"; | ||
| 311 | + }); | ||
| 312 | + }, | ||
| 313 | + /** 提交按钮 */ | ||
| 314 | + submitForm() { | ||
| 315 | + this.$refs["form"].validate(valid => { | ||
| 316 | + if (valid) { | ||
| 317 | + if (this.form.id != null) { | ||
| 318 | + updateThreeHistory(this.form).then(response => { | ||
| 319 | + this.msgSuccess("修改成功"); | ||
| 320 | + this.open = false; | ||
| 321 | + this.getList(); | ||
| 322 | + }); | ||
| 323 | + } else { | ||
| 324 | + addThreeHistory(this.form).then(response => { | ||
| 325 | + this.msgSuccess("新增成功"); | ||
| 326 | + this.open = false; | ||
| 327 | + this.getList(); | ||
| 328 | + }); | ||
| 329 | + } | ||
| 330 | + } | ||
| 331 | + }); | ||
| 332 | + }, | ||
| 333 | + /** 删除按钮操作 */ | ||
| 334 | + handleDelete(row) { | ||
| 335 | + const ids = row.id || this.ids; | ||
| 336 | + this.$confirm('是否确认删除开停工编号为"' + ids + '"的数据项?', "警告", { | ||
| 337 | + confirmButtonText: "确定", | ||
| 338 | + cancelButtonText: "取消", | ||
| 339 | + type: "warning" | ||
| 340 | + }).then(function() { | ||
| 341 | + return delThreeHistory(ids); | ||
| 342 | + }).then(() => { | ||
| 343 | + this.getList(); | ||
| 344 | + this.msgSuccess("删除成功"); | ||
| 345 | + }) | ||
| 346 | + }, | ||
| 347 | + /** 导出按钮操作 */ | ||
| 348 | + handleExport() { | ||
| 349 | + const queryParams = this.queryParams; | ||
| 350 | + queryParams.pageNum = 1; | ||
| 351 | + queryParams.pageSize = 99999; | ||
| 352 | + this.$confirm('是否确认导出所有开停工数据项?', "警告", { | ||
| 353 | + confirmButtonText: "确定", | ||
| 354 | + cancelButtonText: "取消", | ||
| 355 | + type: "warning" | ||
| 356 | + }).then(function() { | ||
| 357 | + return exportThreeHistory(queryParams); | ||
| 358 | + }).then(response => { | ||
| 359 | + this.download(response.message); | ||
| 360 | + }) | ||
| 361 | + } | ||
| 362 | + } | ||
| 363 | +}; | ||
| 364 | +</script> |
trash-ui/src/views/business/truckActivate/index.vue
| @@ -66,6 +66,16 @@ | @@ -66,6 +66,16 @@ | ||
| 66 | v-hasPermi="['business:truckActivate:export']" | 66 | v-hasPermi="['business:truckActivate:export']" |
| 67 | >导出</el-button> | 67 | >导出</el-button> |
| 68 | </el-col> | 68 | </el-col> |
| 69 | + <el-col :span="1.5"> | ||
| 70 | + <el-button | ||
| 71 | + type="warning" | ||
| 72 | + size="mini" | ||
| 73 | + @click="handleInfoExport" | ||
| 74 | + v-hasPermi="['business:truckActivate:export']" | ||
| 75 | + >导出详情</el-button> | ||
| 76 | + </el-col> | ||
| 77 | + | ||
| 78 | + | ||
| 69 | </el-row> | 79 | </el-row> |
| 70 | 80 | ||
| 71 | <el-table v-loading="loading" :data="truckActivateList" @selection-change="handleSelectionChange"> | 81 | <el-table v-loading="loading" :data="truckActivateList" @selection-change="handleSelectionChange"> |
trash-ui/src/views/caseOffline/caseOffline/index.vue
| @@ -100,7 +100,7 @@ | @@ -100,7 +100,7 @@ | ||
| 100 | <el-select | 100 | <el-select |
| 101 | :popper-append-to-body="false" class="product-style" | 101 | :popper-append-to-body="false" class="product-style" |
| 102 | v-model="form.siteName" placeholder="请选择类型" | 102 | v-model="form.siteName" placeholder="请选择类型" |
| 103 | - allow-create filterable @change="getSite(item)"> | 103 | + allow-create filterable @change="getSite"> |
| 104 | <el-option v-for="item in data[form.siteType]" :label="item.name" :value="item.name" :title="item.name"/> | 104 | <el-option v-for="item in data[form.siteType]" :label="item.name" :value="item.name" :title="item.name"/> |
| 105 | </el-select> | 105 | </el-select> |
| 106 | </el-form-item> | 106 | </el-form-item> |
trash-ui/src/views/h5/caseOffline/index.vue
| @@ -95,7 +95,7 @@ | @@ -95,7 +95,7 @@ | ||
| 95 | </el-select> | 95 | </el-select> |
| 96 | </el-form-item> | 96 | </el-form-item> |
| 97 | <el-form-item :label="form.siteType==0?'工地名称':'处理场所名称'" prop="siteName"> | 97 | <el-form-item :label="form.siteType==0?'工地名称':'处理场所名称'" prop="siteName"> |
| 98 | - <el-select v-model="form.siteName" placeholder="请选择类型" allow-create filterable @change="getSite(item)"> | 98 | + <el-select v-model="form.siteName" placeholder="请选择类型" allow-create filterable @change="getSite"> |
| 99 | <el-option v-for="item in data[form.siteType]" :label="item.name" :value="item.name" /> | 99 | <el-option v-for="item in data[form.siteType]" :label="item.name" :value="item.name" /> |
| 100 | </el-select> | 100 | </el-select> |
| 101 | </el-form-item> | 101 | </el-form-item> |
trash-ui/src/views/h5/leaveApplication/index.vue
| @@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
| 26 | <el-option label="丧假" value="丧假"/> | 26 | <el-option label="丧假" value="丧假"/> |
| 27 | <el-option label="探亲假" value="探亲假"/> | 27 | <el-option label="探亲假" value="探亲假"/> |
| 28 | <el-option label="护理假" value="护理假"/> | 28 | <el-option label="护理假" value="护理假"/> |
| 29 | + <el-option label="公休假" value="公休假"/> | ||
| 29 | </el-select> | 30 | </el-select> |
| 30 | </el-form-item> | 31 | </el-form-item> |
| 31 | <el-form-item> | 32 | <el-form-item> |
| @@ -113,6 +114,7 @@ | @@ -113,6 +114,7 @@ | ||
| 113 | <el-option label="产假" value="产假"/> | 114 | <el-option label="产假" value="产假"/> |
| 114 | <el-option label="丧假" value="丧假"/> | 115 | <el-option label="丧假" value="丧假"/> |
| 115 | <el-option label="探亲假" value="探亲假"/> | 116 | <el-option label="探亲假" value="探亲假"/> |
| 117 | + <el-option label="公休假" value="公休假"/> | ||
| 116 | <el-option label="护理假" value="护理假"/> | 118 | <el-option label="护理假" value="护理假"/> |
| 117 | </el-select> | 119 | </el-select> |
| 118 | </el-form-item> | 120 | </el-form-item> |
trash-ui/src/views/h5/task/sitePaper.vue deleted
100644 → 0
| 1 | -<template> | ||
| 2 | - <div v-loading="loading"> | ||
| 3 | - | ||
| 4 | - <div id="printItem"> | ||
| 5 | - <h2 style="text-align:center;">长沙市建筑垃圾处置技术勘查意见表</h2> | ||
| 6 | - <el-row style="border: 1px solid black;" type="flex" align="middle" justify="center"> | ||
| 7 | - <el-col :span="2" class="bd_padding"> | ||
| 8 | - 勘查人员填写 | ||
| 9 | - </el-col> | ||
| 10 | - <el-col :span="22" class="bd_left"> | ||
| 11 | - <el-row class="bd_bottom" > | ||
| 12 | - <el-col :span="6" class="bd_right bd_padding">工地名称</el-col> | ||
| 13 | - <el-col :span="6" class="bd_right bd_padding">{{infoData.name}}</el-col> | ||
| 14 | - <el-col :span="6" class="bd_right bd_padding">施工地址</el-col> | ||
| 15 | - <el-col :span="6">{{infoData.address}}</el-col> | ||
| 16 | - </el-row> | ||
| 17 | - <el-row class="bd_bottom"> | ||
| 18 | - <el-col :span="6" class="bd_right bd_padding">所在区域</el-col> | ||
| 19 | - <el-col :span="6" class="bd_right bd_padding">{{infoData.areaCodeName}}</el-col> | ||
| 20 | - <el-col :span="6" class="bd_right bd_padding">作业区域</el-col> | ||
| 21 | - <el-col :span="6">{{infoData.workAreaCodeName}}</el-col> | ||
| 22 | - </el-row> | ||
| 23 | - | ||
| 24 | - <el-row class="bd_bottom"> | ||
| 25 | - <el-col :span="6" class="bd_right bd_padding">建设单位</el-col> | ||
| 26 | - <el-col :span="6" class="bd_right bd_padding">{{infoData.constructionCompany}}</el-col> | ||
| 27 | - <el-col :span="6" class="bd_right bd_padding">负责人</el-col> | ||
| 28 | - <el-col :span="6">{{infoData.constructionCompanyPerson}}</el-col> | ||
| 29 | - </el-row> | ||
| 30 | - <el-row class="bd_bottom"> | ||
| 31 | - <el-col :span="6" class="bd_right bd_padding">施工单位</el-col> | ||
| 32 | - <el-col :span="6" class="bd_right bd_padding">{{infoData.projectCompany}}</el-col> | ||
| 33 | - <el-col :span="6" class="bd_right bd_padding">现场责任人</el-col> | ||
| 34 | - <el-col :span="6">{{infoData.projectCompanyPerson}}</el-col> | ||
| 35 | - </el-row> | ||
| 36 | - <el-row class="bd_bottom"> | ||
| 37 | - <el-col :span="6" class="bd_right bd_padding">运输单位</el-col> | ||
| 38 | - <el-col :span="6" class="bd_right bd_padding">{{infoData.transportCompany}}</el-col> | ||
| 39 | - <el-col :span="6" class="bd_right bd_padding">负责人</el-col> | ||
| 40 | - <el-col :span="6">{{infoData.transportCompanyPerson}}</el-col> | ||
| 41 | - </el-row> | ||
| 42 | - | ||
| 43 | - <el-row class="bd_bottom"> | ||
| 44 | - <el-col :span="6" class="bd_right bd_padding">申报方量(方)</el-col> | ||
| 45 | - <el-col :span="18" class="bd_padding">{{infoData.reportingCapacity}}</el-col> | ||
| 46 | - </el-row> | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - <el-row class="bd_bottom"> | ||
| 50 | - <el-col :span="6" class="bd_right bd_padding">处置许可时间</el-col> | ||
| 51 | - <el-col :span="18" class="bd_padding">{{infoData.effectiveFrom}} 至 {{infoData.effectiveEnd}}</el-col> | ||
| 52 | - </el-row> | ||
| 53 | -<!-- <el-row class="bd_bottom"> | ||
| 54 | - <el-col :span="6" >申报资料</el-col> | ||
| 55 | - <el-col :span="18" class="bd_left"> | ||
| 56 | - <el-row class="bd_bottom"> | ||
| 57 | - <el-col :span="6" class="bd_right bd_padding">《长沙市城市营理和综合执法局政务服务事项办理申清表》</el-col> | ||
| 58 | - <el-col :span="6" class="bd_padding">√ | ||
| 59 | - </el-col> | ||
| 60 | - <el-col :span="6" class="bd_left bd_right" style="height: 80px;">用地证明材料</el-col> | ||
| 61 | - <el-col :span="6" class="bd_padding">√ | ||
| 62 | - </el-col> | ||
| 63 | - </el-row> | ||
| 64 | - <el-row class="bd_bottom"> | ||
| 65 | - <el-col :span="6" class="bd_right bd_padding">建筑垃圾处置方案</el-col> | ||
| 66 | - <el-col :span="6" class="bd_right bd_padding">√ | ||
| 67 | - </el-col> | ||
| 68 | - <el-col :span="6" class="bd_right bd_padding">建设工程施工合同</el-col> | ||
| 69 | - <el-col :span="6" class="bd_padding">√ | ||
| 70 | - </el-col> | ||
| 71 | - </el-row> | ||
| 72 | - <el-row > | ||
| 73 | - <el-col :span="6" class="bd_right bd_padding">消纳处置合同</el-col> | ||
| 74 | - <el-col :span="6" class="bd_right bd_padding">√ | ||
| 75 | - </el-col> | ||
| 76 | - <el-col :span="6" class="bd_right bd_padding">建设垃圾运输合同</el-col> | ||
| 77 | - <el-col :span="6" class="bd_padding">√ | ||
| 78 | - </el-col> | ||
| 79 | - </el-row> | ||
| 80 | - | ||
| 81 | - </el-col> | ||
| 82 | - </el-row> --> | ||
| 83 | - <el-row class="bd_bottom"> | ||
| 84 | - <el-col :span="6" class="bd_right bd_padding">消纳场地</el-col> | ||
| 85 | - <el-col :span="18" class="bd_padding">{{infoData.earthName}}</el-col> | ||
| 86 | - </el-row> | ||
| 87 | - <el-row > | ||
| 88 | - <el-col :span="6" class="bd_right bd_padding">行驶路线</el-col> | ||
| 89 | - <el-col :span="18" class="bd_padding">{{infoData.routeName}}</el-col> | ||
| 90 | - </el-row> | ||
| 91 | - <el-col :span="24" > | ||
| 92 | - <el-row class="bd_padding">{{infoData.applyOpinion}}</el-row> | ||
| 93 | - <el-row > | ||
| 94 | - <label style="float: right;" v-if="signData && signData.sign1">签字:<img :src="signData.sign1" width="100px" height="40px" />{{signData.sign1Time}}</label> | ||
| 95 | - </el-row> | ||
| 96 | - </el-col> | ||
| 97 | - </el-col> | ||
| 98 | - </el-col> | ||
| 99 | - </el-row> | ||
| 100 | - | ||
| 101 | - <el-row class="bd_left bd_right bd_bottom" v-if="signData && signData.sign2Text"> | ||
| 102 | - <el-col :span="2" class="bd_padding bd_right">主管领导意见</el-col> | ||
| 103 | - <el-col :span="22" > | ||
| 104 | - <el-row class="bd_padding">{{signData.sign2Text}}</el-row> | ||
| 105 | - <el-row > | ||
| 106 | - <label style="float: right;">签字:<img :src="signData.sign2" width="100px" height="40px" v-if="signData.sign2"/>{{signData.sign2Time}}</label> | ||
| 107 | - </el-row> | ||
| 108 | - </el-col> | ||
| 109 | - </el-row> | ||
| 110 | - | ||
| 111 | - <el-row class="bd_left bd_right" v-if="signData && signData.sign3Text"> | ||
| 112 | - <el-col :span="2" class="bd_padding bd_right">分管领导意见</el-col> | ||
| 113 | - <el-col :span="22" > | ||
| 114 | - <el-row class="bd_padding">{{signData.sign3Text}}</el-row> | ||
| 115 | - <el-row > | ||
| 116 | - <label style="float: right;">签字:<img :src="signData.sign3" width="100px" height="40px" v-if="signData.sign3"/>{{signData.sign3Time}}</label> | ||
| 117 | - </el-row> | ||
| 118 | - </el-col> | ||
| 119 | - </el-row> | ||
| 120 | - | ||
| 121 | - <el-row class="bd_left bd_right" style="border: 1px solid black;" v-if="signData && signData.sign4Text"> | ||
| 122 | - <el-col :span="2" class="bd_right bd_padding">渣土事务中心负责人意见</el-col> | ||
| 123 | - <el-col :span="22" > | ||
| 124 | - <el-row class="bd_padding">{{signData.sign4Text}}</el-row> | ||
| 125 | - <el-row > | ||
| 126 | - <label style="float: right;">签字:<img :src="signData.sign4" width="100px" height="40px" v-if="signData.sign4"/>{{signData.sign4Time}}</label> | ||
| 127 | - </el-row> | ||
| 128 | - </el-col> | ||
| 129 | - </el-row> | ||
| 130 | -</div> | ||
| 131 | - </div> | ||
| 132 | -</template> | ||
| 133 | - | ||
| 134 | - | ||
| 135 | -<script src="../../../api/sitePaper"> | ||
| 136 | -<style> | ||
| 137 | - .bd_padding{ | ||
| 138 | - | ||
| 139 | - padding:5px; | ||
| 140 | - } | ||
| 141 | - | ||
| 142 | - .bd_right { | ||
| 143 | - border-right: 1px solid black; | ||
| 144 | - } | ||
| 145 | - | ||
| 146 | - .bd_left { | ||
| 147 | - border-left: 1px solid black; | ||
| 148 | - } | ||
| 149 | - | ||
| 150 | - .bd_top { | ||
| 151 | - border-top: 1px solid black; | ||
| 152 | - } | ||
| 153 | - | ||
| 154 | - .bd_bottom { | ||
| 155 | - border-bottom: 1px solid black; | ||
| 156 | - } | ||
| 157 | -</style> |
trash-ui/src/views/office/leaveApplication/index.vue
| @@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
| 26 | <el-option label="丧假" value="丧假"/> | 26 | <el-option label="丧假" value="丧假"/> |
| 27 | <el-option label="探亲假" value="探亲假"/> | 27 | <el-option label="探亲假" value="探亲假"/> |
| 28 | <el-option label="护理假" value="护理假"/> | 28 | <el-option label="护理假" value="护理假"/> |
| 29 | + <el-option label="公休假" value="公休假"/> | ||
| 29 | </el-select> | 30 | </el-select> |
| 30 | </el-form-item> | 31 | </el-form-item> |
| 31 | <el-form-item> | 32 | <el-form-item> |
| @@ -160,6 +161,7 @@ | @@ -160,6 +161,7 @@ | ||
| 160 | <el-option label="丧假" value="丧假"/> | 161 | <el-option label="丧假" value="丧假"/> |
| 161 | <el-option label="探亲假" value="探亲假"/> | 162 | <el-option label="探亲假" value="探亲假"/> |
| 162 | <el-option label="护理假" value="护理假"/> | 163 | <el-option label="护理假" value="护理假"/> |
| 164 | + <el-option label="公休假" value="公休假"/> | ||
| 163 | </el-select> | 165 | </el-select> |
| 164 | </el-form-item> | 166 | </el-form-item> |
| 165 | 167 |
trash-workFlow/src/main/java/com/trash/business/controller/SupervisionThreestepController.java
| @@ -137,6 +137,12 @@ public class SupervisionThreestepController extends BaseController | @@ -137,6 +137,12 @@ public class SupervisionThreestepController extends BaseController | ||
| 137 | return AjaxResult.success(list); | 137 | return AjaxResult.success(list); |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | + @PostMapping("/getByObjects") | ||
| 141 | + public AjaxResult getLists(@RequestBody SupervisionThreestep supervisionThreestep) | ||
| 142 | + { | ||
| 143 | + List<SupervisionThreestep> list = supervisionThreestepService.selectSupervisionThreestepList(supervisionThreestep); | ||
| 144 | + return AjaxResult.success(list); | ||
| 145 | + } | ||
| 140 | 146 | ||
| 141 | String[] outside = {"长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"}; | 147 | String[] outside = {"长沙县", "望城区", "浏阳市", "宁乡市", "株洲市", "湘潭市", "汩罗市", "湘阴县"}; |
| 142 | 148 |
trash-workFlow/src/main/java/com/trash/business/controller/ThreestepHistoryController.java
0 → 100644
| 1 | +package com.trash.business.controller; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | + | ||
| 5 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 6 | +import org.springframework.security.access.prepost.PreAuthorize; | ||
| 7 | +import org.springframework.web.bind.annotation.DeleteMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.GetMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.PathVariable; | ||
| 10 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 11 | +import org.springframework.web.bind.annotation.PutMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RestController; | ||
| 15 | + | ||
| 16 | +import com.trash.business.domain.ThreestepHistory; | ||
| 17 | +import com.trash.business.domain.TruckActivate; | ||
| 18 | +import com.trash.business.service.IThreestepHistoryService; | ||
| 19 | +import com.trash.common.annotation.Log; | ||
| 20 | +import com.trash.common.core.controller.BaseController; | ||
| 21 | +import com.trash.common.core.domain.AjaxResult; | ||
| 22 | +import com.trash.common.core.page.TableDataInfo; | ||
| 23 | +import com.trash.common.enums.BusinessType; | ||
| 24 | +import com.trash.common.utils.poi.ExcelUtil; | ||
| 25 | + | ||
| 26 | +/** | ||
| 27 | + * 开停工Controller | ||
| 28 | + * | ||
| 29 | + * @author trash | ||
| 30 | + * @date 2023-08-15 | ||
| 31 | + */ | ||
| 32 | +@RestController | ||
| 33 | +@RequestMapping("/threehistory/threeHistory") | ||
| 34 | +public class ThreestepHistoryController extends BaseController | ||
| 35 | +{ | ||
| 36 | + @Autowired | ||
| 37 | + private IThreestepHistoryService threestepHistoryService; | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 查询开停工列表 | ||
| 41 | + */ | ||
| 42 | + @PreAuthorize("@ss.hasPermi('threehistory:threeHistory:list')") | ||
| 43 | + @GetMapping("/list") | ||
| 44 | + public TableDataInfo list(ThreestepHistory threestepHistory) | ||
| 45 | + { | ||
| 46 | + startPage(); | ||
| 47 | + List<ThreestepHistory> list = threestepHistoryService.selectThreestepHistoryList(threestepHistory); | ||
| 48 | + return getDataTable(list); | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + /** | ||
| 52 | + * 导出开停工列表 | ||
| 53 | + */ | ||
| 54 | + @PreAuthorize("@ss.hasPermi('threehistory:threeHistory:export')") | ||
| 55 | + @Log(title = "开停工", businessType = BusinessType.EXPORT) | ||
| 56 | + @GetMapping("/export") | ||
| 57 | + public AjaxResult export(ThreestepHistory threestepHistory) | ||
| 58 | + { | ||
| 59 | + List<ThreestepHistory> list = threestepHistoryService.selectThreestepHistoryList(threestepHistory); | ||
| 60 | + | ||
| 61 | + for(int i = 0;i<list.size();i++){ | ||
| 62 | + list.get(i).setId((long)i+1); | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + | ||
| 66 | + ExcelUtil<ThreestepHistory> util = new ExcelUtil<ThreestepHistory>(ThreestepHistory.class); | ||
| 67 | + return util.exportExcel(list, "threeHistory"); | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + /** | ||
| 71 | + * 获取开停工详细信息 | ||
| 72 | + */ | ||
| 73 | + @PreAuthorize("@ss.hasPermi('threehistory:threeHistory:query')") | ||
| 74 | + @GetMapping(value = "/{id}") | ||
| 75 | + public AjaxResult getInfo(@PathVariable("id") Long id) | ||
| 76 | + { | ||
| 77 | + return AjaxResult.success(threestepHistoryService.selectThreestepHistoryById(id)); | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + /** | ||
| 81 | + * 新增开停工 | ||
| 82 | + */ | ||
| 83 | + @PreAuthorize("@ss.hasPermi('threehistory:threeHistory:add')") | ||
| 84 | + @Log(title = "开停工", businessType = BusinessType.INSERT) | ||
| 85 | + @PostMapping | ||
| 86 | + public AjaxResult add(@RequestBody ThreestepHistory threestepHistory) | ||
| 87 | + { | ||
| 88 | + return toAjax(threestepHistoryService.insertThreestepHistory(threestepHistory)); | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + /** | ||
| 92 | + * 修改开停工 | ||
| 93 | + */ | ||
| 94 | + @PreAuthorize("@ss.hasPermi('threehistory:threeHistory:edit')") | ||
| 95 | + @Log(title = "开停工", businessType = BusinessType.UPDATE) | ||
| 96 | + @PutMapping | ||
| 97 | + public AjaxResult edit(@RequestBody ThreestepHistory threestepHistory) | ||
| 98 | + { | ||
| 99 | + return toAjax(threestepHistoryService.updateThreestepHistory(threestepHistory)); | ||
| 100 | + } | ||
| 101 | + | ||
| 102 | + /** | ||
| 103 | + * 删除开停工 | ||
| 104 | + */ | ||
| 105 | + @PreAuthorize("@ss.hasPermi('threehistory:threeHistory:remove')") | ||
| 106 | + @Log(title = "开停工", businessType = BusinessType.DELETE) | ||
| 107 | + @DeleteMapping("/{ids}") | ||
| 108 | + public AjaxResult remove(@PathVariable Long[] ids) | ||
| 109 | + { | ||
| 110 | + return toAjax(threestepHistoryService.deleteThreestepHistoryByIds(ids)); | ||
| 111 | + } | ||
| 112 | +} |
trash-workFlow/src/main/java/com/trash/business/controller/TruckActivateController.java
| @@ -26,6 +26,7 @@ import com.alibaba.fastjson.JSONArray; | @@ -26,6 +26,7 @@ import com.alibaba.fastjson.JSONArray; | ||
| 26 | import com.alibaba.fastjson.JSONObject; | 26 | import com.alibaba.fastjson.JSONObject; |
| 27 | import com.trash.business.domain.SupervisionThreestep; | 27 | import com.trash.business.domain.SupervisionThreestep; |
| 28 | import com.trash.business.domain.TruckActivate; | 28 | import com.trash.business.domain.TruckActivate; |
| 29 | +import com.trash.business.domain.TruckActivateInfo; | ||
| 29 | import com.trash.business.mapper.SupervisionThreestepMapper; | 30 | import com.trash.business.mapper.SupervisionThreestepMapper; |
| 30 | import com.trash.business.mapper.TruckActivateMapper; | 31 | import com.trash.business.mapper.TruckActivateMapper; |
| 31 | import com.trash.business.service.ISupervisionThreestepService; | 32 | import com.trash.business.service.ISupervisionThreestepService; |
| @@ -169,6 +170,48 @@ public class TruckActivateController extends BaseController | @@ -169,6 +170,48 @@ public class TruckActivateController extends BaseController | ||
| 169 | return util.exportExcel(list, title); | 170 | return util.exportExcel(list, title); |
| 170 | } | 171 | } |
| 171 | 172 | ||
| 173 | + @Log(title = "车辆激活", businessType = BusinessType.EXPORT) | ||
| 174 | + @GetMapping("/exportInfo") | ||
| 175 | + public AjaxResult exportInfo(TruckActivate truckActivate) | ||
| 176 | + { | ||
| 177 | + List<TruckActivate> list = truckActivateService.selectTruckActivateList(truckActivate); | ||
| 178 | + List<TruckActivateInfo> outList = new ArrayList<>(); | ||
| 179 | + | ||
| 180 | + | ||
| 181 | + for(int i = 0;i<list.size();i++){ | ||
| 182 | + | ||
| 183 | + TruckActivate turck = list.get(i); | ||
| 184 | + | ||
| 185 | + TruckActivateInfo info = new TruckActivateInfo(); | ||
| 186 | + | ||
| 187 | + info.setId((long)i+1); | ||
| 188 | + info.setLicensePlate(turck.getLicensePlate()); | ||
| 189 | + info.setConstruction(turck.getConstruction()); | ||
| 190 | + info.setCompany(turck.getCompany()); | ||
| 191 | + | ||
| 192 | + JSONObject object = RemoteServerUtils.getConstructionLicenseById(turck.getConstructionId()); | ||
| 193 | + | ||
| 194 | + info.setAddress(object.getString("address")); | ||
| 195 | + info.setEarthName(object.getString("earthName")); | ||
| 196 | + info.setRouteName(object.getString("routeName")); | ||
| 197 | + info.setTransportEndTime(object.getString("transportEndTime")); | ||
| 198 | + info.setTransportStartTime(object.getString("transportStartTime")); | ||
| 199 | + info.setEffectiveFrom(object.getString("effectiveFrom")); | ||
| 200 | + info.setEffectiveEnd(object.getString("effectiveEnd")); | ||
| 201 | + | ||
| 202 | + | ||
| 203 | + outList.add(info); | ||
| 204 | + | ||
| 205 | + } | ||
| 206 | + | ||
| 207 | + String title ="车辆激活详情"; | ||
| 208 | + | ||
| 209 | + ExcelUtil<TruckActivateInfo> util = new ExcelUtil<TruckActivateInfo>(TruckActivateInfo.class); | ||
| 210 | + return util.exportExcel(outList, title); | ||
| 211 | + } | ||
| 212 | + | ||
| 213 | + | ||
| 214 | + | ||
| 172 | /** | 215 | /** |
| 173 | * 获取车辆激活详细信息 | 216 | * 获取车辆激活详细信息 |
| 174 | */ | 217 | */ |
| @@ -214,6 +257,14 @@ public class TruckActivateController extends BaseController | @@ -214,6 +257,14 @@ public class TruckActivateController extends BaseController | ||
| 214 | return result; | 257 | return result; |
| 215 | } | 258 | } |
| 216 | 259 | ||
| 260 | + @PostMapping(value="/getTruckListByObjects") | ||
| 261 | + public AjaxResult getTruckListByObjects(@RequestBody TruckActivate truckActivate) | ||
| 262 | + { | ||
| 263 | + List<TruckActivate> list = truckActivateService.getTruckListByObjects(truckActivate); | ||
| 264 | + | ||
| 265 | + return AjaxResult.success(list); | ||
| 266 | + } | ||
| 267 | + | ||
| 217 | 268 | ||
| 218 | /** | 269 | /** |
| 219 | * 修改车辆激活 | 270 | * 修改车辆激活 |
trash-workFlow/src/main/java/com/trash/business/domain/ThreestepHistory.java
0 → 100644
| 1 | +package com.trash.business.domain; | ||
| 2 | + | ||
| 3 | +import java.util.Date; | ||
| 4 | + | ||
| 5 | +import org.apache.commons.lang3.builder.ToStringBuilder; | ||
| 6 | +import org.apache.commons.lang3.builder.ToStringStyle; | ||
| 7 | + | ||
| 8 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 9 | +import com.trash.common.annotation.Excel; | ||
| 10 | +import com.trash.common.core.domain.BaseEntity; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * 开停工对象 threestep_history | ||
| 14 | + * | ||
| 15 | + * @author trash | ||
| 16 | + * @date 2023-08-15 | ||
| 17 | + */ | ||
| 18 | +public class ThreestepHistory extends BaseEntity | ||
| 19 | +{ | ||
| 20 | + private static final long serialVersionUID = 1L; | ||
| 21 | + | ||
| 22 | + /** 序号 */ | ||
| 23 | + private Long id; | ||
| 24 | + | ||
| 25 | + /** 名称 */ | ||
| 26 | + @Excel(name = "名称") | ||
| 27 | + private String name; | ||
| 28 | + | ||
| 29 | + private int type; | ||
| 30 | + | ||
| 31 | + @Excel(name = "类型") | ||
| 32 | + private String projectType; | ||
| 33 | + | ||
| 34 | + /** 所属区域 */ | ||
| 35 | + @Excel(name = "所属区域") | ||
| 36 | + private String place; | ||
| 37 | + | ||
| 38 | + | ||
| 39 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
| 40 | + @Excel(name = "操作时间") | ||
| 41 | + private Date createTime; | ||
| 42 | + | ||
| 43 | + @Excel(name = "操作人") | ||
| 44 | + private String createBy; | ||
| 45 | + | ||
| 46 | + /** 1开工 3停工 */ | ||
| 47 | + @Excel(name = "状态" ,readConverterExp = "1=申请开工,3=申请停工") | ||
| 48 | + private Long status; | ||
| 49 | + | ||
| 50 | + | ||
| 51 | + /** 开停工原因 */ | ||
| 52 | + @Excel(name = "开停工原因") | ||
| 53 | + private String reason; | ||
| 54 | + | ||
| 55 | + /** 基础数据ID */ | ||
| 56 | + private String objectId; | ||
| 57 | + | ||
| 58 | + /** 执法部门负责人 */ | ||
| 59 | + @Excel(name = "执法部门负责人") | ||
| 60 | + private String person; | ||
| 61 | + | ||
| 62 | + /** 联系方式 */ | ||
| 63 | + @Excel(name = "联系方式 ") | ||
| 64 | + private String personNumber; | ||
| 65 | + | ||
| 66 | + /** 管理部门负责人 */ | ||
| 67 | + @Excel(name = "管理部门负责人") | ||
| 68 | + private String person1; | ||
| 69 | + | ||
| 70 | + /** 联系方式 */ | ||
| 71 | + @Excel(name = "联系方式 ") | ||
| 72 | + private String person1Number; | ||
| 73 | + | ||
| 74 | + public Date getCreateTime() { | ||
| 75 | + return createTime; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + public void setCreateTime(Date createTime) { | ||
| 79 | + this.createTime = createTime; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + public String getCreateBy() { | ||
| 83 | + return createBy; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public void setCreateBy(String createBy) { | ||
| 87 | + this.createBy = createBy; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public void setId(Long id) | ||
| 91 | + { | ||
| 92 | + this.id = id; | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + public Long getId() | ||
| 96 | + { | ||
| 97 | + return id; | ||
| 98 | + } | ||
| 99 | + public void setName(String name) | ||
| 100 | + { | ||
| 101 | + this.name = name; | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + public String getName() | ||
| 105 | + { | ||
| 106 | + return name; | ||
| 107 | + } | ||
| 108 | + public void setType(int type) | ||
| 109 | + { | ||
| 110 | + this.type = type; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + public int getType() | ||
| 114 | + { | ||
| 115 | + return type; | ||
| 116 | + } | ||
| 117 | + public void setPlace(String place) | ||
| 118 | + { | ||
| 119 | + this.place = place; | ||
| 120 | + } | ||
| 121 | + | ||
| 122 | + public String getPlace() | ||
| 123 | + { | ||
| 124 | + return place; | ||
| 125 | + } | ||
| 126 | + public void setReason(String reason) | ||
| 127 | + { | ||
| 128 | + this.reason = reason; | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + public String getReason() | ||
| 132 | + { | ||
| 133 | + return reason; | ||
| 134 | + } | ||
| 135 | + public void setStatus(Long status) | ||
| 136 | + { | ||
| 137 | + this.status = status; | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + public Long getStatus() | ||
| 141 | + { | ||
| 142 | + return status; | ||
| 143 | + } | ||
| 144 | + public void setObjectId(String objectId) | ||
| 145 | + { | ||
| 146 | + this.objectId = objectId; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public String getObjectId() | ||
| 150 | + { | ||
| 151 | + return objectId; | ||
| 152 | + } | ||
| 153 | + public void setPerson(String person) | ||
| 154 | + { | ||
| 155 | + this.person = person; | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + public String getPerson() | ||
| 159 | + { | ||
| 160 | + return person; | ||
| 161 | + } | ||
| 162 | + public void setPersonNumber(String personNumber) | ||
| 163 | + { | ||
| 164 | + this.personNumber = personNumber; | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + public String getPersonNumber() | ||
| 168 | + { | ||
| 169 | + return personNumber; | ||
| 170 | + } | ||
| 171 | + public void setPerson1(String person1) | ||
| 172 | + { | ||
| 173 | + this.person1 = person1; | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + public String getPerson1() | ||
| 177 | + { | ||
| 178 | + return person1; | ||
| 179 | + } | ||
| 180 | + public void setPerson1Number(String person1Number) | ||
| 181 | + { | ||
| 182 | + this.person1Number = person1Number; | ||
| 183 | + } | ||
| 184 | + | ||
| 185 | + public String getPerson1Number() | ||
| 186 | + { | ||
| 187 | + return person1Number; | ||
| 188 | + } | ||
| 189 | + | ||
| 190 | + | ||
| 191 | + public String getProjectType() { | ||
| 192 | + return projectType; | ||
| 193 | + } | ||
| 194 | + | ||
| 195 | + public void setProjectType(String projectType) { | ||
| 196 | + this.projectType = projectType; | ||
| 197 | + } | ||
| 198 | + | ||
| 199 | + @Override | ||
| 200 | + public String toString() { | ||
| 201 | + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||
| 202 | + .append("id", getId()) | ||
| 203 | + .append("name", getName()) | ||
| 204 | + .append("type", getType()) | ||
| 205 | + .append("place", getPlace()) | ||
| 206 | + .append("reason", getReason()) | ||
| 207 | + .append("status", getStatus()) | ||
| 208 | + .append("objectId", getObjectId()) | ||
| 209 | + .append("createBy", getCreateBy()) | ||
| 210 | + .append("createTime", getCreateTime()) | ||
| 211 | + .append("person", getPerson()) | ||
| 212 | + .append("personNumber", getPersonNumber()) | ||
| 213 | + .append("person1", getPerson1()) | ||
| 214 | + .append("person1Number", getPerson1Number()) | ||
| 215 | + .toString(); | ||
| 216 | + } | ||
| 217 | +} |
trash-workFlow/src/main/java/com/trash/business/domain/TruckActivateInfo.java
0 → 100644
| 1 | +package com.trash.business.domain; | ||
| 2 | + | ||
| 3 | +import java.util.Date; | ||
| 4 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 5 | +import org.apache.commons.lang3.builder.ToStringBuilder; | ||
| 6 | +import org.apache.commons.lang3.builder.ToStringStyle; | ||
| 7 | +import com.trash.common.annotation.Excel; | ||
| 8 | +import com.trash.common.core.domain.BaseEntity; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 车辆激活对象 truck_activate | ||
| 12 | + * | ||
| 13 | + * @author trash | ||
| 14 | + * @date 2023-05-02 | ||
| 15 | + */ | ||
| 16 | +public class TruckActivateInfo extends BaseEntity | ||
| 17 | +{ | ||
| 18 | + private static final long serialVersionUID = 1L; | ||
| 19 | + | ||
| 20 | + /** 序号 */ | ||
| 21 | + @Excel(name = "序号") | ||
| 22 | + private Long id; | ||
| 23 | + | ||
| 24 | + /** 所属工地 */ | ||
| 25 | + @Excel(name = "工地名称") | ||
| 26 | + private String construction; | ||
| 27 | + | ||
| 28 | + @Excel(name = "施工地址") | ||
| 29 | + private String address; | ||
| 30 | + | ||
| 31 | + @Excel(name = "运输车辆") | ||
| 32 | + private String licensePlate; | ||
| 33 | + | ||
| 34 | + /** 所属企业 */ | ||
| 35 | + @Excel(name = "运输公司") | ||
| 36 | + private String company; | ||
| 37 | + | ||
| 38 | + @Excel(name = "证照有效期起") | ||
| 39 | + private String effectiveFrom; | ||
| 40 | + | ||
| 41 | + @Excel(name = "证照有效期止") | ||
| 42 | + private String effectiveEnd; | ||
| 43 | + | ||
| 44 | + @Excel(name = "运输开始时间") | ||
| 45 | + private String transportStartTime; | ||
| 46 | + | ||
| 47 | + @Excel(name = "运输结束时间") | ||
| 48 | + private String transportEndTime; | ||
| 49 | + | ||
| 50 | + @Excel(name = "路线描述") | ||
| 51 | + private String routeName; | ||
| 52 | + | ||
| 53 | + @Excel(name = "卸区描述") | ||
| 54 | + private String earthName; | ||
| 55 | + | ||
| 56 | + public Long getId() { | ||
| 57 | + return id; | ||
| 58 | + } | ||
| 59 | + | ||
| 60 | + public void setId(Long id) { | ||
| 61 | + this.id = id; | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + public String getConstruction() { | ||
| 65 | + return construction; | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + public void setConstruction(String construction) { | ||
| 69 | + this.construction = construction; | ||
| 70 | + } | ||
| 71 | + | ||
| 72 | + public String getAddress() { | ||
| 73 | + return address; | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + public void setAddress(String address) { | ||
| 77 | + this.address = address; | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + public String getLicensePlate() { | ||
| 81 | + return licensePlate; | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + public void setLicensePlate(String licensePlate) { | ||
| 85 | + this.licensePlate = licensePlate; | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + public String getCompany() { | ||
| 89 | + return company; | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + public void setCompany(String company) { | ||
| 93 | + this.company = company; | ||
| 94 | + } | ||
| 95 | + | ||
| 96 | + public String getEffectiveFrom() { | ||
| 97 | + return effectiveFrom; | ||
| 98 | + } | ||
| 99 | + | ||
| 100 | + public void setEffectiveFrom(String effectiveFrom) { | ||
| 101 | + this.effectiveFrom = effectiveFrom; | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + public String getEffectiveEnd() { | ||
| 105 | + return effectiveEnd; | ||
| 106 | + } | ||
| 107 | + | ||
| 108 | + public void setEffectiveEnd(String effectiveEnd) { | ||
| 109 | + this.effectiveEnd = effectiveEnd; | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + public String getTransportStartTime() { | ||
| 113 | + return transportStartTime; | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + public void setTransportStartTime(String transportStartTime) { | ||
| 117 | + this.transportStartTime = transportStartTime; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + public String getTransportEndTime() { | ||
| 121 | + return transportEndTime; | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + public void setTransportEndTime(String transportEndTime) { | ||
| 125 | + this.transportEndTime = transportEndTime; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + public String getRouteName() { | ||
| 129 | + return routeName; | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + public void setRouteName(String routeName) { | ||
| 133 | + this.routeName = routeName; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + public String getEarthName() { | ||
| 137 | + return earthName; | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + public void setEarthName(String earthName) { | ||
| 141 | + this.earthName = earthName; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public static long getSerialversionuid() { | ||
| 145 | + return serialVersionUID; | ||
| 146 | + } | ||
| 147 | + | ||
| 148 | + | ||
| 149 | + | ||
| 150 | + | ||
| 151 | + | ||
| 152 | + | ||
| 153 | + | ||
| 154 | +} |
trash-workFlow/src/main/java/com/trash/business/mapper/SupervisionThreestepMapper.java
| @@ -74,4 +74,6 @@ public interface SupervisionThreestepMapper | @@ -74,4 +74,6 @@ public interface SupervisionThreestepMapper | ||
| 74 | public SupervisionThreestep selectThreestepByTruckDate(SupervisionThreestep threestep); | 74 | public SupervisionThreestep selectThreestepByTruckDate(SupervisionThreestep threestep); |
| 75 | 75 | ||
| 76 | SupervisionThreestep getSupervisionThreestepInfo(SupervisionThreestep supervisionThreestep); | 76 | SupervisionThreestep getSupervisionThreestepInfo(SupervisionThreestep supervisionThreestep); |
| 77 | + | ||
| 78 | + void updateStatusByObjectAndType(SupervisionThreestep threestep); | ||
| 77 | } | 79 | } |
trash-workFlow/src/main/java/com/trash/business/mapper/ThreestepHistoryMapper.java
0 → 100644
| 1 | +package com.trash.business.mapper; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | + | ||
| 5 | +import com.trash.business.domain.ThreestepHistory; | ||
| 6 | + | ||
| 7 | +/** | ||
| 8 | + * 开停工Mapper接口 | ||
| 9 | + * | ||
| 10 | + * @author trash | ||
| 11 | + * @date 2023-08-15 | ||
| 12 | + */ | ||
| 13 | +public interface ThreestepHistoryMapper | ||
| 14 | +{ | ||
| 15 | + /** | ||
| 16 | + * 查询开停工 | ||
| 17 | + * | ||
| 18 | + * @param id 开停工ID | ||
| 19 | + * @return 开停工 | ||
| 20 | + */ | ||
| 21 | + ThreestepHistory selectThreestepHistoryById(Long id); | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * 查询开停工列表 | ||
| 25 | + * | ||
| 26 | + * @param threestepHistory 开停工 | ||
| 27 | + * @return 开停工集合 | ||
| 28 | + */ | ||
| 29 | + List<ThreestepHistory> selectThreestepHistoryList(ThreestepHistory threestepHistory); | ||
| 30 | + | ||
| 31 | + /** | ||
| 32 | + * 新增开停工 | ||
| 33 | + * | ||
| 34 | + * @param threestepHistory 开停工 | ||
| 35 | + * @return 结果 | ||
| 36 | + */ | ||
| 37 | + int insertThreestepHistory(ThreestepHistory threestepHistory); | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 修改开停工 | ||
| 41 | + * | ||
| 42 | + * @param threestepHistory 开停工 | ||
| 43 | + * @return 结果 | ||
| 44 | + */ | ||
| 45 | + int updateThreestepHistory(ThreestepHistory threestepHistory); | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 删除开停工 | ||
| 49 | + * | ||
| 50 | + * @param id 开停工ID | ||
| 51 | + * @return 结果 | ||
| 52 | + */ | ||
| 53 | + int deleteThreestepHistoryById(Long id); | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 批量删除开停工 | ||
| 57 | + * | ||
| 58 | + * @param ids 需要删除的数据ID | ||
| 59 | + * @return 结果 | ||
| 60 | + */ | ||
| 61 | + int deleteThreestepHistoryByIds(Long[] ids); | ||
| 62 | +} |
trash-workFlow/src/main/java/com/trash/business/mapper/TruckActivateMapper.java
| @@ -74,4 +74,6 @@ public interface TruckActivateMapper | @@ -74,4 +74,6 @@ public interface TruckActivateMapper | ||
| 74 | public List<TruckActivate> getActivedTruckList(TruckActivate truckActivate); | 74 | public List<TruckActivate> getActivedTruckList(TruckActivate truckActivate); |
| 75 | 75 | ||
| 76 | public List<TruckActivate> selectTodayTruckByObjIds(String[] objs); | 76 | public List<TruckActivate> selectTodayTruckByObjIds(String[] objs); |
| 77 | + | ||
| 78 | + public List<TruckActivate> getTruckListByObjects(TruckActivate truckActivate); | ||
| 77 | } | 79 | } |
trash-workFlow/src/main/java/com/trash/business/service/IThreestepHistoryService.java
0 → 100644
| 1 | +package com.trash.business.service; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | + | ||
| 5 | +import com.trash.business.domain.ThreestepHistory; | ||
| 6 | + | ||
| 7 | +/** | ||
| 8 | + * 开停工Service接口 | ||
| 9 | + * | ||
| 10 | + * @author trash | ||
| 11 | + * @date 2023-08-15 | ||
| 12 | + */ | ||
| 13 | +public interface IThreestepHistoryService | ||
| 14 | +{ | ||
| 15 | + /** | ||
| 16 | + * 查询开停工 | ||
| 17 | + * | ||
| 18 | + * @param id 开停工ID | ||
| 19 | + * @return 开停工 | ||
| 20 | + */ | ||
| 21 | + ThreestepHistory selectThreestepHistoryById(Long id); | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * 查询开停工列表 | ||
| 25 | + * | ||
| 26 | + * @param threestepHistory 开停工 | ||
| 27 | + * @return 开停工集合 | ||
| 28 | + */ | ||
| 29 | + List<ThreestepHistory> selectThreestepHistoryList(ThreestepHistory threestepHistory); | ||
| 30 | + | ||
| 31 | + /** | ||
| 32 | + * 新增开停工 | ||
| 33 | + * | ||
| 34 | + * @param threestepHistory 开停工 | ||
| 35 | + * @return 结果 | ||
| 36 | + */ | ||
| 37 | + int insertThreestepHistory(ThreestepHistory threestepHistory); | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 修改开停工 | ||
| 41 | + * | ||
| 42 | + * @param threestepHistory 开停工 | ||
| 43 | + * @return 结果 | ||
| 44 | + */ | ||
| 45 | + int updateThreestepHistory(ThreestepHistory threestepHistory); | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 批量删除开停工 | ||
| 49 | + * | ||
| 50 | + * @param ids 需要删除的开停工ID | ||
| 51 | + * @return 结果 | ||
| 52 | + */ | ||
| 53 | + int deleteThreestepHistoryByIds(Long[] ids); | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 删除开停工信息 | ||
| 57 | + * | ||
| 58 | + * @param id 开停工ID | ||
| 59 | + * @return 结果 | ||
| 60 | + */ | ||
| 61 | + int deleteThreestepHistoryById(Long id); | ||
| 62 | +} |
trash-workFlow/src/main/java/com/trash/business/service/ITruckActivateService.java
| @@ -65,4 +65,6 @@ public interface ITruckActivateService | @@ -65,4 +65,6 @@ public interface ITruckActivateService | ||
| 65 | public String getConractByObjectId(String id); | 65 | public String getConractByObjectId(String id); |
| 66 | 66 | ||
| 67 | public List<TruckActivate> getActivedTruckList(TruckActivate truckActivate); | 67 | public List<TruckActivate> getActivedTruckList(TruckActivate truckActivate); |
| 68 | + | ||
| 69 | + public List<TruckActivate> getTruckListByObjects(TruckActivate truckActivate); | ||
| 68 | } | 70 | } |
trash-workFlow/src/main/java/com/trash/business/service/impl/ConstructionCreditServiceImpl.java
| 1 | package com.trash.business.service.impl; | 1 | package com.trash.business.service.impl; |
| 2 | 2 | ||
| 3 | +import java.util.ArrayList; | ||
| 3 | import java.util.Date; | 4 | import java.util.Date; |
| 5 | +import java.util.HashMap; | ||
| 4 | import java.util.List; | 6 | import java.util.List; |
| 7 | +import java.util.Map; | ||
| 5 | 8 | ||
| 6 | -import org.apache.xmlbeans.impl.xb.xsdschema.Public; | ||
| 7 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| 8 | import org.springframework.stereotype.Service; | 10 | import org.springframework.stereotype.Service; |
| 9 | import org.springframework.transaction.annotation.Transactional; | 11 | import org.springframework.transaction.annotation.Transactional; |
| 10 | 12 | ||
| 13 | +import com.trash.business.domain.CompanyCredit; | ||
| 11 | import com.trash.business.domain.ConstructionCredit; | 14 | import com.trash.business.domain.ConstructionCredit; |
| 12 | import com.trash.business.mapper.ConstructionCreditMapper; | 15 | import com.trash.business.mapper.ConstructionCreditMapper; |
| 13 | import com.trash.business.service.IConstructionCreditService; | 16 | import com.trash.business.service.IConstructionCreditService; |
| 17 | +import com.trash.common.utils.RemoteServerUtils; | ||
| 14 | 18 | ||
| 15 | /** | 19 | /** |
| 16 | * 三查机制Service业务层处理 | 20 | * 三查机制Service业务层处理 |
| @@ -67,7 +71,32 @@ public class ConstructionCreditServiceImpl implements IConstructionCreditService | @@ -67,7 +71,32 @@ public class ConstructionCreditServiceImpl implements IConstructionCreditService | ||
| 67 | 71 | ||
| 68 | constructionCredit.setTime(new Date()); | 72 | constructionCredit.setTime(new Date()); |
| 69 | 73 | ||
| 70 | - return constructionCreditMapper.insertConstructionCredit(constructionCredit); | 74 | + List<Map> map = new ArrayList<Map>(); |
| 75 | + | ||
| 76 | + ConstructionCredit cc = new ConstructionCredit(); | ||
| 77 | + | ||
| 78 | + cc.setStatus(0L); | ||
| 79 | + cc.setLostCredit(constructionCredit.getLostCredit()); | ||
| 80 | + cc.setObjectId(constructionCredit.getObjectId()); | ||
| 81 | + | ||
| 82 | + List old = selectConstructionCreditList(cc); | ||
| 83 | + | ||
| 84 | + int i = 0; | ||
| 85 | + | ||
| 86 | + if(old.size() > 0){ | ||
| 87 | + i = 1; | ||
| 88 | + }else{ | ||
| 89 | + | ||
| 90 | + Map param = new HashMap(); | ||
| 91 | + param.put("objectId", constructionCredit.getObjectId()); | ||
| 92 | + param.put("creditStatus", constructionCredit.getLostCredit()); | ||
| 93 | + map.add(param); | ||
| 94 | + | ||
| 95 | + RemoteServerUtils.updateConstationCreditAndStatus(map); | ||
| 96 | + i = constructionCreditMapper.insertConstructionCredit(constructionCredit); | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + return i; | ||
| 71 | } | 100 | } |
| 72 | 101 | ||
| 73 | /** | 102 | /** |
trash-workFlow/src/main/java/com/trash/business/service/impl/EarthsitesCreditServiceImpl.java
| 1 | package com.trash.business.service.impl; | 1 | package com.trash.business.service.impl; |
| 2 | 2 | ||
| 3 | +import java.util.ArrayList; | ||
| 3 | import java.util.Date; | 4 | import java.util.Date; |
| 5 | +import java.util.HashMap; | ||
| 4 | import java.util.List; | 6 | import java.util.List; |
| 7 | +import java.util.Map; | ||
| 5 | 8 | ||
| 6 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| 7 | import org.springframework.stereotype.Service; | 10 | import org.springframework.stereotype.Service; |
| @@ -9,6 +12,7 @@ import com.trash.business.mapper.EarthsitesCreditMapper; | @@ -9,6 +12,7 @@ import com.trash.business.mapper.EarthsitesCreditMapper; | ||
| 9 | import com.trash.business.domain.ConstructionCredit; | 12 | import com.trash.business.domain.ConstructionCredit; |
| 10 | import com.trash.business.domain.EarthsitesCredit; | 13 | import com.trash.business.domain.EarthsitesCredit; |
| 11 | import com.trash.business.service.IEarthsitesCreditService; | 14 | import com.trash.business.service.IEarthsitesCreditService; |
| 15 | +import com.trash.common.utils.RemoteServerUtils; | ||
| 12 | 16 | ||
| 13 | /** | 17 | /** |
| 14 | * 消纳场失信Service业务层处理 | 18 | * 消纳场失信Service业务层处理 |
| @@ -57,8 +61,32 @@ public class EarthsitesCreditServiceImpl implements IEarthsitesCreditService | @@ -57,8 +61,32 @@ public class EarthsitesCreditServiceImpl implements IEarthsitesCreditService | ||
| 57 | { | 61 | { |
| 58 | earthsitesCredit.setTime(new Date()); | 62 | earthsitesCredit.setTime(new Date()); |
| 59 | 63 | ||
| 60 | - int i = earthsitesCreditMapper.insertEarthsitesCredit(earthsitesCredit); | ||
| 61 | - | 64 | + List<Map> map = new ArrayList<Map>(); |
| 65 | + | ||
| 66 | + EarthsitesCredit cc = new EarthsitesCredit(); | ||
| 67 | + | ||
| 68 | + cc.setStatus(0L); | ||
| 69 | + cc.setLostCredit(earthsitesCredit.getLostCredit()); | ||
| 70 | + cc.setObjectId(earthsitesCredit.getObjectId()); | ||
| 71 | + | ||
| 72 | + List old = selectEarthsitesCreditList(cc); | ||
| 73 | + | ||
| 74 | + int i = 0; | ||
| 75 | + | ||
| 76 | + if(old.size() > 0){ | ||
| 77 | + i = 1; | ||
| 78 | + }else{ | ||
| 79 | + | ||
| 80 | + Map param = new HashMap(); | ||
| 81 | + param.put("objectId", earthsitesCredit.getObjectId()); | ||
| 82 | + param.put("creditStatus", earthsitesCredit.getLostCredit()); | ||
| 83 | + map.add(param); | ||
| 84 | + | ||
| 85 | + RemoteServerUtils.updateEarthSitesCreditAndStatus(map); | ||
| 86 | + | ||
| 87 | + i = earthsitesCreditMapper.insertEarthsitesCredit(earthsitesCredit); | ||
| 88 | + } | ||
| 89 | + | ||
| 62 | return i; | 90 | return i; |
| 63 | } | 91 | } |
| 64 | 92 |
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| @@ -649,7 +649,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -649,7 +649,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 649 | end = yearFomat.format(date); | 649 | end = yearFomat.format(date); |
| 650 | } | 650 | } |
| 651 | 651 | ||
| 652 | - end += " 4:00:00"; | 652 | + end += " 8:00:00"; |
| 653 | start += " 8:00:00"; | 653 | start += " 8:00:00"; |
| 654 | 654 | ||
| 655 | try { | 655 | try { |
| @@ -761,7 +761,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -761,7 +761,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 761 | end = yearFomat.format(date); | 761 | end = yearFomat.format(date); |
| 762 | } | 762 | } |
| 763 | 763 | ||
| 764 | - end += " 4:00:00"; | 764 | + end += " 8:00:00"; |
| 765 | start += " 8:00:00"; | 765 | start += " 8:00:00"; |
| 766 | 766 | ||
| 767 | try { | 767 | try { |
| @@ -1023,6 +1023,37 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -1023,6 +1023,37 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 1023 | 1023 | ||
| 1024 | @Override | 1024 | @Override |
| 1025 | public SupervisionThreestep getSupervisionThreestepInfo(SupervisionThreestep supervisionThreestep) { | 1025 | public SupervisionThreestep getSupervisionThreestepInfo(SupervisionThreestep supervisionThreestep) { |
| 1026 | + if(supervisionThreestep.getWorkStartTime() == null){ | ||
| 1027 | + | ||
| 1028 | + SimpleDateFormat yearFomat = new SimpleDateFormat("yyyy-MM-dd"); | ||
| 1029 | + | ||
| 1030 | + String start, end; | ||
| 1031 | + | ||
| 1032 | + Date date = new Date(); | ||
| 1033 | + | ||
| 1034 | + if (new Date().getHours() < 8) { | ||
| 1035 | + end = yearFomat.format(date); | ||
| 1036 | + date.setDate(date.getDate() - 1); | ||
| 1037 | + start = yearFomat.format(date); | ||
| 1038 | + } else { | ||
| 1039 | + start = yearFomat.format(date); | ||
| 1040 | + date.setDate(date.getDate() + 1); | ||
| 1041 | + end = yearFomat.format(date); | ||
| 1042 | + } | ||
| 1043 | + | ||
| 1044 | + end += " 08:00:00"; | ||
| 1045 | + start += " 08:00:00"; | ||
| 1046 | + | ||
| 1047 | + try { | ||
| 1048 | + supervisionThreestep.setWorkStartTime(yearFomat.parse(start)); | ||
| 1049 | + supervisionThreestep.setWorkEndTime(yearFomat.parse(end)); | ||
| 1050 | + } catch (Exception e) { | ||
| 1051 | + // TODO Auto-generated catch block | ||
| 1052 | + e.printStackTrace(); | ||
| 1053 | + } | ||
| 1054 | + } | ||
| 1055 | + | ||
| 1056 | + | ||
| 1026 | return supervisionThreestepMapper.getSupervisionThreestepInfo(supervisionThreestep); | 1057 | return supervisionThreestepMapper.getSupervisionThreestepInfo(supervisionThreestep); |
| 1027 | } | 1058 | } |
| 1028 | 1059 |
trash-workFlow/src/main/java/com/trash/business/service/impl/ThreestepHistoryServiceImpl.java
0 → 100644
| 1 | +package com.trash.business.service.impl; | ||
| 2 | + | ||
| 3 | +import java.text.SimpleDateFormat; | ||
| 4 | +import java.util.Date; | ||
| 5 | +import java.util.List; | ||
| 6 | + | ||
| 7 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 8 | +import org.springframework.stereotype.Service; | ||
| 9 | +import org.springframework.transaction.annotation.Transactional; | ||
| 10 | + | ||
| 11 | +import com.alibaba.fastjson.JSONObject; | ||
| 12 | +import com.trash.business.domain.SupervisionThreestep; | ||
| 13 | +import com.trash.business.domain.ThreestepHistory; | ||
| 14 | +import com.trash.business.mapper.SupervisionThreestepMapper; | ||
| 15 | +import com.trash.business.mapper.ThreestepHistoryMapper; | ||
| 16 | +import com.trash.business.service.ISupervisionThreestepService; | ||
| 17 | +import com.trash.business.service.IThreestepHistoryService; | ||
| 18 | +import com.trash.common.utils.DateUtils; | ||
| 19 | +import com.trash.common.utils.RemoteServerUtils; | ||
| 20 | +import com.trash.common.utils.SecurityUtils; | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + * 开停工Service业务层处理 | ||
| 24 | + * | ||
| 25 | + * @author trash | ||
| 26 | + * @date 2023-08-15 | ||
| 27 | + */ | ||
| 28 | +@Service | ||
| 29 | +public class ThreestepHistoryServiceImpl implements IThreestepHistoryService | ||
| 30 | +{ | ||
| 31 | + @Autowired | ||
| 32 | + private ThreestepHistoryMapper threestepHistoryMapper; | ||
| 33 | + | ||
| 34 | + | ||
| 35 | + @Autowired | ||
| 36 | + private SupervisionThreestepMapper threestepMapper; | ||
| 37 | + | ||
| 38 | + /** | ||
| 39 | + * 查询开停工 | ||
| 40 | + * | ||
| 41 | + * @param id 开停工ID | ||
| 42 | + * @return 开停工 | ||
| 43 | + */ | ||
| 44 | + @Override | ||
| 45 | + public ThreestepHistory selectThreestepHistoryById(Long id) | ||
| 46 | + { | ||
| 47 | + return threestepHistoryMapper.selectThreestepHistoryById(id); | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + /** | ||
| 51 | + * 查询开停工列表 | ||
| 52 | + * | ||
| 53 | + * @param threestepHistory 开停工 | ||
| 54 | + * @return 开停工 | ||
| 55 | + */ | ||
| 56 | + @Override | ||
| 57 | + public List<ThreestepHistory> selectThreestepHistoryList(ThreestepHistory threestepHistory) | ||
| 58 | + { | ||
| 59 | + return threestepHistoryMapper.selectThreestepHistoryList(threestepHistory); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + /** | ||
| 63 | + * 新增开停工 | ||
| 64 | + * | ||
| 65 | + * @param threestepHistory 开停工 | ||
| 66 | + * @return 结果 | ||
| 67 | + */ | ||
| 68 | + @Override | ||
| 69 | + @Transactional | ||
| 70 | + public int insertThreestepHistory(ThreestepHistory threestepHistory) | ||
| 71 | + { | ||
| 72 | + threestepHistory.setCreateTime(DateUtils.getNowDate()); | ||
| 73 | + | ||
| 74 | + threestepHistory.setCreateBy(SecurityUtils.getUsername()); | ||
| 75 | + | ||
| 76 | + SupervisionThreestep threestep = new SupervisionThreestep(); | ||
| 77 | + | ||
| 78 | + threestep.setStatus(threestepHistory.getStatus()); | ||
| 79 | + threestep.setObjectId(threestepHistory.getObjectId()); | ||
| 80 | + threestep.setType((long)threestepHistory.getType()); | ||
| 81 | + JSONObject jsonObject = null; | ||
| 82 | + if(threestepHistory.getType() == 0){ | ||
| 83 | + jsonObject = RemoteServerUtils.getConstructionInfo(threestepHistory.getObjectId()); | ||
| 84 | + threestepHistory.setProjectType(jsonObject.getString("projectTypeName")); | ||
| 85 | + threestepHistory.setName(jsonObject.getString("name")); | ||
| 86 | + threestepHistory.setPlace(jsonObject.getString("areaCodeName")); | ||
| 87 | + }else{ | ||
| 88 | + jsonObject = RemoteServerUtils.getEarthSitesInfo(threestepHistory.getObjectId()); | ||
| 89 | + | ||
| 90 | + threestepHistory.setProjectType(jsonObject.getString("projectTypeName")); | ||
| 91 | + threestepHistory.setName(jsonObject.getJSONObject("site").getString("name")); | ||
| 92 | + threestepHistory.setPlace(jsonObject.getString("areaName")); | ||
| 93 | + } | ||
| 94 | + | ||
| 95 | + | ||
| 96 | + | ||
| 97 | + | ||
| 98 | + | ||
| 99 | + String start, end; | ||
| 100 | + | ||
| 101 | + SimpleDateFormat yearFomat = new SimpleDateFormat("yyyy-MM-dd"); | ||
| 102 | + Date date = new Date(); | ||
| 103 | + | ||
| 104 | + if (new Date().getHours() < 8) { | ||
| 105 | + end = yearFomat.format(date); | ||
| 106 | + date.setDate(date.getDate() - 1); | ||
| 107 | + start = yearFomat.format(date); | ||
| 108 | + } else { | ||
| 109 | + start = yearFomat.format(date); | ||
| 110 | + date.setDate(date.getDate() + 1); | ||
| 111 | + end = yearFomat.format(date); | ||
| 112 | + } | ||
| 113 | + | ||
| 114 | + end += " 8:00:00"; | ||
| 115 | + start += " 8:00:00"; | ||
| 116 | + | ||
| 117 | + try { | ||
| 118 | + threestep.setWorkStartTime(yearFomat.parse(start)); | ||
| 119 | + threestep.setWorkEndTime(yearFomat.parse(end)); | ||
| 120 | + } catch (Exception e) { | ||
| 121 | + // TODO Auto-generated catch block | ||
| 122 | + e.printStackTrace(); | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + threestepMapper.updateStatusByObjectAndType(threestep); | ||
| 126 | + | ||
| 127 | + | ||
| 128 | + return threestepHistoryMapper.insertThreestepHistory(threestepHistory); | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + /** | ||
| 132 | + * 修改开停工 | ||
| 133 | + * | ||
| 134 | + * @param threestepHistory 开停工 | ||
| 135 | + * @return 结果 | ||
| 136 | + */ | ||
| 137 | + @Override | ||
| 138 | + public int updateThreestepHistory(ThreestepHistory threestepHistory) | ||
| 139 | + { | ||
| 140 | + return threestepHistoryMapper.updateThreestepHistory(threestepHistory); | ||
| 141 | + } | ||
| 142 | + | ||
| 143 | + /** | ||
| 144 | + * 批量删除开停工 | ||
| 145 | + * | ||
| 146 | + * @param ids 需要删除的开停工ID | ||
| 147 | + * @return 结果 | ||
| 148 | + */ | ||
| 149 | + @Override | ||
| 150 | + public int deleteThreestepHistoryByIds(Long[] ids) | ||
| 151 | + { | ||
| 152 | + return threestepHistoryMapper.deleteThreestepHistoryByIds(ids); | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + /** | ||
| 156 | + * 删除开停工信息 | ||
| 157 | + * | ||
| 158 | + * @param id 开停工ID | ||
| 159 | + * @return 结果 | ||
| 160 | + */ | ||
| 161 | + @Override | ||
| 162 | + public int deleteThreestepHistoryById(Long id) | ||
| 163 | + { | ||
| 164 | + return threestepHistoryMapper.deleteThreestepHistoryById(id); | ||
| 165 | + } | ||
| 166 | +} |
trash-workFlow/src/main/java/com/trash/business/service/impl/TruckActivateServiceImpl.java
| @@ -104,8 +104,8 @@ public class TruckActivateServiceImpl implements ITruckActivateService | @@ -104,8 +104,8 @@ public class TruckActivateServiceImpl implements ITruckActivateService | ||
| 104 | end = yearFomat.format(date); | 104 | end = yearFomat.format(date); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | - end += " 4:00:00"; | ||
| 108 | - start += " 8:00:00"; | 107 | + end += " 08:00:00"; |
| 108 | + start += " 08:00:00"; | ||
| 109 | 109 | ||
| 110 | String[] objs = truckActivate.getObjectId().split(","); | 110 | String[] objs = truckActivate.getObjectId().split(","); |
| 111 | String[] nos = truckActivate.getLicensePlate().split(","); | 111 | String[] nos = truckActivate.getLicensePlate().split(","); |
| @@ -330,7 +330,7 @@ public class TruckActivateServiceImpl implements ITruckActivateService | @@ -330,7 +330,7 @@ public class TruckActivateServiceImpl implements ITruckActivateService | ||
| 330 | end = yearFomat.format(date); | 330 | end = yearFomat.format(date); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | - end += " 04:00:00"; | 333 | + end += " 08:00:00"; |
| 334 | start += " 08:00:00"; | 334 | start += " 08:00:00"; |
| 335 | 335 | ||
| 336 | try { | 336 | try { |
| @@ -420,6 +420,11 @@ public class TruckActivateServiceImpl implements ITruckActivateService | @@ -420,6 +420,11 @@ public class TruckActivateServiceImpl implements ITruckActivateService | ||
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | @Override | 422 | @Override |
| 423 | + public List<TruckActivate> getTruckListByObjects(TruckActivate truckActivate) { | ||
| 424 | + return truckActivateMapper.getTruckListByObjects(truckActivate); | ||
| 425 | + } | ||
| 426 | + | ||
| 427 | + @Override | ||
| 423 | public List<TruckActivate> getActivedTruckList(TruckActivate truckActivate) { | 428 | public List<TruckActivate> getActivedTruckList(TruckActivate truckActivate) { |
| 424 | 429 | ||
| 425 | return truckActivateMapper.getActivedTruckList(truckActivate); | 430 | return truckActivateMapper.getActivedTruckList(truckActivate); |
trash-workFlow/src/main/java/com/trash/caseOffline/controller/CaseOfflineController.java
| 1 | package com.trash.caseOffline.controller; | 1 | package com.trash.caseOffline.controller; |
| 2 | 2 | ||
| 3 | +import java.util.HashMap; | ||
| 3 | import java.util.List; | 4 | import java.util.List; |
| 5 | +import java.util.Map; | ||
| 6 | + | ||
| 4 | import org.springframework.security.access.prepost.PreAuthorize; | 7 | import org.springframework.security.access.prepost.PreAuthorize; |
| 5 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | import org.springframework.web.bind.annotation.GetMapping; | 9 | import org.springframework.web.bind.annotation.GetMapping; |
| @@ -20,8 +23,10 @@ import com.alibaba.fastjson.JSONObject; | @@ -20,8 +23,10 @@ import com.alibaba.fastjson.JSONObject; | ||
| 20 | import com.trash.caseOffline.domain.CaseOffline; | 23 | import com.trash.caseOffline.domain.CaseOffline; |
| 21 | import com.trash.caseOffline.service.ICaseOfflineService; | 24 | import com.trash.caseOffline.service.ICaseOfflineService; |
| 22 | import com.trash.common.utils.RemoteServerUtils; | 25 | import com.trash.common.utils.RemoteServerUtils; |
| 26 | +import com.trash.common.utils.SecurityUtils; | ||
| 23 | import com.trash.common.utils.poi.ExcelUtil; | 27 | import com.trash.common.utils.poi.ExcelUtil; |
| 24 | import com.trash.common.core.page.TableDataInfo; | 28 | import com.trash.common.core.page.TableDataInfo; |
| 29 | +import com.trash.common.core.redis.RedisCache; | ||
| 25 | 30 | ||
| 26 | /** | 31 | /** |
| 27 | * 线下交办案卷Controller | 32 | * 线下交办案卷Controller |
| @@ -36,6 +41,9 @@ public class CaseOfflineController extends BaseController | @@ -36,6 +41,9 @@ public class CaseOfflineController extends BaseController | ||
| 36 | @Autowired | 41 | @Autowired |
| 37 | private ICaseOfflineService caseOfflineService; | 42 | private ICaseOfflineService caseOfflineService; |
| 38 | 43 | ||
| 44 | + @Autowired | ||
| 45 | + RedisCache redisCache; | ||
| 46 | + | ||
| 39 | /** | 47 | /** |
| 40 | * 查询线下交办案卷列表 | 48 | * 查询线下交办案卷列表 |
| 41 | */ | 49 | */ |
| @@ -43,6 +51,60 @@ public class CaseOfflineController extends BaseController | @@ -43,6 +51,60 @@ public class CaseOfflineController extends BaseController | ||
| 43 | public TableDataInfo list(CaseOffline caseOffline) | 51 | public TableDataInfo list(CaseOffline caseOffline) |
| 44 | { | 52 | { |
| 45 | startPage(); | 53 | startPage(); |
| 54 | + | ||
| 55 | + JSONArray depts = redisCache.getCacheObject("CSUserDepartmentType"); | ||
| 56 | + | ||
| 57 | + JSONArray areas = redisCache.getCacheObject("areas"); | ||
| 58 | + | ||
| 59 | + if(areas == null){ | ||
| 60 | + areas = RemoteServerUtils.getAreas(); | ||
| 61 | + redisCache.setCacheObject("areas", areas); | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + if(depts == null){ | ||
| 65 | + Map<String, String> map = new HashMap<String, String>(); | ||
| 66 | + map.put("type", "CSUserDepartmentType"); | ||
| 67 | + depts = RemoteServerUtils.getDict(map); | ||
| 68 | + redisCache.setCacheObject("CSUserDepartmentType", depts); | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + | ||
| 72 | + for(Object object :depts){ | ||
| 73 | + JSONObject dept = (JSONObject) object; | ||
| 74 | + List<String> roles = SecurityUtils.getLoginUser().getUser().getRoleIds(); | ||
| 75 | + | ||
| 76 | + for(String role:roles){ | ||
| 77 | + if(dept.getString("code").equals(role)){ | ||
| 78 | + | ||
| 79 | + if(dept.getString("name").equals("事务中心")){ | ||
| 80 | + List<CaseOffline> list = caseOfflineService.selectCaseOfflineList(caseOffline); | ||
| 81 | + return getDataTable(list); | ||
| 82 | + } | ||
| 83 | + | ||
| 84 | + if(dept.getString("name").contains("渣土办")){ | ||
| 85 | + String deptName = dept.getString("name").replace("渣土办", ""); | ||
| 86 | + if(!deptName.isEmpty()){ | ||
| 87 | + for(Object obj:areas){ | ||
| 88 | + JSONObject area = (JSONObject)obj; | ||
| 89 | + | ||
| 90 | + if(area.getString("name").equals(deptName)){ | ||
| 91 | + | ||
| 92 | + caseOffline.setPlace(area.getString("code")); | ||
| 93 | + | ||
| 94 | + List<CaseOffline> list = caseOfflineService.selectCaseOfflineList(caseOffline); | ||
| 95 | + return getDataTable(list); | ||
| 96 | + } | ||
| 97 | + } | ||
| 98 | + } | ||
| 99 | + | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + } | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + | ||
| 106 | + caseOffline.setCreateBy(SecurityUtils.getUsername()); | ||
| 107 | + | ||
| 46 | List<CaseOffline> list = caseOfflineService.selectCaseOfflineList(caseOffline); | 108 | List<CaseOffline> list = caseOfflineService.selectCaseOfflineList(caseOffline); |
| 47 | return getDataTable(list); | 109 | return getDataTable(list); |
| 48 | } | 110 | } |
| @@ -98,7 +160,9 @@ public class CaseOfflineController extends BaseController | @@ -98,7 +160,9 @@ public class CaseOfflineController extends BaseController | ||
| 98 | @Log(title = "线下交办案卷", businessType = BusinessType.INSERT) | 160 | @Log(title = "线下交办案卷", businessType = BusinessType.INSERT) |
| 99 | @PostMapping | 161 | @PostMapping |
| 100 | public AjaxResult add(@RequestBody CaseOffline caseOffline) | 162 | public AjaxResult add(@RequestBody CaseOffline caseOffline) |
| 101 | - { | 163 | + { |
| 164 | + | ||
| 165 | + | ||
| 102 | return toAjax(caseOfflineService.insertCaseOffline(caseOffline)); | 166 | return toAjax(caseOfflineService.insertCaseOffline(caseOffline)); |
| 103 | } | 167 | } |
| 104 | 168 |
trash-workFlow/src/main/java/com/trash/caseOffline/service/impl/CaseOfflineServiceImpl.java
| @@ -6,12 +6,25 @@ import java.util.HashMap; | @@ -6,12 +6,25 @@ import java.util.HashMap; | ||
| 6 | import java.util.List; | 6 | import java.util.List; |
| 7 | import java.util.Map; | 7 | import java.util.Map; |
| 8 | 8 | ||
| 9 | +import com.trash.common.core.redis.RedisCache; | ||
| 9 | import com.trash.common.utils.DateUtils; | 10 | import com.trash.common.utils.DateUtils; |
| 11 | +import com.trash.common.utils.RemoteServerUtils; | ||
| 12 | +import com.trash.common.utils.SecurityUtils; | ||
| 10 | import com.trash.workflow.service.IWorkflowService; | 13 | import com.trash.workflow.service.IWorkflowService; |
| 11 | 14 | ||
| 12 | import org.springframework.beans.factory.annotation.Autowired; | 15 | import org.springframework.beans.factory.annotation.Autowired; |
| 13 | import org.springframework.stereotype.Service; | 16 | import org.springframework.stereotype.Service; |
| 17 | +import org.springframework.transaction.annotation.Transactional; | ||
| 18 | + | ||
| 14 | import com.trash.caseOffline.mapper.CaseOfflineMapper; | 19 | import com.trash.caseOffline.mapper.CaseOfflineMapper; |
| 20 | +import com.alibaba.fastjson.JSONArray; | ||
| 21 | +import com.alibaba.fastjson.JSONObject; | ||
| 22 | +import com.trash.business.domain.ConstructionCredit; | ||
| 23 | +import com.trash.business.domain.EarthsitesCredit; | ||
| 24 | +import com.trash.business.service.IConstructionCreditService; | ||
| 25 | +import com.trash.business.service.IEarthsitesCreditService; | ||
| 26 | +import com.trash.business.service.impl.ConstructionCreditServiceImpl; | ||
| 27 | +import com.trash.business.service.impl.EarthsitesCreditServiceImpl; | ||
| 15 | import com.trash.caseOffline.domain.CaseOffline; | 28 | import com.trash.caseOffline.domain.CaseOffline; |
| 16 | import com.trash.caseOffline.service.ICaseOfflineService; | 29 | import com.trash.caseOffline.service.ICaseOfflineService; |
| 17 | 30 | ||
| @@ -30,6 +43,17 @@ public class CaseOfflineServiceImpl implements ICaseOfflineService | @@ -30,6 +43,17 @@ public class CaseOfflineServiceImpl implements ICaseOfflineService | ||
| 30 | 43 | ||
| 31 | @Autowired | 44 | @Autowired |
| 32 | private IWorkflowService workflowservice; | 45 | private IWorkflowService workflowservice; |
| 46 | + | ||
| 47 | + | ||
| 48 | + @Autowired | ||
| 49 | + IConstructionCreditService constructionCredit; | ||
| 50 | + | ||
| 51 | + @Autowired | ||
| 52 | + IEarthsitesCreditService earthsitesCredit; | ||
| 53 | + | ||
| 54 | + @Autowired | ||
| 55 | + RedisCache redisCache; | ||
| 56 | + | ||
| 33 | /** | 57 | /** |
| 34 | * 查询线下交办案卷 | 58 | * 查询线下交办案卷 |
| 35 | * | 59 | * |
| @@ -54,6 +78,19 @@ public class CaseOfflineServiceImpl implements ICaseOfflineService | @@ -54,6 +78,19 @@ public class CaseOfflineServiceImpl implements ICaseOfflineService | ||
| 54 | return caseOfflineMapper.selectCaseOfflineList(caseOffline); | 78 | return caseOfflineMapper.selectCaseOfflineList(caseOffline); |
| 55 | } | 79 | } |
| 56 | 80 | ||
| 81 | + | ||
| 82 | + String[] typeName = { | ||
| 83 | + "渣土处置工地(含消纳场)的渣土运输车辆出场车身不洁,车轮带泥", | ||
| 84 | + "未洗车出场或者出场清洁不彻底", | ||
| 85 | + "渣土运输车辆货箱顶盖未按规定关闭到位或未按规定和标准装载渣土出场", | ||
| 86 | + "非核准车辆进入渣土处置工地运输渣土", | ||
| 87 | + "渣土处置工地未按规定时间开停工", | ||
| 88 | + "渣土处置工地洗车设施等破损、未正常使用及措施不到位的", | ||
| 89 | + "渣土处置工地、消纳场(含回填场)出入口两侧50米范围内出现渣土污染、污水外排等现象", | ||
| 90 | + "无许可消纳(工)", | ||
| 91 | + "无许可消纳(消)", | ||
| 92 | + "使用非专用车辆"}; | ||
| 93 | + | ||
| 57 | /** | 94 | /** |
| 58 | * 新增线下交办案卷 | 95 | * 新增线下交办案卷 |
| 59 | * | 96 | * |
| @@ -61,11 +98,61 @@ public class CaseOfflineServiceImpl implements ICaseOfflineService | @@ -61,11 +98,61 @@ public class CaseOfflineServiceImpl implements ICaseOfflineService | ||
| 61 | * @return 结果 | 98 | * @return 结果 |
| 62 | */ | 99 | */ |
| 63 | @Override | 100 | @Override |
| 101 | + @Transactional | ||
| 64 | public int insertCaseOffline(CaseOffline caseOffline) | 102 | public int insertCaseOffline(CaseOffline caseOffline) |
| 65 | { | 103 | { |
| 66 | caseOffline.setCreateTime(DateUtils.getNowDate()); | 104 | caseOffline.setCreateTime(DateUtils.getNowDate()); |
| 67 | - caseOfflineMapper.insertCaseOffline(caseOffline); | 105 | + caseOffline.setCreateBy(SecurityUtils.getUsername()); |
| 68 | 106 | ||
| 107 | + if(caseOffline.getObjectId() != null && Integer.parseInt(caseOffline.getType()) < 7){ | ||
| 108 | + JSONArray areas = redisCache.getCacheObject("areas"); | ||
| 109 | + | ||
| 110 | + if(areas == null){ | ||
| 111 | + areas = RemoteServerUtils.getAreas(); | ||
| 112 | + redisCache.setCacheObject("areas", areas); | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + String placeName = null; | ||
| 116 | + | ||
| 117 | + for(Object obj:areas){ | ||
| 118 | + JSONObject area = (JSONObject)obj; | ||
| 119 | + | ||
| 120 | + if(area.getString("code").equals(caseOffline.getPlace())){ | ||
| 121 | + | ||
| 122 | + placeName = area.getString("name"); | ||
| 123 | + break; | ||
| 124 | + } | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + if(caseOffline.getSiteType() == 0){ | ||
| 128 | + ConstructionCredit credit = new ConstructionCredit(); | ||
| 129 | + | ||
| 130 | + JSONObject object = RemoteServerUtils.getConstructionInfo(caseOffline.getObjectId()); | ||
| 131 | + | ||
| 132 | + credit.setObjectId(caseOffline.getObjectId()); | ||
| 133 | + credit.setLostCredit(1L); | ||
| 134 | + credit.setName(caseOffline.getSiteName()); | ||
| 135 | + credit.setReason(typeName[Integer.parseInt(caseOffline.getType())]); | ||
| 136 | + credit.setPlace(placeName); | ||
| 137 | + credit.setType(object.getString("cargoIdName")); | ||
| 138 | + constructionCredit.insertConstructionCredit(credit); | ||
| 139 | + }else if(caseOffline.getSiteType() == 1){ | ||
| 140 | + EarthsitesCredit credit = new EarthsitesCredit(); | ||
| 141 | + | ||
| 142 | + JSONObject object = RemoteServerUtils.getEarthSitesInfo(caseOffline.getObjectId()); | ||
| 143 | + | ||
| 144 | + credit.setObjectId(caseOffline.getObjectId()); | ||
| 145 | + credit.setLostCredit(1L); | ||
| 146 | + credit.setName(caseOffline.getSiteName()); | ||
| 147 | + credit.setReason(typeName[Integer.parseInt(caseOffline.getType())]); | ||
| 148 | + credit.setPlace(placeName); | ||
| 149 | + credit.setType(object.getString("typeName")); | ||
| 150 | + | ||
| 151 | + earthsitesCredit.insertEarthsitesCredit(credit); | ||
| 152 | + } | ||
| 153 | + } | ||
| 154 | + | ||
| 155 | + caseOfflineMapper.insertCaseOffline(caseOffline); | ||
| 69 | 156 | ||
| 70 | return workflowservice.createCaseOffline(caseOffline); | 157 | return workflowservice.createCaseOffline(caseOffline); |
| 71 | } | 158 | } |
trash-workFlow/src/main/java/com/trash/casefile/controller/ViolationCaseFileController.java
| @@ -7,6 +7,8 @@ import java.util.List; | @@ -7,6 +7,8 @@ import java.util.List; | ||
| 7 | import java.util.Map; | 7 | import java.util.Map; |
| 8 | 8 | ||
| 9 | import com.alibaba.fastjson.JSON; | 9 | import com.alibaba.fastjson.JSON; |
| 10 | +import com.alibaba.fastjson.JSONArray; | ||
| 11 | +import com.alibaba.fastjson.JSONObject; | ||
| 10 | import com.trash.casefile.domain.ViolationWarningInformation; | 12 | import com.trash.casefile.domain.ViolationWarningInformation; |
| 11 | import com.trash.casefile.domain.vo.ViolationCaseFileVo; | 13 | import com.trash.casefile.domain.vo.ViolationCaseFileVo; |
| 12 | import com.trash.casefile.domain.vo.ViolationWarningInformationVo; | 14 | import com.trash.casefile.domain.vo.ViolationWarningInformationVo; |
| @@ -18,12 +20,16 @@ import com.trash.common.annotation.Log; | @@ -18,12 +20,16 @@ import com.trash.common.annotation.Log; | ||
| 18 | import com.trash.common.core.controller.BaseController; | 20 | import com.trash.common.core.controller.BaseController; |
| 19 | import com.trash.common.core.domain.AjaxResult; | 21 | import com.trash.common.core.domain.AjaxResult; |
| 20 | import com.trash.common.enums.BusinessType; | 22 | import com.trash.common.enums.BusinessType; |
| 23 | +import com.trash.caseOffline.domain.CaseOffline; | ||
| 21 | import com.trash.casefile.domain.ViolationCaseFile; | 24 | import com.trash.casefile.domain.ViolationCaseFile; |
| 22 | import com.trash.casefile.service.IViolationCaseFileService; | 25 | import com.trash.casefile.service.IViolationCaseFileService; |
| 23 | import com.trash.common.utils.DateUtils; | 26 | import com.trash.common.utils.DateUtils; |
| 27 | +import com.trash.common.utils.RemoteServerUtils; | ||
| 24 | import com.trash.common.utils.SecurityUtils; | 28 | import com.trash.common.utils.SecurityUtils; |
| 25 | import com.trash.common.utils.poi.ExcelUtil; | 29 | import com.trash.common.utils.poi.ExcelUtil; |
| 26 | import com.trash.common.core.page.TableDataInfo; | 30 | import com.trash.common.core.page.TableDataInfo; |
| 31 | +import com.trash.common.core.redis.RedisCache; | ||
| 32 | + | ||
| 27 | import org.springframework.web.multipart.MultipartFile; | 33 | import org.springframework.web.multipart.MultipartFile; |
| 28 | 34 | ||
| 29 | /** | 35 | /** |
| @@ -39,6 +45,9 @@ public class ViolationCaseFileController extends BaseController | @@ -39,6 +45,9 @@ public class ViolationCaseFileController extends BaseController | ||
| 39 | @Autowired | 45 | @Autowired |
| 40 | private IViolationCaseFileService violationCaseFileService; | 46 | private IViolationCaseFileService violationCaseFileService; |
| 41 | 47 | ||
| 48 | + @Autowired | ||
| 49 | + RedisCache redisCache; | ||
| 50 | + | ||
| 42 | /** | 51 | /** |
| 43 | * 查询平台违规案卷列表 | 52 | * 查询平台违规案卷列表 |
| 44 | */ | 53 | */ |
| @@ -46,6 +55,67 @@ public class ViolationCaseFileController extends BaseController | @@ -46,6 +55,67 @@ public class ViolationCaseFileController extends BaseController | ||
| 46 | public TableDataInfo list(ViolationCaseFile violationCaseFile) | 55 | public TableDataInfo list(ViolationCaseFile violationCaseFile) |
| 47 | { | 56 | { |
| 48 | startPage(); | 57 | startPage(); |
| 58 | + | ||
| 59 | + JSONArray depts = redisCache.getCacheObject("CSUserDepartmentType"); | ||
| 60 | + | ||
| 61 | + JSONArray areas = redisCache.getCacheObject("areas"); | ||
| 62 | + | ||
| 63 | + if(areas == null){ | ||
| 64 | + areas = RemoteServerUtils.getAreas(); | ||
| 65 | + redisCache.setCacheObject("areas", areas); | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + if(depts == null){ | ||
| 69 | + Map<String, String> map = new HashMap<String, String>(); | ||
| 70 | + map.put("type", "CSUserDepartmentType"); | ||
| 71 | + depts = RemoteServerUtils.getDict(map); | ||
| 72 | + redisCache.setCacheObject("CSUserDepartmentType", depts); | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + | ||
| 76 | + for(Object object :depts){ | ||
| 77 | + JSONObject dept = (JSONObject) object; | ||
| 78 | + List<String> roles = SecurityUtils.getLoginUser().getUser().getRoleIds(); | ||
| 79 | + | ||
| 80 | + for(String role:roles){ | ||
| 81 | + if(dept.getString("code").equals(role)){ | ||
| 82 | + | ||
| 83 | + if(dept.getString("name").equals("事务中心")){ | ||
| 84 | + List<ViolationCaseFile> list = violationCaseFileService.selectViolationCaseFileList(violationCaseFile); | ||
| 85 | + return getDataTable(list); | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + if(dept.getString("name").contains("渣土办")){ | ||
| 89 | + String deptName = dept.getString("name").replace("渣土办", ""); | ||
| 90 | + if(!deptName.isEmpty()){ | ||
| 91 | + violationCaseFile.setOwningRegion(deptName); | ||
| 92 | + | ||
| 93 | + List<ViolationCaseFile> list = violationCaseFileService.selectViolationCaseFileList(violationCaseFile); | ||
| 94 | + return getDataTable(list); | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + | ||
| 98 | + } | ||
| 99 | + } | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + String companyName = null; | ||
| 104 | + JSONArray compnayList = redisCache.getCacheObject("companyList"); | ||
| 105 | + for(Object obj:compnayList){ | ||
| 106 | + JSONObject con = (JSONObject) obj; | ||
| 107 | + if(con.getString("abbreviation").equals(SecurityUtils.getUsername().replace("公司", ""))){ | ||
| 108 | + companyName = con.getString("name"); | ||
| 109 | + break; | ||
| 110 | + } | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + if(companyName!=null){ | ||
| 114 | + violationCaseFile.setCompanyName(companyName); | ||
| 115 | + }else{ | ||
| 116 | + violationCaseFile.setCreateBy(SecurityUtils.getUsername()); | ||
| 117 | + } | ||
| 118 | + | ||
| 49 | List<ViolationCaseFile> list = violationCaseFileService.selectViolationCaseFileList(violationCaseFile); | 119 | List<ViolationCaseFile> list = violationCaseFileService.selectViolationCaseFileList(violationCaseFile); |
| 50 | return getDataTable(list); | 120 | return getDataTable(list); |
| 51 | } | 121 | } |
trash-workFlow/src/main/java/com/trash/casefile/controller/ViolationWarningInformationController.java
| @@ -5,12 +5,16 @@ import java.util.ArrayList; | @@ -5,12 +5,16 @@ import java.util.ArrayList; | ||
| 5 | import java.util.Date; | 5 | import java.util.Date; |
| 6 | import java.util.HashMap; | 6 | import java.util.HashMap; |
| 7 | import java.util.List; | 7 | import java.util.List; |
| 8 | +import java.util.Map; | ||
| 8 | 9 | ||
| 9 | import com.alibaba.fastjson.JSON; | 10 | import com.alibaba.fastjson.JSON; |
| 11 | +import com.alibaba.fastjson.JSONArray; | ||
| 12 | +import com.alibaba.fastjson.JSONObject; | ||
| 10 | import com.fasterxml.jackson.annotation.JsonFormat; | 13 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 11 | import com.trash.casefile.domain.ViolationCaseFile; | 14 | import com.trash.casefile.domain.ViolationCaseFile; |
| 12 | import com.trash.casefile.domain.vo.ViolationWarningInformationVo; | 15 | import com.trash.casefile.domain.vo.ViolationWarningInformationVo; |
| 13 | import com.trash.common.utils.DateUtils; | 16 | import com.trash.common.utils.DateUtils; |
| 17 | +import com.trash.common.utils.RemoteServerUtils; | ||
| 14 | import com.trash.common.utils.SecurityUtils; | 18 | import com.trash.common.utils.SecurityUtils; |
| 15 | import com.trash.office.domain.LeaveApplication; | 19 | import com.trash.office.domain.LeaveApplication; |
| 16 | import com.trash.office.domain.UploadFile; | 20 | import com.trash.office.domain.UploadFile; |
| @@ -26,6 +30,8 @@ import com.trash.casefile.domain.ViolationWarningInformation; | @@ -26,6 +30,8 @@ import com.trash.casefile.domain.ViolationWarningInformation; | ||
| 26 | import com.trash.casefile.service.IViolationWarningInformationService; | 30 | import com.trash.casefile.service.IViolationWarningInformationService; |
| 27 | import com.trash.common.utils.poi.ExcelUtil; | 31 | import com.trash.common.utils.poi.ExcelUtil; |
| 28 | import com.trash.common.core.page.TableDataInfo; | 32 | import com.trash.common.core.page.TableDataInfo; |
| 33 | +import com.trash.common.core.redis.RedisCache; | ||
| 34 | + | ||
| 29 | import org.springframework.web.multipart.MultipartFile; | 35 | import org.springframework.web.multipart.MultipartFile; |
| 30 | 36 | ||
| 31 | /** | 37 | /** |
| @@ -41,6 +47,9 @@ public class ViolationWarningInformationController extends BaseController | @@ -41,6 +47,9 @@ public class ViolationWarningInformationController extends BaseController | ||
| 41 | @Autowired | 47 | @Autowired |
| 42 | private IViolationWarningInformationService violationWarningInformationService; | 48 | private IViolationWarningInformationService violationWarningInformationService; |
| 43 | 49 | ||
| 50 | + @Autowired | ||
| 51 | + RedisCache redisCache; | ||
| 52 | + | ||
| 44 | /** | 53 | /** |
| 45 | * 查询违规预警信息列表 | 54 | * 查询违规预警信息列表 |
| 46 | */ | 55 | */ |
| @@ -48,6 +57,68 @@ public class ViolationWarningInformationController extends BaseController | @@ -48,6 +57,68 @@ public class ViolationWarningInformationController extends BaseController | ||
| 48 | public TableDataInfo list(ViolationWarningInformation violationWarningInformation) | 57 | public TableDataInfo list(ViolationWarningInformation violationWarningInformation) |
| 49 | { | 58 | { |
| 50 | startPage(); | 59 | startPage(); |
| 60 | + | ||
| 61 | + | ||
| 62 | + JSONArray depts = redisCache.getCacheObject("CSUserDepartmentType"); | ||
| 63 | + | ||
| 64 | + JSONArray areas = redisCache.getCacheObject("areas"); | ||
| 65 | + | ||
| 66 | + if(areas == null){ | ||
| 67 | + areas = RemoteServerUtils.getAreas(); | ||
| 68 | + redisCache.setCacheObject("areas", areas); | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + if(depts == null){ | ||
| 72 | + Map<String, String> map = new HashMap<String, String>(); | ||
| 73 | + map.put("type", "CSUserDepartmentType"); | ||
| 74 | + depts = RemoteServerUtils.getDict(map); | ||
| 75 | + redisCache.setCacheObject("CSUserDepartmentType", depts); | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + | ||
| 79 | + for(Object object :depts){ | ||
| 80 | + JSONObject dept = (JSONObject) object; | ||
| 81 | + List<String> roles = SecurityUtils.getLoginUser().getUser().getRoleIds(); | ||
| 82 | + | ||
| 83 | + for(String role:roles){ | ||
| 84 | + if(dept.getString("code").equals(role)){ | ||
| 85 | + | ||
| 86 | + if(dept.getString("name").equals("事务中心")){ | ||
| 87 | + List<ViolationWarningInformation> list = violationWarningInformationService.selectViolationWarningInformationList(violationWarningInformation); | ||
| 88 | + return getDataTable(list); | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + if(dept.getString("name").contains("渣土办")){ | ||
| 92 | + String deptName = dept.getString("name").replace("渣土办", ""); | ||
| 93 | + if(!deptName.isEmpty()){ | ||
| 94 | + violationWarningInformation.setOwningRegion(deptName); | ||
| 95 | + List<ViolationWarningInformation> list = violationWarningInformationService.selectViolationWarningInformationList(violationWarningInformation); | ||
| 96 | + return getDataTable(list); | ||
| 97 | + } | ||
| 98 | + | ||
| 99 | + | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + } | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + String companyName = null; | ||
| 106 | + JSONArray compnayList = redisCache.getCacheObject("companyList"); | ||
| 107 | + for(Object obj:compnayList){ | ||
| 108 | + JSONObject con = (JSONObject) obj; | ||
| 109 | + if(con.getString("abbreviation").equals(SecurityUtils.getUsername().replace("公司", ""))){ | ||
| 110 | + companyName = con.getString("name"); | ||
| 111 | + break; | ||
| 112 | + } | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + if(companyName!=null){ | ||
| 116 | + violationWarningInformation.setCompanyName(companyName); | ||
| 117 | + }else{ | ||
| 118 | + violationWarningInformation.setCreateBy(SecurityUtils.getUsername()); | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + | ||
| 51 | List<ViolationWarningInformation> list = violationWarningInformationService.selectViolationWarningInformationList(violationWarningInformation); | 122 | List<ViolationWarningInformation> list = violationWarningInformationService.selectViolationWarningInformationList(violationWarningInformation); |
| 52 | return getDataTable(list); | 123 | return getDataTable(list); |
| 53 | } | 124 | } |
trash-workFlow/src/main/java/com/trash/casefile/kafka/Consumer.java
| @@ -61,7 +61,7 @@ public class Consumer { | @@ -61,7 +61,7 @@ public class Consumer { | ||
| 61 | String[] code = {"44030020=工地预警-未报开工作业", "44030021=工地预警-视频设备离线超时报警", "44030022=工地预警-三无车辆进入工地", "44030023=工地预警-未按时间作业", | 61 | String[] code = {"44030020=工地预警-未报开工作业", "44030021=工地预警-视频设备离线超时报警", "44030022=工地预警-三无车辆进入工地", "44030023=工地预警-未按时间作业", |
| 62 | "44030024=消纳场预警-未报开工作业", "44030025=消纳场预警-视频设备离线超时报警", "44030026=消纳场预警-三无车辆进入消纳场", "44030027=消纳场预警-未到指定的消纳场作业", | 62 | "44030024=消纳场预警-未报开工作业", "44030025=消纳场预警-视频设备离线超时报警", "44030026=消纳场预警-三无车辆进入消纳场", "44030027=消纳场预警-未到指定的消纳场作业", |
| 63 | "44030028=离线运输报警(工)", "44030029=离线运输报警(消)", "44030030=未激活车辆作业", "44030031=未核准作业车辆作业", "44030032=未按线路行驶", | 63 | "44030028=离线运输报警(工)", "44030029=离线运输报警(消)", "44030030=未激活车辆作业", "44030031=未核准作业车辆作业", "44030032=未按线路行驶", |
| 64 | - "44030033=闯禁行驶", "44030034=失信车辆作业"}; | 64 | + "44030033=闯禁行驶", "44030034=失信车辆作业", "44030035=卫星定位异常"}; |
| 65 | 65 | ||
| 66 | //卫星定位异常 | 66 | //卫星定位异常 |
| 67 | 67 |
trash-workFlow/src/main/java/com/trash/office/service/impl/LeaveApplicationServiceImpl.java
| @@ -227,7 +227,14 @@ public class LeaveApplicationServiceImpl implements ILeaveApplicationService | @@ -227,7 +227,14 @@ public class LeaveApplicationServiceImpl implements ILeaveApplicationService | ||
| 227 | workflow.setState("0"); | 227 | workflow.setState("0"); |
| 228 | workflow.setCreateBy(SecurityUtils.getUsername()); | 228 | workflow.setCreateBy(SecurityUtils.getUsername()); |
| 229 | workflow.setCreateTime(DateUtils.getNowDate()); | 229 | workflow.setCreateTime(DateUtils.getNowDate()); |
| 230 | - if(roleId!=1 && !"0.5".equals(numberDays)){//判断非部长 && 请假天数不等于0.5天 | 230 | + |
| 231 | + if("公休假".equals(leaveApplication.getType())){ | ||
| 232 | + if(roleId == 1){ | ||
| 233 | + workflowService.createLeaveWorkFlow(workflow,5); | ||
| 234 | + }else{ | ||
| 235 | + workflowService.createLeaveWorkFlow(workflow,4); | ||
| 236 | + } | ||
| 237 | + }else if(roleId!=1 && !"0.5".equals(numberDays)){//判断非部长 && 请假天数不等于0.5天 | ||
| 231 | workflowService.createLeaveWorkFlow(workflow,0); | 238 | workflowService.createLeaveWorkFlow(workflow,0); |
| 232 | }else if(roleId==1 && !"0.5".equals(numberDays)){//判断部长 && 请假天数不等于0.5天 | 239 | }else if(roleId==1 && !"0.5".equals(numberDays)){//判断部长 && 请假天数不等于0.5天 |
| 233 | workflowService.createLeaveWorkFlow(workflow,1); | 240 | workflowService.createLeaveWorkFlow(workflow,1); |
trash-workFlow/src/main/java/com/trash/workflow/service/impl/WorkflowServiceImpl.java
| @@ -213,7 +213,7 @@ public class WorkflowServiceImpl implements IWorkflowService { | @@ -213,7 +213,7 @@ public class WorkflowServiceImpl implements IWorkflowService { | ||
| 213 | awf.setControlName("发起人"); | 213 | awf.setControlName("发起人"); |
| 214 | awf.setFormKey("CREATED"); | 214 | awf.setFormKey("CREATED"); |
| 215 | awf.setTaskNodeName(user.getUserName() + "发起"); | 215 | awf.setTaskNodeName(user.getUserName() + "发起"); |
| 216 | - awf.setControlValue(workflow.getTitle()); | 216 | + awf.setControlValue(workflow.getReason()); |
| 217 | 217 | ||
| 218 | awfServer.insertActWorkflowFormData(awf); | 218 | awfServer.insertActWorkflowFormData(awf); |
| 219 | return awf; | 219 | return awf; |
| @@ -275,8 +275,33 @@ public class WorkflowServiceImpl implements IWorkflowService { | @@ -275,8 +275,33 @@ public class WorkflowServiceImpl implements IWorkflowService { | ||
| 275 | ActWorkflowFormData awf = null; | 275 | ActWorkflowFormData awf = null; |
| 276 | try { | 276 | try { |
| 277 | String name = "报工自查:" + supervision.getName(); | 277 | String name = "报工自查:" + supervision.getName(); |
| 278 | + | ||
| 279 | + | ||
| 280 | + JSONArray areas = redisCache.getCacheObject("areas"); | ||
| 281 | + | ||
| 282 | + int route = 0; | ||
| 283 | + | ||
| 284 | + | ||
| 285 | + if(areas == null){ | ||
| 286 | + areas = RemoteServerUtils.getAreas(); | ||
| 287 | + redisCache.setCacheObject("areas", areas); | ||
| 288 | + } | ||
| 289 | + | ||
| 290 | + | ||
| 291 | + for(Object obj : areas){ | ||
| 292 | + JSONObject jsonObject = (JSONObject) obj; | ||
| 293 | + if(supervision.getPlace().equals(jsonObject.getString("code"))){ | ||
| 294 | + if(jsonObject.getString("name").contains("湘江新区")){ | ||
| 295 | + route = 1; | ||
| 296 | + } | ||
| 297 | + break; | ||
| 298 | + } | ||
| 299 | + } | ||
| 300 | + | ||
| 301 | + | ||
| 278 | processInstance = processRuntime.start(ProcessPayloadBuilder.start() | 302 | processInstance = processRuntime.start(ProcessPayloadBuilder.start() |
| 279 | .withProcessDefinitionKey("workflow_threestep").withName(name) | 303 | .withProcessDefinitionKey("workflow_threestep").withName(name) |
| 304 | + .withVariable("route", route) | ||
| 280 | .withBusinessKey("workflow_threestep:" + supervision.getId()).build()); | 305 | .withBusinessKey("workflow_threestep:" + supervision.getId()).build()); |
| 281 | 306 | ||
| 282 | PorcThreeStepTask(processInstance, supervision.getPlace()); | 307 | PorcThreeStepTask(processInstance, supervision.getPlace()); |
trash-workFlow/src/main/resources/mapper/SupervisionThreestepMapper.xml
| @@ -344,6 +344,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -344,6 +344,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 344 | <if test="createBy != null"> #{createBy},</if> | 344 | <if test="createBy != null"> #{createBy},</if> |
| 345 | </trim> | 345 | </trim> |
| 346 | </insert> | 346 | </insert> |
| 347 | + | ||
| 348 | + | ||
| 349 | + | ||
| 350 | + <update id="updateStatusByObjectAndType" parameterType="SupervisionThreestep"> | ||
| 351 | + update supervision_threestep | ||
| 352 | + <trim prefix="SET" suffixOverrides=","> | ||
| 353 | + <if test="status != null">status = #{status},</if> | ||
| 354 | + </trim> | ||
| 355 | + <where> | ||
| 356 | + and object_id = #{objectId} | ||
| 357 | + and type = #{type} | ||
| 358 | + and self_check_time BETWEEN #{workStartTime} and #{workEndTime} | ||
| 359 | + </where> | ||
| 360 | + </update> | ||
| 361 | + | ||
| 362 | + | ||
| 347 | 363 | ||
| 348 | <update id="updateSupervisionThreestep" parameterType="SupervisionThreestep"> | 364 | <update id="updateSupervisionThreestep" parameterType="SupervisionThreestep"> |
| 349 | update supervision_threestep | 365 | update supervision_threestep |
trash-workFlow/src/main/resources/mapper/ThreestepHistoryMapper.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | +<!DOCTYPE mapper | ||
| 3 | +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 4 | +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
| 5 | +<mapper namespace="com.trash.business.mapper.ThreestepHistoryMapper"> | ||
| 6 | + | ||
| 7 | + <resultMap type="ThreestepHistory" id="ThreestepHistoryResult"> | ||
| 8 | + <result property="id" column="id" /> | ||
| 9 | + <result property="name" column="name" /> | ||
| 10 | + <result property="projectType" column="project_type" /> | ||
| 11 | + <result property="type" column="type" /> | ||
| 12 | + <result property="place" column="place" /> | ||
| 13 | + <result property="reason" column="reason" /> | ||
| 14 | + <result property="status" column="status" /> | ||
| 15 | + <result property="objectId" column="object_id" /> | ||
| 16 | + <result property="createBy" column="create_by" /> | ||
| 17 | + <result property="createTime" column="create_time" /> | ||
| 18 | + <result property="person" column="person" /> | ||
| 19 | + <result property="personNumber" column="person_number" /> | ||
| 20 | + <result property="person1" column="person1" /> | ||
| 21 | + <result property="person1Number" column="person1_number" /> | ||
| 22 | + </resultMap> | ||
| 23 | + | ||
| 24 | + <sql id="selectThreestepHistoryVo"> | ||
| 25 | + select id, name, project_type,type, place, reason, status, object_id, create_by, create_time, person, person_number, person1, person1_number from threestep_history | ||
| 26 | + </sql> | ||
| 27 | + | ||
| 28 | + <select id="selectThreestepHistoryList" parameterType="ThreestepHistory" resultMap="ThreestepHistoryResult"> | ||
| 29 | + <include refid="selectThreestepHistoryVo"/> | ||
| 30 | + <where> | ||
| 31 | + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> | ||
| 32 | + <if test="place != null and place != ''"> and place = #{place}</if> | ||
| 33 | + <if test="type != -1"> and type = #{type}</if> | ||
| 34 | + <if test="status != null and status != ''"> and status = #{status}</if> | ||
| 35 | + </where> | ||
| 36 | + </select> | ||
| 37 | + | ||
| 38 | + <select id="selectThreestepHistoryById" parameterType="Long" resultMap="ThreestepHistoryResult"> | ||
| 39 | + <include refid="selectThreestepHistoryVo"/> | ||
| 40 | + where id = #{id} | ||
| 41 | + </select> | ||
| 42 | + | ||
| 43 | + <insert id="insertThreestepHistory" parameterType="ThreestepHistory" useGeneratedKeys="true" keyProperty="id"> | ||
| 44 | + insert into threestep_history | ||
| 45 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
| 46 | + <if test="name != null">name,</if> | ||
| 47 | + <if test="type != null">type,</if> | ||
| 48 | + <if test="projectType != null">project_type,</if> | ||
| 49 | + <if test="place != null">place,</if> | ||
| 50 | + <if test="reason != null">reason,</if> | ||
| 51 | + <if test="status != null">status,</if> | ||
| 52 | + <if test="objectId != null">object_id,</if> | ||
| 53 | + <if test="createBy != null">create_by,</if> | ||
| 54 | + <if test="createTime != null">create_time,</if> | ||
| 55 | + <if test="person != null">person,</if> | ||
| 56 | + <if test="personNumber != null">person_number,</if> | ||
| 57 | + <if test="person1 != null">person1,</if> | ||
| 58 | + <if test="person1Number != null">person1_number,</if> | ||
| 59 | + </trim> | ||
| 60 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
| 61 | + <if test="name != null">#{name},</if> | ||
| 62 | + <if test="type != null">#{type},</if> | ||
| 63 | + <if test="projectType != null">#{projectType},</if> | ||
| 64 | + <if test="place != null">#{place},</if> | ||
| 65 | + <if test="reason != null">#{reason},</if> | ||
| 66 | + <if test="status != null">#{status},</if> | ||
| 67 | + <if test="objectId != null">#{objectId},</if> | ||
| 68 | + <if test="createBy != null">#{createBy},</if> | ||
| 69 | + <if test="createTime != null">#{createTime},</if> | ||
| 70 | + <if test="person != null">#{person},</if> | ||
| 71 | + <if test="personNumber != null">#{personNumber},</if> | ||
| 72 | + <if test="person1 != null">#{person1},</if> | ||
| 73 | + <if test="person1Number != null">#{person1Number},</if> | ||
| 74 | + </trim> | ||
| 75 | + </insert> | ||
| 76 | + | ||
| 77 | + <update id="updateThreestepHistory" parameterType="ThreestepHistory"> | ||
| 78 | + update threestep_history | ||
| 79 | + <trim prefix="SET" suffixOverrides=","> | ||
| 80 | + <if test="name != null">name = #{name},</if> | ||
| 81 | + <if test="type != null">type = #{type},</if> | ||
| 82 | + <if test="projectType != null">project_type = #{projectType},</if> | ||
| 83 | + <if test="place != null">place = #{place},</if> | ||
| 84 | + <if test="reason != null">reason = #{reason},</if> | ||
| 85 | + <if test="status != null">status = #{status},</if> | ||
| 86 | + <if test="objectId != null">object_id = #{objectId},</if> | ||
| 87 | + <if test="createBy != null">create_by = #{createBy},</if> | ||
| 88 | + <if test="createTime != null">create_time = #{createTime},</if> | ||
| 89 | + <if test="person != null">person = #{person},</if> | ||
| 90 | + <if test="personNumber != null">person_number = #{personNumber},</if> | ||
| 91 | + <if test="person1 != null">person1 = #{person1},</if> | ||
| 92 | + <if test="person1Number != null">person1_number = #{person1Number},</if> | ||
| 93 | + </trim> | ||
| 94 | + where id = #{id} | ||
| 95 | + </update> | ||
| 96 | + | ||
| 97 | + <delete id="deleteThreestepHistoryById" parameterType="Long"> | ||
| 98 | + delete from threestep_history where id = #{id} | ||
| 99 | + </delete> | ||
| 100 | + | ||
| 101 | + <delete id="deleteThreestepHistoryByIds" parameterType="String"> | ||
| 102 | + delete from threestep_history where id in | ||
| 103 | + <foreach item="id" collection="array" open="(" separator="," close=")"> | ||
| 104 | + #{id} | ||
| 105 | + </foreach> | ||
| 106 | + </delete> | ||
| 107 | + | ||
| 108 | +</mapper> | ||
| 0 | \ No newline at end of file | 109 | \ No newline at end of file |
trash-workFlow/src/main/resources/mapper/TruckActivateMapper.xml
| @@ -159,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -159,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 159 | </update> | 159 | </update> |
| 160 | 160 | ||
| 161 | <update id="endAllTurckUnActive" parameterType="TruckActivate"> | 161 | <update id="endAllTurckUnActive" parameterType="TruckActivate"> |
| 162 | - update truck_activate set status = 1; | 162 | + update truck_activate set status = 1 where create_time < DATE_FORMAT(NOW(),"%y-%m-%d 08:00:00") |
| 163 | </update> | 163 | </update> |
| 164 | 164 | ||
| 165 | 165 | ||
| @@ -172,6 +172,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -172,6 +172,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 172 | 172 | ||
| 173 | </delete> | 173 | </delete> |
| 174 | 174 | ||
| 175 | + <select id="getTruckListByObjects" parameterType="TruckActivate" resultMap="TruckActivateResult"> | ||
| 176 | + <include refid="selectTruckActivateVo"/> | ||
| 177 | + where status = 0 and object_id in | ||
| 178 | + <foreach item="id" collection="cIds" open="(" separator="," close=")"> | ||
| 179 | + #{id} | ||
| 180 | + </foreach> | ||
| 181 | + </select> | ||
| 182 | + | ||
| 175 | <select id="selectTodayTruckByObjIds" parameterType="String" resultMap="TruckActivateResult"> | 183 | <select id="selectTodayTruckByObjIds" parameterType="String" resultMap="TruckActivateResult"> |
| 176 | <include refid="selectTruckActivateVo"/> | 184 | <include refid="selectTruckActivateVo"/> |
| 177 | where status = 0 and object_id in | 185 | where status = 0 and object_id in |