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,7 +29,7 @@ spring: | ||
| 29 | druid: | 29 | druid: |
| 30 | # 主库数据源 | 30 | # 主库数据源 |
| 31 | master: | 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 | username: root | 33 | username: root |
| 34 | password: root | 34 | password: root |
| 35 | # 从库数据源 | 35 | # 从库数据源 |
trash-quartz/src/main/java/com/trash/quartz/task/DriverTask.java
| @@ -87,7 +87,8 @@ public class DriverTask | @@ -87,7 +87,8 @@ public class DriverTask | ||
| 87 | @SuppressWarnings("deprecation") | 87 | @SuppressWarnings("deprecation") |
| 88 | private void checkTruckActive() { | 88 | private void checkTruckActive() { |
| 89 | int hour = new Date().getHours(); | 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 | return; | 92 | return; |
| 92 | } | 93 | } |
| 93 | 94 |
trash-ui/src/api/dayWorkReport.js
| @@ -68,6 +68,7 @@ export default { | @@ -68,6 +68,7 @@ export default { | ||
| 68 | earthsitesName: null, | 68 | earthsitesName: null, |
| 69 | place: null, | 69 | place: null, |
| 70 | subReason: null, | 70 | subReason: null, |
| 71 | + timeRange:null, | ||
| 71 | }, | 72 | }, |
| 72 | // 表单参数 | 73 | // 表单参数 |
| 73 | form: {}, | 74 | form: {}, |
| @@ -145,6 +146,11 @@ export default { | @@ -145,6 +146,11 @@ export default { | ||
| 145 | this.queryParams.page = 1; | 146 | this.queryParams.page = 1; |
| 146 | this.queryParams.pageSize = 9999; | 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 | dayWorkList(this.queryParams).then(response => { | 155 | dayWorkList(this.queryParams).then(response => { |
| 150 | 156 | ||
| @@ -219,7 +225,7 @@ export default { | @@ -219,7 +225,7 @@ export default { | ||
| 219 | }, | 225 | }, |
| 220 | /** 查询开工报表列表 */ | 226 | /** 查询开工报表列表 */ |
| 221 | getList(tabIdx) { | 227 | getList(tabIdx) { |
| 222 | - | 228 | + debugger; |
| 223 | this.loading = this.$loading({ | 229 | this.loading = this.$loading({ |
| 224 | lock: true, | 230 | lock: true, |
| 225 | text: 'Loading', | 231 | text: 'Loading', |
| @@ -238,6 +244,12 @@ export default { | @@ -238,6 +244,12 @@ export default { | ||
| 238 | this.queryParams.his = tabIdx; | 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 | dayWorkList(this.queryParams).then(response => { | 253 | dayWorkList(this.queryParams).then(response => { |
| 242 | this.threestepList = response.rows; | 254 | this.threestepList = response.rows; |
| 243 | 255 | ||
| @@ -295,6 +307,7 @@ export default { | @@ -295,6 +307,7 @@ export default { | ||
| 295 | }, | 307 | }, |
| 296 | /** 重置按钮操作 */ | 308 | /** 重置按钮操作 */ |
| 297 | resetQuery() { | 309 | resetQuery() { |
| 310 | + this.queryParams.timeRange = null; | ||
| 298 | this.queryParams.workEndTime = null; | 311 | this.queryParams.workEndTime = null; |
| 299 | this.queryParams.workStartTime = null; | 312 | this.queryParams.workStartTime = null; |
| 300 | this.queryParams.subReason = null; | 313 | this.queryParams.subReason = null; |
trash-ui/src/views/business/dayWorkReport/index.vue
| @@ -40,17 +40,16 @@ | @@ -40,17 +40,16 @@ | ||
| 40 | <el-row> | 40 | <el-row> |
| 41 | <el-col :span="6"> | 41 | <el-col :span="6"> |
| 42 | <el-form-item label="开始时间" v-if="this.queryParams.his==1"> | 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 | </el-form-item> | 51 | </el-form-item> |
| 52 | + </el-col> | ||
| 54 | 53 | ||
| 55 | </el-col> | 54 | </el-col> |
| 56 | </el-row> | 55 | </el-row> |
trash-workFlow/src/main/java/com/trash/business/domain/SupervisionThreestep.java
| @@ -134,7 +134,8 @@ public class SupervisionThreestep extends BaseEntity | @@ -134,7 +134,8 @@ public class SupervisionThreestep extends BaseEntity | ||
| 134 | private Date workStartTime; | 134 | private Date workStartTime; |
| 135 | private Date workEndTime; | 135 | private Date workEndTime; |
| 136 | 136 | ||
| 137 | - private String his; | 137 | + |
| 138 | + private String his; | ||
| 138 | 139 | ||
| 139 | 140 | ||
| 140 | public String getHis() { | 141 | public String getHis() { |
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| @@ -204,8 +204,8 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -204,8 +204,8 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 204 | start += " 8:00:00"; | 204 | start += " 8:00:00"; |
| 205 | 205 | ||
| 206 | try { | 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 | } catch (Exception e) { | 209 | } catch (Exception e) { |
| 210 | // TODO Auto-generated catch block | 210 | // TODO Auto-generated catch block |
| 211 | e.printStackTrace(); | 211 | e.printStackTrace(); |
| @@ -219,6 +219,8 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -219,6 +219,8 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 219 | e.printStackTrace(); | 219 | e.printStackTrace(); |
| 220 | } | 220 | } |
| 221 | } | 221 | } |
| 222 | + }else{ | ||
| 223 | + | ||
| 222 | } | 224 | } |
| 223 | 225 | ||
| 224 | 226 |