|
@@ -1271,11 +1271,12 @@ public class PublicServiceImpl implements PublicService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 网点不在需要回传的网点表内,这里直接进行修改不再回传同步状态
|
|
|
+ * 1:网点不存在需要回传的网点表内,改回传同步状态字段为99
|
|
|
+ * 2:回传网点表为空时 一样不回传
|
|
|
* @param orderNo 工单ID
|
|
|
* @param tableName 表名
|
|
|
* @param recordId 记录ID
|
|
|
- * @return
|
|
|
+ * @return false回传, true 不回传
|
|
|
*/
|
|
|
@Override
|
|
|
public Boolean checkWebsitSyncFlag(String orderNo,String tableName,Long recordId){
|
|
@@ -1291,17 +1292,15 @@ public class PublicServiceImpl implements PublicService {
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
|
|
|
- if (order !=null){
|
|
|
- // 售后网点处理
|
|
|
- websit = publicService.ptshwdToshshwd(order.getWebsitId(), order.getMainId());
|
|
|
- SynUploadWebsit websitinfo = synUploadWebsitService.lambdaQuery()
|
|
|
- .eq(SynUploadWebsit::getBrandWebsitNo,websit.getWdId()).one();
|
|
|
- if (websitinfo != null){
|
|
|
- // 回传 找到相应的网点说明该网点需要回传
|
|
|
- return Boolean.FALSE;
|
|
|
- }
|
|
|
- msg = "【"+websitinfo.getBrandWebsitNo() + "】网点工单信息不需要回传";
|
|
|
+ // 售后网点处理
|
|
|
+ websit = publicService.ptshwdToshshwd(order.getWebsitId(), order.getMainId());
|
|
|
+ SynUploadWebsit websitinfo = synUploadWebsitService.lambdaQuery()
|
|
|
+ .eq(SynUploadWebsit::getBrandWebsitNo,websit.getWdId()).one();
|
|
|
+ if (websitinfo != null){
|
|
|
+ // 回传 找到相应的网点说明该网点工单需要回传
|
|
|
+ return Boolean.FALSE;
|
|
|
}
|
|
|
+ msg = "【"+websitinfo.getBrandWebsitNo() + "】网点工单信息不需要回传";
|
|
|
|
|
|
// 不回传 修改无需同步
|
|
|
uploadService.updateNotSync(tableName, recordId,msg);
|
|
@@ -1309,11 +1308,12 @@ public class PublicServiceImpl implements PublicService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 网点不在需要回传的网点表内,这里直接进行修改不再回传同步状态
|
|
|
+ * 1:网点不存在需要回传的网点表内,改回传同步状态字段为99
|
|
|
+ * 2:回传网点表为空时 一样不回传
|
|
|
* @param orderNo 工单ID
|
|
|
* @param tableName 表名
|
|
|
* @param recordId 记录ID
|
|
|
- * @return
|
|
|
+ * @return false回传, true 不回传
|
|
|
*/
|
|
|
@Override
|
|
|
public Boolean checkWebsitSyncFlagT(String orderNo,String tableName,String recordId){
|
|
@@ -1329,17 +1329,15 @@ public class PublicServiceImpl implements PublicService {
|
|
|
return Boolean.FALSE;
|
|
|
}
|
|
|
|
|
|
- if (order !=null){
|
|
|
- // 售后网点处理
|
|
|
- websit = publicService.ptshwdToshshwd(order.getWebsitId(), order.getMainId());
|
|
|
- SynUploadWebsit websitinfo = synUploadWebsitService.lambdaQuery()
|
|
|
- .eq(SynUploadWebsit::getBrandWebsitNo,websit.getWdId()).one();
|
|
|
- if (websitinfo != null){
|
|
|
- // 回传 找到相应的网点说明该网点需要回传
|
|
|
- return Boolean.FALSE;
|
|
|
- }
|
|
|
- msg = "【"+websitinfo.getBrandWebsitNo() + "】网点工单信息不需要回传";
|
|
|
+ // 售后网点处理
|
|
|
+ websit = publicService.ptshwdToshshwd(order.getWebsitId(), order.getMainId());
|
|
|
+ SynUploadWebsit websitinfo = synUploadWebsitService.lambdaQuery()
|
|
|
+ .eq(SynUploadWebsit::getBrandWebsitNo,websit.getWdId()).one();
|
|
|
+ if (websitinfo != null){
|
|
|
+ // 回传 找到相应的网点说明该网点需要回传
|
|
|
+ return Boolean.FALSE;
|
|
|
}
|
|
|
+ msg = "【"+websitinfo.getBrandWebsitNo() + "】网点工单信息不需要回传";
|
|
|
|
|
|
// 不回传 修改无需同步
|
|
|
uploadService.updateNotSyncT(tableName, recordId,msg);
|