Преглед изворни кода

增加个人刷新认证状态按钮

fengx пре 9 месеци
родитељ
комит
1c165b16f3

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

@@ -73,4 +73,6 @@ public interface IElectronicSignaturePersonalService extends IService<Electronic
      * @return
      */
     GridPage findByComName(String name,Integer status, Integer page, Integer rows);
+
+    void flush(Long id);
 }

+ 12 - 4
src/main/java/com/sunxung/factoring/service/customerinformation/impl/ElectronicSignaturePersonalServiceImpl.java

@@ -5,10 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.github.pagehelper.Page;
 import com.github.pagehelper.PageHelper;
 import com.sunxung.factoring.component.exception.ValidatorException;
-import com.sunxung.factoring.component.util.CodeUtil;
-import com.sunxung.factoring.component.util.CollectionUtil;
-import com.sunxung.factoring.component.util.ElectronicSignatureUtil;
-import com.sunxung.factoring.component.util.StringUtil;
+import com.sunxung.factoring.component.util.*;
 import com.sunxung.factoring.entity.GridPage;
 import com.sunxung.factoring.entity.acceptance.AcceptanceSignConfirmationElectronicInfo;
 import com.sunxung.factoring.entity.customerinformation.ElectronicSignaturePersonal;
@@ -59,6 +56,17 @@ public class ElectronicSignaturePersonalServiceImpl extends ServiceImpl<Electron
         return new GridPage(rows,page,objectPage.getTotal(),list);
     }
 
+    @Override
+    public void flush(Long id) {
+        ElectronicSignaturePersonal electronicSignaturePersonal = getById(id);
+        //获取认证状态
+        String result = ElectronicSignatureUtil.getAuthInfo(electronicSignaturePersonal.getFddCustomerId(), "1");
+        if ("1".equals(result)){
+            electronicSignaturePersonal.setAuthStatus(1);
+            updateById(electronicSignaturePersonal);
+        }
+    }
+
     @Override
     public List<ElectronicSignaturePersonal> findByIdForC(Long id) {
         List<ElectronicSignaturePersonal> list ;

+ 14 - 0
src/main/java/com/sunxung/factoring/web/customerinformation/ElectronicSignaturePersonalController.java

@@ -120,4 +120,18 @@ public class ElectronicSignaturePersonalController {
         return new ResponseJson("删除成功!");
     }
 
+
+
+    /**
+     * 刷新认证状态
+     * @return
+     */
+    @RequestMapping("flush")
+    @ResponseBody
+    @OperationLog(operationModule = "电子签个人",operationType = OperationTypeEnum.UPDATE,description = "刷新认证")
+    public ResponseJson flush(Long id) {
+        electronicSignaturePersonalService.flush(id);
+        return new ResponseJson("刷新成功");
+    }
+
 }