Commit 21c52f23567ec96db89914a7341ce4622002d65c

Authored by youxiw2000
1 parent 92b780cb

m

trash-framework/src/main/java/com/trash/framework/web/service/SysLoginService.java
... ... @@ -199,22 +199,7 @@ public class SysLoginService
199 199  
200 200 rolStrings.add(uId.getString("departmentType"));
201 201  
202   - if(user.getCompanyName() == null){
203   - for(Object object :depts){
204   - JSONObject depart = (JSONObject) object;
205   -
206   - if(depart.getString("code").equals(uId.getString("departmentType"))){
207   - if(depart.getString("name").equals("事务中心")){
208   - user.setCompanyName("事务中心");
209   - break;
210   - }
211   - if(depart.getString("name").contains("渣土办")){
212   - user.setCompanyName("渣土办");
213   - user.setAreaCode(depart.getString("code"));
214   - }
215   - }
216   - }
217   - }
  202 +
218 203 }
219 204  
220 205 user.setPostIds(poStrings);
... ... @@ -231,7 +216,6 @@ public class SysLoginService
231 216 }
232 217  
233 218  
234   - if(user.getCompanyName() == null){
235 219 JSONArray compnayList = redisCache.getCacheObject("companyList");
236 220 for(Object obj:compnayList){
237 221 JSONObject con = (JSONObject) obj;
... ... @@ -243,7 +227,6 @@ public class SysLoginService
243 227  
244 228 }
245 229  
246   - }
247 230  
248 231 JSONArray jsonArray = (JSONArray)RemoteServerUtils.getAuth(token);
249 232 if(jsonArray != null){
... ...
trash-ui/dist.zip
No preview for this file type
trash-ui/src/api/caseoffline.js
... ... @@ -328,13 +328,24 @@ export default {
328 328 },
329 329 /** 导出按钮操作 */
330 330 handleExport() {
331   - const queryParams = this.queryParams;
  331 + if(this.queryParams.createTime){
  332 + this.queryParams.startTime = this.queryParams.createTime[0];
  333 + this.queryParams.endTime = this.queryParams.createTime[1];
  334 + }
  335 +
  336 + const query = {};
  337 +
  338 + for(var i in this.queryParams){
  339 + query[i] = this.queryParams[i];
  340 + }
  341 +
  342 + query.createTime = null;
332 343 this.$confirm('是否确认导出所有线下交办案卷数据项?', "警告", {
333 344 confirmButtonText: "确定",
334 345 cancelButtonText: "取消",
335 346 type: "warning"
336 347 }).then(function() {
337   - return exportCaseOffline(queryParams);
  348 + return exportCaseOffline(query);
338 349 }).then(response => {
339 350 this.download(response.message);
340 351 })
... ...
trash-ui/src/api/truck_active.js
... ... @@ -124,17 +124,17 @@ export default {
124 124 }
125 125 }
126 126 }
127   -
  127 +
128 128 let query = {
129 129 page:1,
130 130 size:99999
131 131 }
132   -
  132 +
133 133 companyList(query).then(res=>{
134 134 this.remoteCompanys = res.result.list;
135   -
  135 +
136 136 });
137   -
  137 +
138 138 this.getList(0);
139 139 },
140 140 methods: {
... ... @@ -358,11 +358,7 @@ export default {
358 358 handleAdd() {
359 359 this.reset();
360 360 this.open = true;
361   - this.title = "添加车辆激活";
362   - if(this.$store.getters.user.companyName && this.$store.getters.user.companyName != "渣土办" && this.$store.getters.user.companyName != "事务中心"){
363   - this.simpleName = this.$store.getters.user.companyName;
364   - this.form.company = this.simpleName;
365   - }
  361 + this.title = "添加车辆激活";
366 362 },
367 363 /** 修改按钮操作 */
368 364 handleUpdate(row) {
... ...
trash-ui/src/api/vio_casefile.js
... ... @@ -400,13 +400,25 @@ export default {
400 400 },
401 401 /** 导出按钮操作 */
402 402 handleExport() {
403   - const queryParams = this.queryParams;
  403 + if(this.queryParams.createTime){
  404 + this.queryParams.startTime = this.queryParams.createTime[0];
  405 + this.queryParams.endTime = this.queryParams.createTime[1];
  406 + }
  407 +
  408 + const query = {};
  409 +
  410 + for(var i in this.queryParams){
  411 + query[i] = this.queryParams[i];
  412 + }
  413 +
  414 + query.createTime = null;
  415 +
404 416 this.$confirm('是否确认导出所有平台违规案卷数据项?', "警告", {
405 417 confirmButtonText: "确定",
406 418 cancelButtonText: "取消",
407 419 type: "warning"
408 420 }).then(function () {
409   - return exportViolationCaseFile(queryParams);
  421 + return exportViolationCaseFile(query);
410 422 }).then(response => {
411 423 this.download(response.message);
412 424 })
... ...
trash-ui/src/api/warningInfo.js
... ... @@ -439,14 +439,27 @@ export default {
439 439 })
440 440 },
441 441 /** 导出按钮操作 */
442   - handleExport() {
443   - const queryParams = this.queryParams;
  442 + handleExport() {
  443 +
  444 + if(this.queryParams.createTime){
  445 + this.queryParams.startTime = this.queryParams.createTime[0];
  446 + this.queryParams.endTime = this.queryParams.createTime[1];
  447 + }
  448 +
  449 + const query = {};
  450 +
  451 + for(var i in this.queryParams){
  452 + query[i] = this.queryParams[i];
  453 + }
  454 +
  455 + query.createTime = null;
  456 +
444 457 this.$confirm('是否确认导出所有违规预警信息数据项?', "警告", {
445 458 confirmButtonText: "确定",
446 459 cancelButtonText: "取消",
447 460 type: "warning"
448 461 }).then(function() {
449   - return exportViolationWarningInformation(queryParams);
  462 + return exportViolationWarningInformation(query);
450 463 }).then(response => {
451 464 this.download(response.message);
452 465 })
... ...
trash-ui/src/views/business/truckActivate/index.vue
... ... @@ -129,13 +129,12 @@
129 129 :label="item.name"
130 130 :value="item.name"
131 131 :title="item.name"
132   - v-if="!simpleName || simpleName == item.name"
133 132 />
134 133 </el-select>
135 134 </el-form-item>
136 135 <el-form-item label="车牌号" prop="licensePlate">
137 136 <el-input v-model="truckName" />
138   - <el-checkbox-group v-model="form.licensePlate">
  137 + <el-checkbox-group v-model="form.licensePlate" v-if="truckList.length > 0">
139 138 <el-checkbox @change="selectAll">全选</el-checkbox>
140 139  
141 140 <el-checkbox v-if="(!truckName || item.licenseplateNo.indexOf(truckName) > -1) && (form.company && form.company == item.companyName)"
... ...
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
... ... @@ -619,29 +619,16 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
619 619 List<SupervisionThreestep> data = new ArrayList<>();
620 620  
621 621 String companyName = SecurityUtils.getLoginUser().getUser().getCompanyName();
622   -
623   - List<SupervisionThreestep> threesteps = supervisionThreestepMapper.selectTodayDataList(supervisionThreestep);
624 622  
625   -
626   - if (SecurityUtils.getLoginUser().getUser().getConAreas().size() > 0 || SecurityUtils.getLoginUser().getUser().getConList().size() > 0) {
627   -
628   -
629   - List<String> idList = SecurityUtils.getLoginUser().getUser().getConList();
630   -
631   - for(SupervisionThreestep ts :threesteps){
  623 + if(companyName != null){
  624 + supervisionThreestep.setCompanys(companyName);
  625 + }
  626 +
  627 + List<SupervisionThreestep> threesteps = supervisionThreestepMapper.selectTodayDataList(supervisionThreestep);
632 628  
633   - List<String> cArea = SecurityUtils.getLoginUser().getUser().getConAreas();
634   -
635   - if(cArea.indexOf(ts.getPlace()) > -1 || idList.indexOf(ts.getObjectId()) > -1){
636   - data.add(ts);
637   - }
638   -
639   - }
640   -
641   - }
642 629  
643 630  
644   - return data;
  631 + return threesteps;
645 632  
646 633  
647 634 }
... ...
trash-workFlow/src/main/resources/mapper/TruckActivateMapper.xml
... ... @@ -57,26 +57,8 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
57 57 <if test="activateStatus == 0 "> and activate_time is null</if>
58 58 <if test="activateStatus == 1 "> and activate_time is not null</if>
59 59 <if test="createTime != null "> and DATE_FORMAT(create_time,("%y%m%d")) = DATE_FORMAT(#{createTime},("%y%m%d"))</if>
60   -
61   - <if test="cIds != null and ids != null and cIds.size() > 0 and ids.size() > 0">and (
62   - construction_id in
63   - <foreach item="id" collection="cIds" open="(" separator="," close=")">
64   - #{id}
65   - </foreach>
66   - or object_id in
67   - <foreach item="id" collection="ids" open="(" separator="," close=")">
68   - #{id}
69   - </foreach>
70   - )
71   -
72   - </if>
73   - <if test="cIds != null and ids != null and cIds.size() > 0 and ids.size() == 0">
74   - and construction_id in
75   - <foreach item="id" collection="cIds" open="(" separator="," close=")">
76   - #{id}
77   - </foreach>
78   - </if>
79   - <if test="cIds != null and ids != null and cIds.size() == 0 and ids.size() > 0">
  60 +
  61 + <if test="ids != null and ids.size() > 0">
80 62 and object_id in
81 63 <foreach item="id" collection="ids" open="(" separator="," close=")">
82 64 #{id}
... ...