Commit a98480b0c8f2b0dc99bf6e00ae92f8bd3f7479ea

Authored by 张志伟
1 parent e3648560

:bug: 提测的bug修复

doc/v1.1.2/update.sql
... ... @@ -59,6 +59,11 @@ set t1.arrival_count = (select count(t2.arrival_time)
59 59 where t1.arrival_count is null;
60 60  
61 61  
  62 +alter table accident_pool
  63 + add frame_no varchar(64) null comment '车架号' after plate_no;
  64 +
  65 +
  66 +
62 67  
63 68  
64 69  
... ...
fw-valhalla-dao/src/main/resources/mapper/FollowTaskMapper.xml
... ... @@ -8,7 +8,7 @@
8 8 >
9 9 SELECT t1.id,
10 10 if(t1.type=3 , t4.plate_no, t3.plate_no)plate_no,
11   - t3.frame_no frame_no,
  11 + if(t1.type=3 , t4.frame_no, t3.frame_no)frame_no,
12 12 t2.expires loan_expires,
13 13 t1.type type,
14 14 t1.follow_user user_id,
... ...
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/db/customer/AccidentPool.java
... ... @@ -31,6 +31,10 @@ public class AccidentPool extends BaseAuditableTimeEntity<AccidentPool, Long> {
31 31 */
32 32 private String plateNo;
33 33 /**
  34 + * 车架号
  35 + */
  36 + private String frameNo;
  37 + /**
34 38 * 品牌id
35 39 */
36 40 private Long brandId;
... ...
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/dto/AccidentPoolDTO.java
... ... @@ -23,6 +23,10 @@ public class AccidentPoolDTO {
23 23 */
24 24 private String mobile;
25 25 /**
  26 + * 车架号
  27 + */
  28 + private String frameNo;
  29 + /**
26 30 * 报案手机号
27 31 */
28 32 private String reportMobile;
... ... @@ -70,5 +74,5 @@ public class AccidentPoolDTO {
70 74 /**
71 75 * 报案地点
72 76 */
73   - private String address;
  77 + private String reportAddress;
74 78 }
... ...
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/AccidentPoolBizService.java
... ... @@ -116,6 +116,7 @@ public class AccidentPoolBizService {
116 116 private AccidentPool conversion2db(AccidentPoolDTO dto, LoginAuthBean currentUser) {
117 117 AccidentPool pool = new AccidentPool();
118 118 BeanUtils.copyProperties(dto, pool);
  119 + pool.setAddress(dto.getReportAddress());
119 120 pool.setCreateTime(new Date());
120 121 pool.setUpdateTime(new Date());
121 122 pool.setGroupId(currentUser.getGroupId());
... ...
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/AbstractFollowStrategy.java
... ... @@ -533,7 +533,9 @@ public abstract class AbstractFollowStrategy implements FollowStrategy {
533 533 recordLog.setAttType(dto.getAttTypeEnum());
534 534 recordLog.setDescribes(dto.getDescribes());
535 535 recordLog.setRecordId(dto.getRecordId());
536   - recordLog.setUploadTime(new Date());
  536 + if (Objects.isNull(dto.getId())) {
  537 + recordLog.setUploadTime(new Date());
  538 + }
537 539 followRecordLogService.saveOrUpdate(recordLog);
538 540 feedbackTask(record.getTaskId(), dto.getFeedbackTypeEnum());
539 541 }
... ...
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/ACFollowStrategy.java
... ... @@ -126,12 +126,15 @@ public class ACFollowStrategy extends AbstractFollowStrategy {
126 126 }
127 127 BV.isTrue(record.getUserId().equals(userId), () -> "无法跟进非本人待办任务");
128 128 FollowRecordLog recordLog = new FollowRecordLog();
  129 + recordLog.setId(dto.getId());
129 130 recordLog.setAttachments(dto.getAttachments());
130 131 recordLog.setAttType(dto.getAttTypeEnum());
131 132 recordLog.setFeedbackType(dto.getFeedbackTypeEnum());
132 133 recordLog.setDescribes(dto.getDescribes());
133 134 recordLog.setRecordId(dto.getRecordId());
134   - recordLog.setUploadTime(new Date());
  135 + if (Objects.isNull(dto.getId())) {
  136 + recordLog.setUploadTime(new Date());
  137 + }
135 138 followRecordLogService.save(recordLog);
136 139 feedbackTask(record.getTaskId(), dto.getFeedbackTypeEnum());
137 140  
... ...