|
@@ -244,7 +244,8 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
// 生成工单
|
|
|
return createInstallOrder(item, orderProducts, oiolList, odfs, synReqIds,
|
|
|
synReqFkMxIds, synReqYfYyIds, faGreeSms, orderAppeal, its,
|
|
|
- orderBase, orderWorker, fyqd, orderInstall, getpjSynReqId, flag,oids );
|
|
|
+ orderBase, orderWorker, fyqd, orderInstall, getpjSynReqId, flag,oids,
|
|
|
+ oa);
|
|
|
}
|
|
|
|
|
|
@NotNull
|
|
@@ -255,7 +256,8 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
List<ItfGreeToFaDownloadTaskList> its, OrderBase orderBase, OrderWorker orderWorker,
|
|
|
List<ItfTblAzAssignFeeDownload> fyqd,
|
|
|
OrderInstall orderInstall, List<Long> getpjSynReqId, Boolean flag,
|
|
|
- List<OrderInstallDetail> oids) throws Exception {
|
|
|
+ List<OrderInstallDetail> oids,
|
|
|
+ List<OrderReAppointment> oa) throws Exception {
|
|
|
// 创建工单
|
|
|
OrderAddBeanDTO createOrder = new OrderAddBeanDTO();
|
|
|
// 工单机型
|
|
@@ -274,7 +276,7 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
if (respone.getCode()==200){
|
|
|
// 安装工单数据落本地表
|
|
|
addOrderDataApi(item.getSynReqId(), synReqIds, synReqFkMxIds, synReqYfYyIds, fyqd, getpjSynReqId,
|
|
|
- faGreeSms, orderAppeal, its, odfs, oiolList, oids);
|
|
|
+ faGreeSms, orderAppeal, its, odfs, oiolList, oids, oa);
|
|
|
return Boolean.TRUE;
|
|
|
} else {
|
|
|
String msg = publicService.getErrormessage(respone);
|
|
@@ -461,7 +463,7 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
// 安装工单数据修改落本地表
|
|
|
addOrUpdateOrderDataApi(item, mxsynreqids, synreqids,addoiolList,
|
|
|
fyqd, synReqYfYyIds, getpjSynReqId,
|
|
|
- addoalist, faGreeSms,orderAppeal, its,odfs);
|
|
|
+ addoalist, faGreeSms,orderAppeal, its,odfs, addoalists);
|
|
|
} else {
|
|
|
String msg = publicService.getErrormessage(respone);
|
|
|
log.info(msg);
|
|
@@ -482,7 +484,7 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
List<ItfTblAzAssignFeeDownload> fyqd,List<Long> synReqYfYyIds,
|
|
|
List<Long> getpjSynReqId, List<OrderAppraise> addoalist,
|
|
|
List<FaGreeSms> faGreeSms,List<OrderAppeal> orderAppeal,List<ItfGreeToFaDownloadTaskList> its,
|
|
|
- List<OrderDetailFile> odfs) {
|
|
|
+ List<OrderDetailFile> odfs,List<OrderReAppointment> addoalists) {
|
|
|
// 同步修改订单基础表
|
|
|
|
|
|
// lc_ls同步状态改成1 同步成功
|
|
@@ -510,6 +512,10 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
}
|
|
|
|
|
|
// 同步用户预约表
|
|
|
+ if (addoalists.size()>0){
|
|
|
+ orderReAppointmentService.saveBatch(addoalists);
|
|
|
+ addoalists.clear();
|
|
|
+ }
|
|
|
if (synReqYfYyIds.size()>0){
|
|
|
upItfTblAzAssignAppointment(synReqYfYyIds);
|
|
|
synReqYfYyIds.clear();
|
|
@@ -556,7 +562,8 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
List<FaGreeSms> faGreeSms,List<OrderAppeal> orderAppeal,
|
|
|
List<ItfGreeToFaDownloadTaskList> its,
|
|
|
List<OrderDetailFile> odfs, List<OrderInstallOperatingLog> oiolList,
|
|
|
- List<OrderInstallDetail> oids) {
|
|
|
+ List<OrderInstallDetail> oids,
|
|
|
+ List<OrderReAppointment> oa) {
|
|
|
// 工单基础表
|
|
|
// 工单扩展信息
|
|
|
// 工单师傅表
|
|
@@ -596,6 +603,10 @@ public class AddInstallBusinessImpl implements AddInstallBusiness {
|
|
|
}
|
|
|
|
|
|
// 用户预约改约信息表
|
|
|
+ if (oa.size()>0){
|
|
|
+ orderReAppointmentService.saveBatch(oa);
|
|
|
+ oa.clear();
|
|
|
+ }
|
|
|
if (synReqYfYyIds.size()>0){
|
|
|
upItfTblAzAssignAppointment(synReqYfYyIds);
|
|
|
synReqYfYyIds.clear();
|