Commit 52012a66d01805afc72372f29f140132b845f1dd
1 parent
f5c22260
update...
Showing
5 changed files
with
116 additions
and
89 deletions
src/main/java/com/bsth/data/schedule/SchModifyLog.java renamed to src/main/java/com/bsth/data/schedule/edit_logs/FormLogger.java
| 1 | -package com.bsth.data.schedule; | ||
| 2 | - | ||
| 3 | -import com.bsth.controller.realcontrol.dto.ChangePersonCar; | ||
| 4 | -import com.bsth.entity.mcy_forms.Changetochange; | ||
| 5 | -import com.bsth.entity.realcontrol.ScheduleRealInfo; | ||
| 6 | -import com.bsth.entity.sys.SysUser; | ||
| 7 | -import com.bsth.repository.form.ChangetochangeRepository; | ||
| 8 | -import com.bsth.security.util.SecurityUtils; | ||
| 9 | -import org.apache.commons.lang3.StringUtils; | ||
| 10 | -import org.joda.time.format.DateTimeFormat; | ||
| 11 | -import org.joda.time.format.DateTimeFormatter; | ||
| 12 | -import org.slf4j.Logger; | ||
| 13 | -import org.slf4j.LoggerFactory; | ||
| 14 | -import org.springframework.beans.factory.annotation.Autowired; | ||
| 15 | -import org.springframework.stereotype.Service; | ||
| 16 | - | ||
| 17 | -import java.util.Date; | ||
| 18 | - | ||
| 19 | -/** | ||
| 20 | - * 线调实际排班修改日志记录 | ||
| 21 | - * Created by panzhao on 2017/5/7. | ||
| 22 | - */ | ||
| 23 | -@Service | ||
| 24 | -public class SchModifyLog { | ||
| 25 | - | ||
| 26 | - private static DateTimeFormatter fmtHHmm = DateTimeFormat.forPattern("HH:mm"); | ||
| 27 | - | ||
| 28 | - Logger log = LoggerFactory.getLogger(this.getClass()); | ||
| 29 | - | ||
| 30 | - @Autowired | ||
| 31 | - ChangetochangeRepository changetochangeRepository; | ||
| 32 | - | ||
| 33 | - /** | ||
| 34 | - * 换人换车情况表 | ||
| 35 | - */ | ||
| 36 | - public void saveChangetochange(ScheduleRealInfo sch, ChangePersonCar cpc){ | ||
| 37 | - try { | ||
| 38 | - String newNbbm = cpc.getClZbh(); | ||
| 39 | - String newJsy = cpc.getJsy(); | ||
| 40 | - String oldJsy = sch.getjGh()+"/"+sch.getjName(); | ||
| 41 | - | ||
| 42 | - if(newNbbm == null && newJsy == null) | ||
| 43 | - return; | ||
| 44 | - | ||
| 45 | - if(newNbbm != null && newJsy != null | ||
| 46 | - && newNbbm.equals(sch.getClZbh()) && newJsy.equals(oldJsy)) | ||
| 47 | - return; | ||
| 48 | - | ||
| 49 | - Date d = new Date(); | ||
| 50 | - SysUser user = SecurityUtils.getCurrentUser(); | ||
| 51 | - Changetochange cc = new Changetochange(); | ||
| 52 | - cc.setRq(sch.getScheduleDateStr()); | ||
| 53 | - cc.setGs(sch.getGsBm()); | ||
| 54 | - cc.setFgs(sch.getFgsBm()); | ||
| 55 | - cc.setXl(sch.getXlBm()); | ||
| 56 | - cc.setLp(sch.getLpName()); | ||
| 57 | - cc.setFssj(fmtHHmm.print(d.getTime())); | ||
| 58 | - cc.setXgsj(fmtHHmm.print(d.getTime())); | ||
| 59 | - if(user != null) | ||
| 60 | - cc.setXgr(user.getUserName()); | ||
| 61 | - | ||
| 62 | - cc.setPcch(sch.getClZbh()); | ||
| 63 | - cc.setPcry(oldJsy); | ||
| 64 | - cc.setJhch(sch.getClZbh()); | ||
| 65 | - cc.setJhgh(sch.getjGh()); | ||
| 66 | - | ||
| 67 | - if(StringUtils.isNotEmpty(newNbbm)) | ||
| 68 | - cc.setSjch(newNbbm); | ||
| 69 | - if(StringUtils.isNotEmpty(newJsy)) | ||
| 70 | - cc.setSjgh(newJsy); | ||
| 71 | - | ||
| 72 | - changetochangeRepository.save(cc); | ||
| 73 | - }catch (Exception e){ | ||
| 74 | - log.error("纪录换人换车情况表", e); | ||
| 75 | - } | ||
| 76 | - } | ||
| 77 | - | ||
| 78 | - public void saveChangetochange(ScheduleRealInfo sch, String nbbm, String jsy){ | ||
| 79 | - ChangePersonCar cpc = new ChangePersonCar(); | ||
| 80 | - cpc.setClZbh(nbbm); | ||
| 81 | - cpc.setJsy(jsy); | ||
| 82 | - saveChangetochange(sch, cpc); | ||
| 83 | - } | ||
| 84 | -} | 1 | +package com.bsth.data.schedule.edit_logs; |
| 2 | + | ||
| 3 | +import com.bsth.controller.realcontrol.dto.ChangePersonCar; | ||
| 4 | +import com.bsth.entity.mcy_forms.Changetochange; | ||
| 5 | +import com.bsth.entity.realcontrol.ScheduleRealInfo; | ||
| 6 | +import com.bsth.entity.sys.SysUser; | ||
| 7 | +import com.bsth.repository.form.ChangetochangeRepository; | ||
| 8 | +import com.bsth.security.util.SecurityUtils; | ||
| 9 | +import org.apache.commons.lang3.StringUtils; | ||
| 10 | +import org.joda.time.format.DateTimeFormat; | ||
| 11 | +import org.joda.time.format.DateTimeFormatter; | ||
| 12 | +import org.slf4j.Logger; | ||
| 13 | +import org.slf4j.LoggerFactory; | ||
| 14 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 15 | +import org.springframework.stereotype.Service; | ||
| 16 | + | ||
| 17 | +import java.util.Date; | ||
| 18 | + | ||
| 19 | +/** | ||
| 20 | + * 为报表写入相关的班次修改记录 | ||
| 21 | + * Created by panzhao on 2017/5/7. | ||
| 22 | + */ | ||
| 23 | +@Service | ||
| 24 | +public class FormLogger { | ||
| 25 | + | ||
| 26 | + private static DateTimeFormatter fmtHHmm = DateTimeFormat.forPattern("HH:mm"); | ||
| 27 | + | ||
| 28 | + Logger log = LoggerFactory.getLogger(this.getClass()); | ||
| 29 | + | ||
| 30 | + @Autowired | ||
| 31 | + ChangetochangeRepository changetochangeRepository; | ||
| 32 | + | ||
| 33 | + /** | ||
| 34 | + * 换人换车情况表 | ||
| 35 | + */ | ||
| 36 | + public void saveChangetochange(ScheduleRealInfo sch, ChangePersonCar cpc){ | ||
| 37 | + try { | ||
| 38 | + String newNbbm = cpc.getClZbh(); | ||
| 39 | + String newJsy = cpc.getJsy(); | ||
| 40 | + String oldJsy = sch.getjGh()+"/"+sch.getjName(); | ||
| 41 | + | ||
| 42 | + if(newNbbm == null && newJsy == null) | ||
| 43 | + return; | ||
| 44 | + | ||
| 45 | + if(newNbbm != null && newJsy != null | ||
| 46 | + && newNbbm.equals(sch.getClZbh()) && newJsy.equals(oldJsy)) | ||
| 47 | + return; | ||
| 48 | + | ||
| 49 | + Date d = new Date(); | ||
| 50 | + SysUser user = SecurityUtils.getCurrentUser(); | ||
| 51 | + Changetochange cc = new Changetochange(); | ||
| 52 | + cc.setRq(sch.getScheduleDateStr()); | ||
| 53 | + cc.setGs(sch.getGsBm()); | ||
| 54 | + cc.setFgs(sch.getFgsBm()); | ||
| 55 | + cc.setXl(sch.getXlBm()); | ||
| 56 | + cc.setLp(sch.getLpName()); | ||
| 57 | + cc.setFssj(fmtHHmm.print(d.getTime())); | ||
| 58 | + cc.setXgsj(fmtHHmm.print(d.getTime())); | ||
| 59 | + if(user != null) | ||
| 60 | + cc.setXgr(user.getUserName()); | ||
| 61 | + | ||
| 62 | + cc.setPcch(sch.getClZbh()); | ||
| 63 | + cc.setPcry(oldJsy); | ||
| 64 | + cc.setJhch(sch.getClZbh()); | ||
| 65 | + cc.setJhgh(sch.getjGh()); | ||
| 66 | + | ||
| 67 | + if(StringUtils.isNotEmpty(newNbbm)) | ||
| 68 | + cc.setSjch(newNbbm); | ||
| 69 | + if(StringUtils.isNotEmpty(newJsy)) | ||
| 70 | + cc.setSjgh(newJsy); | ||
| 71 | + | ||
| 72 | + changetochangeRepository.save(cc); | ||
| 73 | + }catch (Exception e){ | ||
| 74 | + log.error("纪录换人换车情况表", e); | ||
| 75 | + } | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + public void saveChangetochange(ScheduleRealInfo sch, String nbbm, String jsy){ | ||
| 79 | + ChangePersonCar cpc = new ChangePersonCar(); | ||
| 80 | + cpc.setClZbh(nbbm); | ||
| 81 | + cpc.setJsy(jsy); | ||
| 82 | + saveChangetochange(sch, cpc); | ||
| 83 | + } | ||
| 84 | +} |
src/main/java/com/bsth/data/schedule/edit_logs/SchEditLogger.java renamed to src/main/java/com/bsth/data/schedule/edit_logs/ScheduleModifyLogger.java
| @@ -4,7 +4,7 @@ package com.bsth.data.schedule.edit_logs; | @@ -4,7 +4,7 @@ package com.bsth.data.schedule.edit_logs; | ||
| 4 | * 班次修正记录 | 4 | * 班次修正记录 |
| 5 | * Created by panzhao on 2017/5/16. | 5 | * Created by panzhao on 2017/5/16. |
| 6 | */ | 6 | */ |
| 7 | -public class SchEditLogger { | 7 | +public class ScheduleModifyLogger { |
| 8 | 8 | ||
| 9 | /** | 9 | /** |
| 10 | * 待发调整 | 10 | * 待发调整 |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| @@ -13,7 +13,7 @@ import com.bsth.data.LineConfigData; | @@ -13,7 +13,7 @@ import com.bsth.data.LineConfigData; | ||
| 13 | import com.bsth.data.msg_queue.DirectivePushQueue; | 13 | import com.bsth.data.msg_queue.DirectivePushQueue; |
| 14 | import com.bsth.data.schedule.DayOfSchedule; | 14 | import com.bsth.data.schedule.DayOfSchedule; |
| 15 | import com.bsth.data.schedule.SchAttrCalculator; | 15 | import com.bsth.data.schedule.SchAttrCalculator; |
| 16 | -import com.bsth.data.schedule.SchModifyLog; | 16 | +import com.bsth.data.schedule.edit_logs.FormLogger; |
| 17 | import com.bsth.data.schedule.ScheduleComparator; | 17 | import com.bsth.data.schedule.ScheduleComparator; |
| 18 | import com.bsth.data.schedule.late_adjust.LateAdjustHandle; | 18 | import com.bsth.data.schedule.late_adjust.LateAdjustHandle; |
| 19 | import com.bsth.entity.Cars; | 19 | import com.bsth.entity.Cars; |
| @@ -135,7 +135,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -135,7 +135,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 135 | CulateMileageService culateService; | 135 | CulateMileageService culateService; |
| 136 | 136 | ||
| 137 | @Autowired | 137 | @Autowired |
| 138 | - SchModifyLog schModifyLog; | 138 | + FormLogger schModifyLog; |
| 139 | 139 | ||
| 140 | @Autowired | 140 | @Autowired |
| 141 | DirectiveService directiveService; | 141 | DirectiveService directiveService; |
| @@ -1076,6 +1076,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1076,6 +1076,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1076 | sch.setStatus(0); | 1076 | sch.setStatus(0); |
| 1077 | sch.setRemarks("");//清空备注 | 1077 | sch.setRemarks("");//清空备注 |
| 1078 | sch.setJhlc(sch.getJhlcOrig()); | 1078 | sch.setJhlc(sch.getJhlcOrig()); |
| 1079 | + | ||
| 1080 | + //入库 | ||
| 1081 | + dayOfSchedule.save(sch); | ||
| 1079 | rs.put("status", ResponseCode.SUCCESS); | 1082 | rs.put("status", ResponseCode.SUCCESS); |
| 1080 | rs.put("t", sch); | 1083 | rs.put("t", sch); |
| 1081 | 1084 |
src/main/resources/static/real_control_v2/css/modal_extend.css
| @@ -15,4 +15,28 @@ | @@ -15,4 +15,28 @@ | ||
| 15 | .uk-modal.ct_move_modal .uk-modal-header{ | 15 | .uk-modal.ct_move_modal .uk-modal-header{ |
| 16 | cursor: move; | 16 | cursor: move; |
| 17 | user-select: none; | 17 | user-select: none; |
| 18 | +} | ||
| 19 | + | ||
| 20 | +#ssspVedioModal .uk-modal-dialog-large{ | ||
| 21 | + height: 650px; | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +#ssspVedioModal .uk-modal-header{ | ||
| 25 | + border-bottom: 1px solid #a2bfe7; | ||
| 26 | +} | ||
| 27 | + | ||
| 28 | +#ssspVedioModal iframe{ | ||
| 29 | + width: calc(100% + 37px); | ||
| 30 | + height: calc(100% - 32px); | ||
| 31 | + margin-left: -18px; | ||
| 32 | + margin-top: -15px; | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +#ssspVedioModal #vedioIframe{ | ||
| 36 | + display: none; | ||
| 37 | +} | ||
| 38 | + | ||
| 39 | +#ssspVedioModal p.loading{ | ||
| 40 | + text-align: center; | ||
| 41 | + margin-top: 50px; | ||
| 18 | } | 42 | } |
| 19 | \ No newline at end of file | 43 | \ No newline at end of file |
src/main/resources/static/real_control_v2/js/main.js
| @@ -169,8 +169,8 @@ var disabled_submit_btn = function (form) { | @@ -169,8 +169,8 @@ var disabled_submit_btn = function (form) { | ||
| 169 | function showUpdateDescription() { | 169 | function showUpdateDescription() { |
| 170 | //更新说明 | 170 | //更新说明 |
| 171 | var updateDescription = { | 171 | var updateDescription = { |
| 172 | - date: '2017-05-16', | ||
| 173 | - text: '<h5>修复了进出场班次公里设置为0后自动烂班的问题</h5>' | 172 | + date: '2017-05-18', |
| 173 | + text: '<h5>现在自定义子任务,勾选是否烂班后,烂班原因必填。</h5><h5>修复了在驾驶员请求出场时,误下发分班出场指令的问题</h5>' | ||
| 174 | }; | 174 | }; |
| 175 | 175 | ||
| 176 | var storage = window.localStorage | 176 | var storage = window.localStorage |