|
@@ -622,7 +622,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
public boolean generateData(Brand brand, OrderBase orderBase) {
|
|
|
// 工单,采集表id,uuid, TL_fa_order_repair_detail_js
|
|
|
// j_syn_task_no 统一uuid
|
|
|
- String j_syn_task_no = UUID.randomUUID().toString();
|
|
|
+ String j_syn_task_no = publicService.getUUID();
|
|
|
// 提取所有采集数据
|
|
|
List<OrderRepairDetail> ords = orderRepairDetailService.lambdaQuery()
|
|
|
.eq(OrderRepairDetail::getOrderBaseId, orderBase.getId()).list();
|
|
@@ -679,7 +679,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
orderBase.setPgguid(newDykh);
|
|
|
}
|
|
|
if (StringUtils.isEmpty(orderBase.getPgguid())){
|
|
|
- up.setPgguid(UUID.randomUUID().toString());
|
|
|
+ up.setPgguid(publicService.getUUID());
|
|
|
orderBase.setPgguid(up.getPgguid());
|
|
|
}
|
|
|
orderBaseService.updateById(up);
|
|
@@ -1073,10 +1073,12 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
// 格力总部数据采集主键为空时代表为公司采集的数据,brandwxjsguid填写UUID
|
|
|
updateOrderRepairDetailWxjsguid(orderBase.getId());
|
|
|
|
|
|
+ // 修改 wxjsmxguid
|
|
|
+ updateOrderRepairDetailWxjsmxguid(orderBase);
|
|
|
+
|
|
|
// 采集明细表全表更新pgid = brand_pgid
|
|
|
upBrandPgid(orderBase);
|
|
|
|
|
|
-
|
|
|
// 故障现象原因序
|
|
|
upOrderRepairDetailReasonOutId(orderBase.getId());
|
|
|
|
|
@@ -1092,6 +1094,27 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
return checkOrderDetailFile(orderBase.getId());
|
|
|
}
|
|
|
|
|
|
+ private void updateOrderRepairDetailWxjsmxguid(OrderBase orderBase) {
|
|
|
+ List<OrderRepairDetail> upList = new ArrayList<>();
|
|
|
+ // 看有无需要修改的数据
|
|
|
+ List<OrderRepairDetail> detaillistz = orderRepairDetailService.lambdaQuery()
|
|
|
+ .eq(OrderRepairDetail::getOrderBaseId, orderBase.getId())
|
|
|
+ .eq(OrderRepairDetail::getWxjsmxguid, "").list();
|
|
|
+ if (CollectionUtils.isEmpty(detaillistz)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (OrderRepairDetail i:detaillistz){
|
|
|
+ i.setWxjsmxguid(publicService.getUUID());
|
|
|
+ upList.add(i);
|
|
|
+ }
|
|
|
+ // 修改序
|
|
|
+ if (upList.size()>0){
|
|
|
+ orderRepairDetailService.updateBatchById(upList);
|
|
|
+ upList.clear();
|
|
|
+ }
|
|
|
+ detaillistz.clear();
|
|
|
+ }
|
|
|
+
|
|
|
public void upOrderDetailFileOutId(String orderBaseId) {
|
|
|
List<OrderDetailFile> upList = new ArrayList<>();
|
|
|
// 查看是否有需要修改的数据
|
|
@@ -1159,9 +1182,9 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
if (ite.getOutId() == 0){
|
|
|
outId++;
|
|
|
ite.setOutId(outId);
|
|
|
- ite.setXxyyguid(IdWorker.getIdStr());
|
|
|
+ ite.setXxyyguid(publicService.getUUID());
|
|
|
if (StringUtils.isEmpty(ite.getWxjsguid())){
|
|
|
- ite.setWxjsguid(UUID.randomUUID().toString());
|
|
|
+ ite.setWxjsguid(publicService.getUUID());
|
|
|
}
|
|
|
|
|
|
upList.add(ite);
|
|
@@ -1210,7 +1233,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
for (OrderRepairDetail i:detaillistz){
|
|
|
OrderRepairDetail u = new OrderRepairDetail();
|
|
|
MyBeanUtils.copyProperties(i,u);
|
|
|
- u.setBrandWxjsguid(UUID.randomUUID().toString());
|
|
|
+ u.setBrandWxjsguid(publicService.getUUID());
|
|
|
upList.add(u);
|
|
|
}
|
|
|
// 修改序
|
|
@@ -1254,10 +1277,10 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
if (StringUtils.isEmpty(r.getXxyyguid()) || StringUtils.isEmpty(r.getWxjsguid())) {
|
|
|
OrderRepairDetailReason up = new OrderRepairDetailReason();
|
|
|
if (StringUtils.isEmpty(r.getXxyyguid())) {
|
|
|
- r.setXxyyguid(UUID.randomUUID().toString());
|
|
|
+ r.setXxyyguid(publicService.getUUID());
|
|
|
}
|
|
|
if (StringUtils.isEmpty(r.getWxjsguid())) {
|
|
|
- r.setWxjsguid(UUID.randomUUID().toString());
|
|
|
+ r.setWxjsguid(publicService.getUUID());
|
|
|
}
|
|
|
ulist.add(up);
|
|
|
}
|
|
@@ -1486,12 +1509,12 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
MyBeanUtils.copyProperties(file,upf);
|
|
|
// 修改附件的fjguid
|
|
|
if (StringUtils.isEmpty(file.getFjguid())){
|
|
|
- upf.setFjguid(UUID.randomUUID().toString());
|
|
|
+ upf.setFjguid(publicService.getUUID());
|
|
|
file.setFjguid(upf.getFjguid());
|
|
|
}
|
|
|
// 修改采集明细序号 wxmxguid
|
|
|
if (StringUtils.isEmpty(file.getPgwcmxid())){
|
|
|
- upf.setPgwcmxid(UUID.randomUUID().toString());
|
|
|
+ upf.setPgwcmxid(publicService.getUUID());
|
|
|
}
|
|
|
upodfs.add(upf);
|
|
|
}
|
|
@@ -1630,7 +1653,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
} else if (StringUtils.isNotEmpty(r.getName())){
|
|
|
add.setMshu(r.getName());
|
|
|
}
|
|
|
- add.setWxjsmxguid(r.getWxjsguid());
|
|
|
+ add.setWxjsmxguid(detail.getWxjsmxguid());
|
|
|
add.setCjsj(r.getCreateTime());
|
|
|
add.setXxyyhmc(r.getName());
|
|
|
jyktus.add(add);
|
|
@@ -1652,7 +1675,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
} else if (StringUtils.isNotEmpty(r.getName())){
|
|
|
add.setMshu(r.getName());
|
|
|
}
|
|
|
- add.setWxjsmxguid(r.getWxjsguid());
|
|
|
+ add.setWxjsmxguid(detail.getWxjsmxguid());
|
|
|
add.setCjsj(r.getCreateTime());
|
|
|
add.setXxyyhmc(r.getName());
|
|
|
add.setSynStatus(44);
|
|
@@ -1664,11 +1687,11 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
OrderRepairDetailReason up = new OrderRepairDetailReason();
|
|
|
up.setId(r.getId());
|
|
|
if (StringUtils.isEmpty(r.getXxyyguid())){
|
|
|
- up.setXxyyguid(UUID.randomUUID().toString());
|
|
|
+ up.setXxyyguid(publicService.getUUID());
|
|
|
r.setXxyyguid(up.getXxyyguid());
|
|
|
}
|
|
|
if (StringUtils.isEmpty(r.getWxjsguid())){
|
|
|
- up.setWxjsguid(UUID.randomUUID().toString());
|
|
|
+ up.setWxjsguid(publicService.getUUID());
|
|
|
r.setWxjsguid(up.getWxjsguid());
|
|
|
}
|
|
|
orderRepairDetailReasonService.updateById(up);
|
|
@@ -1779,7 +1802,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
// 修改uuid
|
|
|
OrderRepairDetail up = new OrderRepairDetail();
|
|
|
up.setId(detail.getId());
|
|
|
- up.setBrandWxjsguid(UUID.randomUUID().toString());
|
|
|
+ up.setBrandWxjsguid(publicService.getUUID());
|
|
|
orderRepairDetailService.updateById(up);
|
|
|
detail.setBrandWxjsguid(up.getBrandWxjsguid());
|
|
|
}
|
|
@@ -1814,6 +1837,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
orderPar.setOrderNo(sourceData.getOrderNo());
|
|
|
ItfTblAssignUpload itass = gdOrderBaseMapper.getItfTblAssignUpload(orderPar);
|
|
|
|
|
|
+
|
|
|
// 信息渠道id 取的是info_channel 有问题
|
|
|
itass.setUploadTaskSynReqId(taskId);
|
|
|
// 部分参数单独处理
|
|
@@ -1889,7 +1913,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
websitSH = publicService.ptshwdToshshwd(addms.getFjwd(), orderBase.getMainId());
|
|
|
addms.setFjwd(websitSH.getWdId());
|
|
|
|
|
|
- String id = UUID.randomUUID().toString();
|
|
|
+ String id = publicService.getUUID();
|
|
|
if (id.length()>32){
|
|
|
addms.setSynTaskNo(id.substring(0,32));
|
|
|
} else {
|
|
@@ -1898,7 +1922,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
|
|
|
addms.setFsma(publicService.getfsma(addms.getSjid()));
|
|
|
addms.setFsnr("尊敬的用户:请对本次服务评价:满意回复1;一般回复2;不满意回复3。并注明原因!关注官微“格力售后服务”,为您提供更优质服务!");
|
|
|
- addms.setDxguid(UUID.randomUUID().toString());
|
|
|
+ addms.setDxguid(publicService.getUUID());
|
|
|
addms.setSjid(orderBase.getUserMobile().replace(" ",""));
|
|
|
publicService.addItfMessagehuifangentity(addms,orderBase.getOrderType(),6);
|
|
|
}
|
|
@@ -1940,7 +1964,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
websitSH = publicService.ptshwdToshshwd(addms.getFjwd(), orderBase.getMainId());
|
|
|
addms.setFjwd(websitSH.getWdId());
|
|
|
|
|
|
- String id = UUID.randomUUID().toString();
|
|
|
+ String id = publicService.getUUID();
|
|
|
if (id.length()>32){
|
|
|
addms.setSynTaskNo(id.substring(0,32));
|
|
|
} else {
|
|
@@ -1949,7 +1973,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
|
|
|
addms.setFsma(publicService.getfsma(addms.getSjid()));
|
|
|
addms.setFsnr("尊敬的用户:请对本次服务评价:满意回复1;一般回复2;不满意回复3。并注明原因!关注官微“格力售后服务”,为您提供更优质服务!");
|
|
|
- addms.setDxguid(UUID.randomUUID().toString());
|
|
|
+ addms.setDxguid(publicService.getUUID());
|
|
|
publicService.addItfMessagehuifangentity(addms,orderBase.getOrderType(),6);
|
|
|
}
|
|
|
}
|
|
@@ -2035,6 +2059,17 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
} else {
|
|
|
itass.setXqxiaolei(or.getDemandSmallTypeId());
|
|
|
}
|
|
|
+
|
|
|
+ if (orderBase.getOverTime()!=null){
|
|
|
+ itass.setWcsj(orderBase.getOverTime());
|
|
|
+ itass.setFwrybwgsj(orderBase.getOverTime());
|
|
|
+ } else {
|
|
|
+ if (orderBase.getUpdateTime()!=null){
|
|
|
+ itass.setWcsj(orderBase.getUpdateTime());
|
|
|
+ itass.setFwrybwgsj(orderBase.getUpdateTime());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void setYhyyczsj(ItfTblAssignUpload itass, String orderNo) {
|
|
@@ -2287,7 +2322,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
public void upOrderBasePgguid(OutJiasmToGreeUploadTaskList sourceData, OrderBase orderBase) {
|
|
|
if (StringUtils.isEmpty(orderBase.getPgguid()) || orderBase.getPgguid().equals("0")){
|
|
|
OrderBase up = new OrderBase();
|
|
|
- up.setPgguid(UUID.randomUUID().toString());
|
|
|
+ up.setPgguid(publicService.getUUID());
|
|
|
QueryWrapper upWrapper = new QueryWrapper<OrderBase>()
|
|
|
.eq("id", sourceData.getOrderNo())
|
|
|
.and(wrapper->wrapper.isNull("pgguid")
|
|
@@ -2302,7 +2337,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
|
orderBase.setPgid(newDykh);
|
|
|
}
|
|
|
if (StringUtils.isEmpty(orderBase.getPgguid()) || orderBase.getPgguid().equals("0")){
|
|
|
- orderBase.setPgguid(UUID.randomUUID().toString());
|
|
|
+ orderBase.setPgguid(publicService.getUUID());
|
|
|
}
|
|
|
|
|
|
orderBase.updateById();
|