|
@@ -11,7 +11,7 @@ import com.zfire.jiasm.syncdata.parameter.OrderPar;
|
|
|
import com.zfire.jiasm.syncdata.parameter.ReAppointment;
|
|
|
import com.zfire.jiasm.syncdata.plus.entity.*;
|
|
|
import com.zfire.jiasm.syncdata.plus.service.*;
|
|
|
-import com.zfire.jiasm.syncdata.response.WebsitSH;
|
|
|
+import com.zfire.jiasm.syncdata.response.WebsitFWS;
|
|
|
import com.zfire.jiasm.syncdata.service.OrderService;
|
|
|
import com.zfire.jiasm.syncdata.service.PublicService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -467,11 +467,11 @@ public class RepairBusiness {
|
|
|
} else {
|
|
|
wdno = item.getWxwdno();
|
|
|
}
|
|
|
- WebsitSH resultData = publicService.WebsitToSH(wdno, brand.getBrandId());
|
|
|
+ WebsitFWS resultData = publicService.WebsitToSH(wdno, brand.getBrandId());
|
|
|
upOrder.setWebsitId(resultData.getWdId());
|
|
|
upOrder.setWebsitName(resultData.getWdmc());
|
|
|
if (StringUtils.isNotEmpty(item.getXjwdno())){
|
|
|
- WebsitSH res = publicService.WebsitToSH(item.getXjwdno(), brand.getBrandId());
|
|
|
+ WebsitFWS res = publicService.WebsitToSH(item.getXjwdno(), brand.getBrandId());
|
|
|
upOrder.setReceWebsitId(res.getWdId());
|
|
|
upOrder.setReceWebsitName(res.getWdmc());
|
|
|
} else {
|
|
@@ -517,7 +517,7 @@ public class RepairBusiness {
|
|
|
|
|
|
@NotNull
|
|
|
private OrderBase getUpOrderBase(Brand brand, ItfTblAssignDownload item, String id,String mainId) {
|
|
|
- WebsitSH websitSH = new WebsitSH();
|
|
|
+ WebsitFWS websitFWS = new WebsitFWS();
|
|
|
OrderPar orderPar = new OrderPar();
|
|
|
|
|
|
orderPar.setSynReqId(item.getSynReqId());
|
|
@@ -528,11 +528,11 @@ public class RepairBusiness {
|
|
|
upOrder.setOutUpdateSynReqTime(new Date());
|
|
|
|
|
|
// 销售网点处理
|
|
|
- websitSH = publicService.shxswdToptxswd(upOrder.getSaleWebsitId(),mainId);
|
|
|
- upOrder.setSaleWebsitId(websitSH.getWdId());
|
|
|
- upOrder.setSaleWebsitName(websitSH.getWdmc());
|
|
|
+ websitFWS = publicService.shxswdToptxswd(upOrder.getSaleWebsitId(),mainId);
|
|
|
+ upOrder.setSaleWebsitId(websitFWS.getWdId());
|
|
|
+ upOrder.setSaleWebsitName(websitFWS.getWdmc());
|
|
|
// 这里为商户的系统网点编号
|
|
|
- upOrder.setSaleWebsitSysNumber(websitSH.getBrandSysWebsitNumber());
|
|
|
+ upOrder.setSaleWebsitSysNumber(websitFWS.getBrandSysWebsitNumber());
|
|
|
|
|
|
// upOrder.setUpdateTime(new Date());
|
|
|
return upOrder;
|
|
@@ -703,9 +703,9 @@ public class RepairBusiness {
|
|
|
up.setReadStatus(yd.getYdbz());
|
|
|
up.setReadTime(yd.getYdsj());
|
|
|
up.setReadName(yd.getYdrmc());
|
|
|
- WebsitSH websitSH = publicService.WebsitToSH(yd.getWdno(), brand.getBrandId());
|
|
|
- up.setWebsitId(websitSH.getWdId());
|
|
|
- up.setWebsitName(websitSH.getWdmc());
|
|
|
+ WebsitFWS websitFWS = publicService.WebsitToSH(yd.getWdno(), brand.getBrandId());
|
|
|
+ up.setWebsitId(websitFWS.getWdId());
|
|
|
+ up.setWebsitName(websitFWS.getWdmc());
|
|
|
oilistUp.add(up);
|
|
|
}
|
|
|
|
|
@@ -722,9 +722,9 @@ public class RepairBusiness {
|
|
|
add.setReadStatus(yd.getYdbz());
|
|
|
add.setReadName(yd.getYdrmc());
|
|
|
add.setReadTime(yd.getYdsj());
|
|
|
- WebsitSH websitSH = publicService.WebsitToSH(yd.getWdno(), brand.getBrandId());
|
|
|
- add.setWebsitId(websitSH.getWdId());
|
|
|
- add.setWebsitName(websitSH.getWdmc());
|
|
|
+ WebsitFWS websitFWS = publicService.WebsitToSH(yd.getWdno(), brand.getBrandId());
|
|
|
+ add.setWebsitId(websitFWS.getWdId());
|
|
|
+ add.setWebsitName(websitFWS.getWdmc());
|
|
|
oilist.add(add);
|
|
|
}
|
|
|
|
|
@@ -769,9 +769,9 @@ public class RepairBusiness {
|
|
|
// 只插入一条sxlx = 0的首评记录
|
|
|
if (canInsert.equals(1)){
|
|
|
// 增加评价记录
|
|
|
- WebsitSH websitSH = addappraise(brand, sysDictRefDLMap, s);
|
|
|
+ WebsitFWS websitFWS = addappraise(brand, sysDictRefDLMap, s);
|
|
|
// 增加差评短信
|
|
|
- addcpsms(order, s, websitSH);
|
|
|
+ addcpsms(order, s, websitFWS);
|
|
|
}
|
|
|
|
|
|
// 已评价过 新增时基础表不再操作追评 因为工单基础表无追评数据可存
|
|
@@ -826,9 +826,9 @@ public class RepairBusiness {
|
|
|
// 只插入一条sxlx = 0的首评记录
|
|
|
if (canInsert.equals(1)){
|
|
|
// 增加评价记录
|
|
|
- WebsitSH websitSH = addappraise(brand, sysDictRefDLMap, s);
|
|
|
+ WebsitFWS websitFWS = addappraise(brand, sysDictRefDLMap, s);
|
|
|
// 增加差评短信
|
|
|
- addcpsms(order, s, websitSH);
|
|
|
+ addcpsms(order, s, websitFWS);
|
|
|
}
|
|
|
|
|
|
// 未评价过工单基础表写入首次评价数据
|
|
@@ -841,7 +841,7 @@ public class RepairBusiness {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void addcpsms(OrderBase order, ItfTblAssignSatisfactionDownload s, WebsitSH websitSH) {
|
|
|
+ private void addcpsms(OrderBase order, ItfTblAssignSatisfactionDownload s, WebsitFWS websitFWS) {
|
|
|
if (s.getPjnr().equals("3") || s.getPjnr().indexOf("不满意")>0){
|
|
|
if (StringUtils.isNotEmpty(s.getHfwdno()) && s.getHfwdno().equals("99999999")){
|
|
|
FaGreeSms fs = new FaGreeSms();
|
|
@@ -854,7 +854,7 @@ public class RepairBusiness {
|
|
|
fs.setFsma(String.valueOf(random.nextInt(10000)));
|
|
|
fs.setFsnr("您收到一张客户的投诉工单,请及时处理!工单号:" + String.valueOf(s.getPgid()) +
|
|
|
",服务人员:" + order.getWorkerName());
|
|
|
- fs.setSjid(websitSH.getWdlxdh());
|
|
|
+ fs.setSjid(websitFWS.getWdlxdh());
|
|
|
fs.setYhlb(2);
|
|
|
faGreeSmsService.save(fs);
|
|
|
}
|
|
@@ -862,7 +862,7 @@ public class RepairBusiness {
|
|
|
}
|
|
|
|
|
|
@NotNull
|
|
|
- private WebsitSH addappraise(Brand brand, Map<String, List<SysDictRef>> sysDictRefDLMap, ItfTblAssignSatisfactionDownload s) {
|
|
|
+ private WebsitFWS addappraise(Brand brand, Map<String, List<SysDictRef>> sysDictRefDLMap, ItfTblAssignSatisfactionDownload s) {
|
|
|
Boolean canAppeal = Boolean.TRUE;
|
|
|
Integer appeal = 0;
|
|
|
ReAppointment rq = new ReAppointment();
|
|
@@ -888,15 +888,15 @@ public class RepairBusiness {
|
|
|
OrderAppraise add = assignSatisfactionDownloadMapper.getOrderAppraise(rq);
|
|
|
|
|
|
// rvisit_websit_id 单独处理
|
|
|
- WebsitSH websitSH = publicService.WebsitToSH(s.getHfwdno(), brand.getBrandId());
|
|
|
- add.setRvisitWebsitId(websitSH.getWdId());
|
|
|
- add.setRvisitWebsitName(websitSH.getWdmc());
|
|
|
+ WebsitFWS websitFWS = publicService.WebsitToSH(s.getHfwdno(), brand.getBrandId());
|
|
|
+ add.setRvisitWebsitId(websitFWS.getWdId());
|
|
|
+ add.setRvisitWebsitName(websitFWS.getWdmc());
|
|
|
// splb 商品大类 单独处理
|
|
|
add.setMainId(sysDictRefDLMap.get(String.valueOf(s.getSplb())).get(0).getDictCode());
|
|
|
// can_appeal 是否可发起申诉 单独处理
|
|
|
add.setCanAppeal(appeal);
|
|
|
orderAppraiseService.save(add);
|
|
|
- return websitSH;
|
|
|
+ return websitFWS;
|
|
|
}
|
|
|
|
|
|
private void upOrderBasePJ(OrderBase order, ItfTblAssignSatisfactionDownload s) {
|
|
@@ -1014,9 +1014,9 @@ public class RepairBusiness {
|
|
|
add.setFeedback(fkmx.getFkjg());
|
|
|
add.setOperator(fkmx.getFkren());
|
|
|
add.setOperatorNumber(fkmx.getFkrenmc());
|
|
|
- WebsitSH websitSH = publicService.WebsitToSH(fkmx.getFkwdno(), brand.getBrandId());
|
|
|
- add.setOperateWebsit(websitSH.getWdmc());
|
|
|
- add.setWebsitPhone(websitSH.getWdlxdh());
|
|
|
+ WebsitFWS websitFWS = publicService.WebsitToSH(fkmx.getFkwdno(), brand.getBrandId());
|
|
|
+ add.setOperateWebsit(websitFWS.getWdmc());
|
|
|
+ add.setWebsitPhone(websitFWS.getWdlxdh());
|
|
|
add.setWorkerOrderStatus(order.getOrderStatus());// 反馈时的工单状态
|
|
|
add.setBeforeOrderStatus(order.getLastOrderStatus());// 操作前工单状态 - 上一流程状态
|
|
|
add.setBeforeDispatchStatus(order.getDispatchStatus());// 操作前派工状态
|
|
@@ -1096,7 +1096,7 @@ public class RepairBusiness {
|
|
|
List<ItfTblAssignMxDownload> mxRec = new ArrayList<>();
|
|
|
List<OrderProduct> addmx = new ArrayList<>();
|
|
|
List<ItfTblAssignMxDownload> ups = new ArrayList<>();
|
|
|
- WebsitSH websitSH = new WebsitSH();
|
|
|
+ WebsitFWS websitFWS = new WebsitFWS();
|
|
|
|
|
|
|
|
|
// 提取明细表数据
|
|
@@ -1112,12 +1112,12 @@ public class RepairBusiness {
|
|
|
mxreq.setBrandId(brand.getBrandId());
|
|
|
OrderProduct op = repairMxDownloadMapper.getMx(mxreq);
|
|
|
// 销售单位处理 sale_websit
|
|
|
- websitSH = publicService.shxswdToptxswd(op.getSaleWebsit(),order.getMainId());
|
|
|
- op.setSaleWebsit(websitSH.getWdId());
|
|
|
+ websitFWS = publicService.shxswdToptxswd(op.getSaleWebsit(),order.getMainId());
|
|
|
+ op.setSaleWebsit(websitFWS.getWdId());
|
|
|
|
|
|
// 服务单位处理 service_websit
|
|
|
- websitSH = publicService.shshwdToptshwd(op.getServiceWebsit(),order.getMainId(),order);
|
|
|
- op.setServiceWebsit(websitSH.getWdId());
|
|
|
+ websitFWS = publicService.shshwdToptshwd(op.getServiceWebsit(),order.getMainId(),order);
|
|
|
+ op.setServiceWebsit(websitFWS.getWdId());
|
|
|
|
|
|
// 其他部分参数赋值
|
|
|
op.setOrderBaseId(order.getId());
|
|
@@ -1239,16 +1239,16 @@ public class RepairBusiness {
|
|
|
|
|
|
@NotNull
|
|
|
private OrderProduct getOrderProduct(ItfTblAssignDownload item, OrderBase order, Map<String, List<SysDictRef>> sysDictRefDLMap, Map<String, List<SysDictRef>> sysDictRefXLMap, Map<String, List<SysDictRef>> sysDictRefXiLieMap, ItfTblAssignMxDownload rec, OrderPar mxreq) {
|
|
|
- WebsitSH websitSH = new WebsitSH();
|
|
|
+ WebsitFWS websitFWS = new WebsitFWS();
|
|
|
OrderProduct op = repairMxDownloadMapper.getMx(mxreq);
|
|
|
|
|
|
// 其他部分参数赋值
|
|
|
// 销售单位处理 sale_websit
|
|
|
- websitSH = publicService.shxswdToptxswd(op.getSaleWebsit(),order.getMainId());
|
|
|
- op.setSaleWebsit(websitSH.getWdId());
|
|
|
+ websitFWS = publicService.shxswdToptxswd(op.getSaleWebsit(),order.getMainId());
|
|
|
+ op.setSaleWebsit(websitFWS.getWdId());
|
|
|
// 服务单位处理 service_websit
|
|
|
- websitSH = publicService.shshwdToptshwd(op.getServiceWebsit(),order.getMainId(),order);
|
|
|
- op.setServiceWebsit(websitSH.getWdId());
|
|
|
+ websitFWS = publicService.shshwdToptshwd(op.getServiceWebsit(),order.getMainId(),order);
|
|
|
+ op.setServiceWebsit(websitFWS.getWdId());
|
|
|
|
|
|
op.setOrderBaseId(order.getId());
|
|
|
op.setPgguid(item.getPgguid());
|