소스 검색

1.修复个贷已办条件查询报错

GouGengquan 6 달 전
부모
커밋
5006ab290a

+ 2 - 1
biz-base/src/main/java/com/dayou/controller/PersonalProductionController.java

@@ -12,6 +12,7 @@ import com.dayou.entity.PersonalProduction;
 import com.dayou.exception.ErrorCode;
 import com.dayou.utils.HttpKit;
 import com.dayou.workflow.annotation.FinishTask;
+import com.fasterxml.jackson.core.JsonProcessingException;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -46,7 +47,7 @@ public class PersonalProductionController extends BaseController {
      * 个贷产品文档生成
      */
     @GetMapping("/{personalId}/{tag}")
-    public RestResponse<Boolean> genFile(@PathVariable("personalId") Long personalId,@PathVariable("tag") Integer tag){
+    public RestResponse<Boolean> genFile(@PathVariable("personalId") Long personalId,@PathVariable("tag") Integer tag) throws JsonProcessingException {
         Boolean ret = personalProductionService.genFile(personalId,tag);
         return RestResponse.data(ret);
      }

+ 1 - 1
dao/src/main/resources/mapper/WorkTaskRecordMapper.xml

@@ -406,7 +406,7 @@
                 ( SELECT * FROM work_flow_log WHERE handler_id = #{todoVO.handlerId} and business_type='PERSONAL_BUSINESS' ) wf
                     LEFT JOIN ( SELECT id, node_id, business_id ,state FROM work_flow_node_instance ) wfni ON wf.instance_id = wfni.id
                     LEFT JOIN ( SELECT id, name FROM work_node WHERE deleted = 0 ) wn ON wn.id = wfni.node_id
-                    LEFT JOIN ( 	SELECT p.id, p.order_id, p.location,cc.name as clientName,cc1.name as clientSubName,p.bailorA,p.bailorB FROM personal p left join customer_company cc on cc.id =
+                    LEFT JOIN ( 	SELECT p.bailorA_tel AS bailoraTel, p.bailorB_tel AS bailorbTel,  p.id, p.order_id, p.location,cc.name as clientName,cc1.name as clientSubName,p.bailorA,p.bailorB FROM personal p left join customer_company cc on cc.id =
                                                                                                                                                                                             p.clientele_id left join customer_company cc1 on cc1.id = p.clientele_sub_id
                                    WHERE p.deleted = 0) p ON p.id = wf.business_id
                     LEFT JOIN user u ON u.id = wf.handler_id

+ 2 - 7
service/src/main/java/com/dayou/service/impl/PersonalProductionServiceImpl.java

@@ -123,7 +123,7 @@ public class PersonalProductionServiceImpl extends ServiceImpl<PersonalProductio
     }
 
     @Override
-    public Boolean genFile(Long personalId, Integer tag) {
+    public Boolean genFile(Long personalId, Integer tag) throws JsonProcessingException {
         //获取提供的证件信息
         Personal personal = personalService.getOne(new LambdaQueryWrapper<Personal>().select(Personal::getCredentials).eq(BaseEntity::getId, personalId).eq(BaseEntity::getDeleted, Boolean.FALSE));
         String orderId = personalService.getOne(new LambdaQueryWrapper<Personal>().eq(BaseEntity::getId, personalId).select(Personal::getOrderId).eq(BaseEntity::getDeleted, Boolean.FALSE)).getOrderId();
@@ -134,12 +134,7 @@ public class PersonalProductionServiceImpl extends ServiceImpl<PersonalProductio
 
         PersonalSellingAbilityVO sell = JSON.parseObject(target.getSellingAbility(), PersonalSellingAbilityVO.class);
         ObjectMapper mapper = new ObjectMapper();
-        JsonNode rootNode = null;
-        try {
-            rootNode = mapper.readTree(target.getLandCertificate());
-        } catch (JsonProcessingException e) {
-            throw new RuntimeException(e);
-        }
+        JsonNode rootNode = mapper.readTree(target.getLandCertificate());
         sell.setLimitDate(rootNode.path("limitDateD").asText());
         PersonalBackgroundInfo bg = JSON.parseObject(target.getBackgroundInfo(), PersonalBackgroundInfo.class);
         PersonalEntityInfoVO en = JSON.parseObject(target.getEntityInfo(), PersonalEntityInfoVO.class);