yaozhixue vor 1 Jahr
Ursprung
Commit
70e13d65b7

+ 11 - 0
src/main/java/com/zfire/jiasm/syncdata/service/impl/InstallProduceUploadListServiceImpl.java

@@ -44,6 +44,8 @@ public class InstallProduceUploadListServiceImpl implements InstallProduceUpload
     OrderProductService orderProductService;
     @Resource
     OrderInformationService orderInformationService;
+    @Resource
+    TestService testService;
 
 
 
@@ -54,10 +56,19 @@ public class InstallProduceUploadListServiceImpl implements InstallProduceUpload
         List<OutJiasmToGreeUploadTaskList> ojtgutls = new ArrayList<>();
         log.info("开始预处理需要上传的工单数据: \uF0B7{}",sdf.format(new Date()));
 
+        //测试使用
+        Test orderno = testService.lambdaQuery()
+                .eq(Test::getFlag,1)
+                .last("limit 1").one();
+        if (orderno==null){
+            return;
+        }
+
         // 从需要上传的订单数据表中提取数据
         taskResults = outJiasmToGreeUploadnotifylistService.lambdaQuery()
                 .eq(OutJiasmToGreeUploadnotifylist::getSynStatus, SynStatusEnum.UN_SYN.getCode())
                 // .eq(OutJiasmToGreeUploadnotifylist::getSynReqId, 20916)// 测试用
+                .eq(OutJiasmToGreeUploadnotifylist::getOrderNo, orderno.getId())// 测试用
                 .orderByAsc(OutJiasmToGreeUploadnotifylist::getSynReqId)
                 .list();
         try {

+ 1 - 1
src/main/resources/bootstrap-prd.properties

@@ -109,7 +109,7 @@ gree.V3.client.secert=3b23c33b-106d-4837-b506-7779335247d9
 baseurl4pgid=https://api-sms.gree.com/api/sso/autoapp-default-server-greeshservice/
 
 ######################## 上传格力总部文件 ##############################
-downfileurl=https://api-sms.gree.com/api/pub/nts-foundation-attachmentmanager/api/v2/attachment/download?id=%s&access_token=%sdownfileurl=https://api-sms.gree.com/api/pub/nts-foundation-attachmentmanager/api/v2/attachment/download?id=%s&access_token=%s
+downfileurl=https://api-sms.gree.com/api/pub/nts-foundation-attachmentmanager/api/v2/attachment/download?id=%s&access_token=%s
 sevefileurl=https://api-sms.gree.com/api/sso/nts-foundation-attachmentmanager/api/v2/attachment/saveFileInfo
 imageurl=https://api-sms.gree.com/api/sso/nts-foundation-attachmentmanager/api/v2/attachment/saveFileInfo
 imagesign=https://api-sms.gree.com/api/sso/nts-foundation-attachmentmanager/api/v2/attachment/getSignWithWdno?wdno=%s