Browse Source

账龄表更新

pruple_boy 5 months ago
parent
commit
b8089bdd3b

+ 5 - 2
mjava-lanyun/src/main/java/com/malk/lanyun/service/impl/FImplService.java

@@ -11,6 +11,7 @@ import com.malk.service.aliwork.YDService;
 import com.malk.utils.UtilDateTime;
 import com.malk.utils.UtilList;
 import com.malk.utils.UtilMap;
+import lombok.SneakyThrows;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -46,7 +47,7 @@ private YDService ydService;
     public void syncCallLetters() {
         List<Map> dataList = ydService.queryFormData_all(_initLYParam()
                 .formUuid("FORM-EC785A5AB2B9432C892062823EB7C62A9NTL")
-//                .searchFieldJson(JSON.toJSONString(UtilMap.map("selectField_lvituew9, radioField_m4qrz687", "正常", "否")))
+                .searchFieldJson(JSON.toJSONString(UtilMap.map("selectField_lvituew9, radioField_m4qrz687", "正常", "否")))
                 .build());
         // 更新数据版本, upsert不支持版本更新
 //        if (true) {
@@ -121,11 +122,12 @@ private YDService ydService;
      * 蓝云, 全量同步账龄表 [todo 后续可调整为同步前一天更新数据]
      */
     @Override
+    @SneakyThrows
     public void syncAgingSchedule() {
 
         List<Map> dataList = ydService.queryFormData_all(_initLYParam()
                 .formUuid("FORM-6603375ED27B4D059CBB919C2BEFA44BZVOL")
-                .searchFieldJson(JSON.toJSONString(UtilMap.map("textField_lvdosccc", "KP_2024120501538")))
+//                .searchFieldJson(JSON.toJSONString(UtilMap.map("textField_lvdosccc", "KP_2024120501538")))
                 .build());
 
         // 合同业务类型: 日保一次性与小业主一致
@@ -227,6 +229,7 @@ private YDService ydService;
                 float figure = UtilMap.getFloat(dataForm, "numberField_lvdnme0z") - UtilMap.getFloat(dataForm, "numberField_lvg084l9");
                 dataForm.put("radioField_m4qrz687", figure == 0 ? "是" : "否");
                 dataForm.put("numberField_m4qrz685", figure);
+                //Thread.sleep(30);
                 ydClient.operateData(_initLYParam()
                         .searchCondition(JSON.toJSONString(searchCondition))
                         .formUuid("FORM-EC785A5AB2B9432C892062823EB7C62A9NTL")