Commit e2c42fddf4ecde4e11469d6ef68feb45b17cd03b
1 parent
420016c1
m
Showing
6 changed files
with
32 additions
and
16 deletions
trash-admin/src/main/resources/application-dev.yml
| ... | ... | @@ -29,7 +29,7 @@ spring: |
| 29 | 29 | druid: |
| 30 | 30 | # 主库数据源 |
| 31 | 31 | master: |
| 32 | - url: jdbc:mysql://192.168.168.141:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true | |
| 32 | + url: jdbc:mysql://localhost:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true | |
| 33 | 33 | username: root |
| 34 | 34 | password: root |
| 35 | 35 | # 从库数据源 | ... | ... |
trash-quartz/src/main/java/com/trash/quartz/task/DriverTask.java
| ... | ... | @@ -87,7 +87,8 @@ public class DriverTask |
| 87 | 87 | @SuppressWarnings("deprecation") |
| 88 | 88 | private void checkTruckActive() { |
| 89 | 89 | int hour = new Date().getHours(); |
| 90 | - if(hour > 4 && hour < 8){ | |
| 90 | + int minute = new Date().getMinutes(); | |
| 91 | + if(hour > 4 && hour < 8 && (hour>3 && minute>55)){ | |
| 91 | 92 | return; |
| 92 | 93 | } |
| 93 | 94 | ... | ... |
trash-ui/src/api/dayWorkReport.js
| ... | ... | @@ -68,6 +68,7 @@ export default { |
| 68 | 68 | earthsitesName: null, |
| 69 | 69 | place: null, |
| 70 | 70 | subReason: null, |
| 71 | + timeRange:null, | |
| 71 | 72 | }, |
| 72 | 73 | // 表单参数 |
| 73 | 74 | form: {}, |
| ... | ... | @@ -145,6 +146,11 @@ export default { |
| 145 | 146 | this.queryParams.page = 1; |
| 146 | 147 | this.queryParams.pageSize = 9999; |
| 147 | 148 | |
| 149 | + if(this.queryParams.timeRange){ | |
| 150 | + this.queryParams.workStartTime = this.queryParams.timeRange[0]; | |
| 151 | + this.queryParams.workEndTime = this.queryParams.timeRange[1]; | |
| 152 | + this.queryParams.timeRange = null; | |
| 153 | + } | |
| 148 | 154 | |
| 149 | 155 | dayWorkList(this.queryParams).then(response => { |
| 150 | 156 | |
| ... | ... | @@ -219,7 +225,7 @@ export default { |
| 219 | 225 | }, |
| 220 | 226 | /** 查询开工报表列表 */ |
| 221 | 227 | getList(tabIdx) { |
| 222 | - | |
| 228 | + debugger; | |
| 223 | 229 | this.loading = this.$loading({ |
| 224 | 230 | lock: true, |
| 225 | 231 | text: 'Loading', |
| ... | ... | @@ -238,6 +244,12 @@ export default { |
| 238 | 244 | this.queryParams.his = tabIdx; |
| 239 | 245 | } |
| 240 | 246 | |
| 247 | + if(this.queryParams.timeRange){ | |
| 248 | + this.queryParams.workStartTime = this.queryParams.timeRange[0]; | |
| 249 | + this.queryParams.workEndTime = this.queryParams.timeRange[1]; | |
| 250 | + this.queryParams.timeRange = null; | |
| 251 | + } | |
| 252 | + | |
| 241 | 253 | dayWorkList(this.queryParams).then(response => { |
| 242 | 254 | this.threestepList = response.rows; |
| 243 | 255 | |
| ... | ... | @@ -295,6 +307,7 @@ export default { |
| 295 | 307 | }, |
| 296 | 308 | /** 重置按钮操作 */ |
| 297 | 309 | resetQuery() { |
| 310 | + this.queryParams.timeRange = null; | |
| 298 | 311 | this.queryParams.workEndTime = null; |
| 299 | 312 | this.queryParams.workStartTime = null; |
| 300 | 313 | this.queryParams.subReason = null; | ... | ... |
trash-ui/src/views/business/dayWorkReport/index.vue
| ... | ... | @@ -40,17 +40,16 @@ |
| 40 | 40 | <el-row> |
| 41 | 41 | <el-col :span="6"> |
| 42 | 42 | <el-form-item label="开始时间" v-if="this.queryParams.his==1"> |
| 43 | - <el-date-picker size="small" style="width: 200px" v-model="queryParams.workStartTime" type="date" | |
| 44 | - value-format="yyyy-MM-dd" placeholder="开始时间" > | |
| 45 | - </el-date-picker> | |
| 46 | - </el-form-item> | |
| 47 | - </el-col> | |
| 48 | - <el-col :span="6"> | |
| 49 | - <el-form-item label="结束时间" v-if="this.queryParams.his==1"> | |
| 50 | - <el-date-picker size="small" style="width: 200px" v-model="queryParams.workEndTime" type="date" | |
| 51 | - value-format="yyyy-MM-dd" placeholder="结束时间"> | |
| 52 | - </el-date-picker> | |
| 43 | + <el-date-picker | |
| 44 | + v-model="queryParams.timeRange" | |
| 45 | + value-format="yyyy-MM-dd HH:mm:ss" | |
| 46 | + type="datetimerange" | |
| 47 | + range-separator="至" | |
| 48 | + start-placeholder="开始日期" | |
| 49 | + end-placeholder="结束日期"> | |
| 50 | + </el-date-picker> | |
| 53 | 51 | </el-form-item> |
| 52 | + </el-col> | |
| 54 | 53 | |
| 55 | 54 | </el-col> |
| 56 | 55 | </el-row> | ... | ... |
trash-workFlow/src/main/java/com/trash/business/domain/SupervisionThreestep.java
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| ... | ... | @@ -204,8 +204,8 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 204 | 204 | start += " 8:00:00"; |
| 205 | 205 | |
| 206 | 206 | try { |
| 207 | - supervisionThreestep.setWorkStartTime(yearFomat.parse(start)); | |
| 208 | - supervisionThreestep.setWorkEndTime(yearFomat.parse(end)); | |
| 207 | + supervisionThreestep.setWorkStartTime(dateTime.parse(start)); | |
| 208 | + supervisionThreestep.setWorkEndTime(dateTime.parse(end)); | |
| 209 | 209 | } catch (Exception e) { |
| 210 | 210 | // TODO Auto-generated catch block |
| 211 | 211 | e.printStackTrace(); |
| ... | ... | @@ -219,6 +219,8 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 219 | 219 | e.printStackTrace(); |
| 220 | 220 | } |
| 221 | 221 | } |
| 222 | + }else{ | |
| 223 | + | |
| 222 | 224 | } |
| 223 | 225 | |
| 224 | 226 | ... | ... |