Commit 2ee4f101d0248abb7b35649c7d9cb79cd82c2131

Authored by youxiw2000
1 parent 96a9eb07

m

trash-framework/src/main/java/com/trash/framework/web/service/SysLoginService.java
@@ -227,12 +227,10 @@ public class SysLoginService { @@ -227,12 +227,10 @@ public class SysLoginService {
227 for(Object obj:streets){ 227 for(Object obj:streets){
228 JSONObject jsonObject = (JSONObject) obj; 228 JSONObject jsonObject = (JSONObject) obj;
229 if(jsonObject.getString("level").equals("4")){ 229 if(jsonObject.getString("level").equals("4")){
230 - streetsMap.get(jsonObject.getString("pid")).add(jsonObject.getString("name")); 230 + streetsMap.get(jsonObject.getString("pid")).add(jsonObject.getString("id"));
231 } 231 }
232 } 232 }
233 233
234 -  
235 -  
236 if (jsonArray != null) { 234 if (jsonArray != null) {
237 235
238 236
@@ -278,14 +276,8 @@ public class SysLoginService { @@ -278,14 +276,8 @@ public class SysLoginService {
278 if (json.getJSONArray("sourceIds") != null) { 276 if (json.getJSONArray("sourceIds") != null) {
279 List<String> companyIds = json.getJSONArray("sourceIds").toJavaList(String.class); 277 List<String> companyIds = json.getJSONArray("sourceIds").toJavaList(String.class);
280 278
281 - for(String id:companyIds){  
282 - for(Object sObj:streets){  
283 - JSONObject jsonObject = (JSONObject) sObj;  
284 - if(jsonObject.getString("id").equals(id)){  
285 - user.getStreetsList().add(jsonObject.getString("name"));  
286 - }  
287 - }  
288 - } 279 + user.getStreetsList().addAll(companyIds);
  280 +
289 } 281 }
290 if (json.getJSONArray("adCodes") != null) { 282 if (json.getJSONArray("adCodes") != null) {
291 List<String> areas = json.getJSONArray("adCodes").toJavaList(String.class); 283 List<String> areas = json.getJSONArray("adCodes").toJavaList(String.class);
trash-ui/src/api/three_step.js
@@ -109,7 +109,8 @@ export default { @@ -109,7 +109,8 @@ export default {
109 companyTrucks: null, 109 companyTrucks: null,
110 status:null, 110 status:null,
111 workStartTime:null, 111 workStartTime:null,
112 - workEndTime:null, 112 + workEndTime:null,
  113 + checkStatus:null
113 }, 114 },
114 // 表单参数 115 // 表单参数
115 form: { 116 form: {
@@ -605,6 +606,7 @@ export default { @@ -605,6 +606,7 @@ export default {
605 this.queryParams.pageStatus = tabIdx; 606 this.queryParams.pageStatus = tabIdx;
606 this.queryParams.status = null; 607 this.queryParams.status = null;
607 this.queryParams.his = null; 608 this.queryParams.his = null;
  609 + this.queryParams.checkStatus = null;
608 610
609 getNames(this.queryParams).then(res => { 611 getNames(this.queryParams).then(res => {
610 612
trash-ui/src/views/business/threestep/index.vue
@@ -48,6 +48,12 @@ @@ -48,6 +48,12 @@
48 value-format="yyyy-MM-dd HH:mm:ss" placeholder="开始时间"> 48 value-format="yyyy-MM-dd HH:mm:ss" placeholder="开始时间">
49 </el-date-picker> 49 </el-date-picker>
50 </el-form-item> 50 </el-form-item>
  51 + <el-form-item label="抽查状态" prop="checkStatus" v-if="this.queryParams.his==1">
  52 + <el-select v-model="queryParams.checkStatus" placeholder="请选择抽查状态" size="small">
  53 + <el-option label="未抽查" value="0" />
  54 + <el-option label="已抽查" value="1" />
  55 + </el-select>
  56 + </el-form-item>
51 57
52 58
53 <el-form-item> 59 <el-form-item>
trash-ui/src/views/h5/threestep/index.vue
@@ -34,6 +34,12 @@ @@ -34,6 +34,12 @@
34 <el-form-item> 34 <el-form-item>
35 <el-button type="primary" size="mini" @click="handleQuery">搜索</el-button> 35 <el-button type="primary" size="mini" @click="handleQuery">搜索</el-button>
36 <el-button size="mini" @click="resetQuery">重置</el-button> 36 <el-button size="mini" @click="resetQuery">重置</el-button>
  37 + </el-form-item>
  38 + <el-form-item label="抽查状态" prop="checkStatus" v-if="this.queryParams.his==1">
  39 + <el-select v-model="queryParams.checkStatus" placeholder="请选择抽查状态" size="small">
  40 + <el-option label="未抽查" value="0" />
  41 + <el-option label="已抽查" value="1" />
  42 + </el-select>
37 </el-form-item> 43 </el-form-item>
38 </el-form> 44 </el-form>
39 45
trash-workFlow/src/main/java/com/trash/business/domain/SupervisionThreestep.java
@@ -138,10 +138,20 @@ public class SupervisionThreestep extends BaseEntity @@ -138,10 +138,20 @@ public class SupervisionThreestep extends BaseEntity
138 private String attchItem2; 138 private String attchItem2;
139 private String attchItem3; 139 private String attchItem3;
140 140
  141 + private String checkStatus;
  142 +
141 private String[] places; 143 private String[] places;
142 144
143 145
144 - public String[] getPlaces() { 146 + public String getCheckStatus() {
  147 + return checkStatus;
  148 + }
  149 +
  150 + public void setCheckStatus(String checkStatus) {
  151 + this.checkStatus = checkStatus;
  152 + }
  153 +
  154 + public String[] getPlaces() {
145 return places; 155 return places;
146 } 156 }
147 157
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
@@ -196,7 +196,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer @@ -196,7 +196,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
196 if (ids.size() == 0) { 196 if (ids.size() == 0) {
197 return list; 197 return list;
198 } 198 }
199 - 199 +
200 list = supervisionThreestepMapper.selectSupervisionThreestepList(supervisionThreestep); 200 list = supervisionThreestepMapper.selectSupervisionThreestepList(supervisionThreestep);
201 if (supervisionThreestep.getHis() != null && supervisionThreestep.getHis().equals("2")) { 201 if (supervisionThreestep.getHis() != null && supervisionThreestep.getHis().equals("2")) {
202 202
trash-workFlow/src/main/resources/mapper/SupervisionThreestepMapper.xml
@@ -133,6 +133,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -133,6 +133,9 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
133 <if test="phone != null and phone != ''"> and phone = #{phone}</if> 133 <if test="phone != null and phone != ''"> and phone = #{phone}</if>
134 <if test="status != null"> and status = #{status}</if> 134 <if test="status != null"> and status = #{status}</if>
135 <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> 135 <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
  136 + <if test="checkStatus != null and checkStatus==1 "> and check_end_time is not null</if>
  137 + <if test="checkStatus != null and checkStatus==0 "> and check_end_time is null</if>
  138 +
136 <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and 139 <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and
137 #{workEndTime}</if> 140 #{workEndTime}</if>
138 141
@@ -149,7 +152,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -149,7 +152,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
149 close=")"> 152 close=")">
150 #{id} 153 #{id}
151 </foreach> 154 </foreach>
152 - </if> 155 + </if>
153 </where> 156 </where>
154 ORDER BY create_time desc 157 ORDER BY create_time desc
155 </select> 158 </select>