LAPTOP-FO2T5SIU\35838 5 miesięcy temu
rodzic
commit
9b2ffb64b7

+ 3 - 2
pro-base/src/main/java/com/idea/invoice/task/InvoiceTask.java

@@ -208,8 +208,9 @@ public class InvoiceTask {
      */
     public void customerAssign() {
 
-
-        List<CustomerManagement> customerManagements = customerManagementService.selectByExample(new CustomerManagementExample());
+        CustomerManagementExample example = new CustomerManagementExample();
+        example.createCriteria().andNcidIsNotNull();
+        List<CustomerManagement> customerManagements = customerManagementService.selectByExample(example);
         for(CustomerManagement customerManagement : customerManagements){
             try {
                 ParkInfo parkInfo = parkInfoMapper.selectByPrimaryKey(customerManagement.getGroupId());

+ 0 - 1
pro-base/src/main/java/com/idea/invoice/util/InvoiceUtil.java

@@ -185,7 +185,6 @@ public class InvoiceUtil {
         APICurUtils util = new APICurUtils();
         String token = InvoiceUtil.getToken(util);
         util.setApiUrl("nccloud/api/wxyy/uapbd/customer/assign");
-        log.info("客户分配传参:{}", json.toJSONString());
         String result = util.getAPIRetrun(token, json.toJSONString());
         log.info("客户分配结果:{}", result);
     }

+ 2 - 1
pro-wx/src/main/java/com/idea/pro/wx/controller/buildManage/WxParkRoomController.java

@@ -202,8 +202,9 @@ public class WxParkRoomController extends BaseController {
 //        customerManagementService.tempCusUpdate(file);
 //        customerManagementService.tempCusUpdate2(file);
 //        customerManagementService.tempContractUpdate(file);
-        invoiceTask.sendCustomer();
+//        invoiceTask.sendCustomer();
 //        customerManagementService.tempDepositUpdate(file);
+        invoiceTask.customerAssign();
 
         return success();
     }