瀏覽代碼

同步sop签章状态

fengx 7 月之前
父節點
當前提交
20c189f4f7

+ 2 - 0
src/main/java/com/sunxung/factoring/service/customerinformation/CustomerService.java

@@ -121,4 +121,6 @@ public interface CustomerService extends IService<Customer> {
     void flushUrl(Long id);
 
     void flushUrlByCompany(Long id);
+
+    void flushStatusBySop(String code, Integer type);
 }

+ 15 - 0
src/main/java/com/sunxung/factoring/service/customerinformation/impl/CustomerServiceImpl.java

@@ -11,6 +11,7 @@ import com.sunxung.factoring.component.util.*;
 import com.sunxung.factoring.entity.GridPage;
 import com.sunxung.factoring.entity.ResponseJson;
 import com.sunxung.factoring.entity.ValidatorEntity;
+import com.sunxung.factoring.entity.acceptance.CAcceptancePriceAdjustInfo;
 import com.sunxung.factoring.entity.customerinformation.Customer;
 import com.sunxung.factoring.entity.customerinformation.SupplierBankCardInfo;
 import com.sunxung.factoring.entity.entprise.Enterprise;
@@ -398,6 +399,20 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
         iEnterpriseService.updateById(enterprise);
     }
 
+    @Override
+    public void flushStatusBySop(String code, Integer type) {
+        Enterprise enterprise = iEnterpriseService.getOne(new QueryWrapper<Enterprise>().eq("fdd_customer_id", code)
+                .orderByDesc("gmt_create").last("limit 1"));
+        if (enterprise != null){
+            if (type == 1){
+                enterprise.setAutoSignStatus(1);
+            }else if (type == 2){
+                enterprise.setCertificateSignStatus(1);
+            }
+            iEnterpriseService.updateById(enterprise);
+        }
+    }
+
     /**
      * 填充是否能够删除
      *

+ 9 - 0
src/main/java/com/sunxung/factoring/web/customerinformation/CustomerController.java

@@ -178,6 +178,15 @@ public class CustomerController {
         return new ResponseJson("认证链接刷新成功");
     }
 
+
+
+    @ResponseBody
+    @RequestMapping("flushStatusBySop")
+    public ResponseJson flushUrlByTrade(String code,Integer type){
+        customerService.flushStatusBySop(code,type);
+        return new ResponseJson("刷新成功");
+    }
+
     /**
      * 查询详情
      *

+ 1 - 0
src/main/resources/application-prod.yml

@@ -185,3 +185,4 @@ auth:
       - tradeV4-backend/businessProcessingTask/doBusinessHistoryView
       - tradeV4-backend/saleInvoice/doAdd
       - tradeV4-backend/saleInvoice/c_doUpdate
+      - customer/flushStatusBySop