From 04f4c8c21b835a79bb52d2db8d2e6613747f2ac7 Mon Sep 17 00:00:00 2001 From: river <1376754470@qq.com> Date: Fri, 26 Mar 2021 17:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BC=81=E4=B8=9A=E7=B1=BB=E5=9E=8B=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BF=AE=E6=94=B9=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=89=B9=E6=9C=89=E4=BF=A1=E6=81=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D;=20=E5=9B=A2=E9=98=9F=E6=95=88?= =?UTF-8?q?=E7=8E=87=E9=83=A8=E9=97=A8=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CustomerAppletServiceImpl.java | 1 - .../crms/service/impl/CustomerServiceImpl.java | 6 +++--- .../resources/mapper/crms/CustomerAppletDao.xml | 12 ++++++++++-- .../controller/AlCollectionController.java | 10 ++++++---- .../service/impl/DgEfficiencyServiceImpl.java | 3 +++ .../financial/guarantee/util/OrdinaryUtil.java | 15 ++++++++++++++- .../mapper/guarantee/AlCollectionMapper.xml | 2 +- .../src/main/resources/jwt.properties | 4 +++- 8 files changed, 40 insertions(+), 13 deletions(-) diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java index 8a83ff51..6dd29159 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java @@ -370,7 +370,6 @@ public class CustomerAppletServiceImpl extends ServiceImpl map = new HashMap<>(); map.put("company", company); // 个人类型暂时没有 diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java index 227cb424..392c5367 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java @@ -669,12 +669,12 @@ public class CustomerServiceImpl extends ServiceImpl() .eq("customer_id", customerEntity.getId())); - companyCustomerEntity.setCustomerId(entity.getId()); + companyCustomerEntity.setCustomerId(customerEntity.getId()); int company = companyCustomerDao.update(companyCustomerEntity, new QueryWrapper() .eq("customer_id", companyCustomerEntity.getCustomerId())); //根据企业id删除关联关系 - crmsCustomerRelatedMapper.delete(new QueryWrapper().eq("customer_id",entity.getId()));//companyCustomerEntity.getId() + crmsCustomerRelatedMapper.delete(new QueryWrapper().eq("customer_id", entity.getId()));//companyCustomerEntity.getId() //绑定关联关系 List relatedList = new ArrayList<>(); @@ -683,7 +683,7 @@ public class CustomerServiceImpl extends ServiceImpl diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/AlCollectionController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/AlCollectionController.java index d61b4c38..bb2aea39 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/AlCollectionController.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/AlCollectionController.java @@ -6,6 +6,7 @@ import com.daqing.financial.guarantee.model.request.AlCollectionRequest; import com.daqing.financial.guarantee.model.response.AlCollectionListResponse; import com.daqing.financial.guarantee.model.response.AlCollectionResponse; import com.daqing.financial.guarantee.model.response.MoreOverdueDetailResponse; +import com.daqing.financial.guarantee.model.response.OverdueDetailResponse; import com.daqing.financial.guarantee.service.IAlCollectionService; import com.daqing.framework.domain.guarantee.AlCollection; import com.daqing.framework.model.response.ResponseResult; @@ -15,9 +16,10 @@ import io.swagger.annotations.ApiParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.validation.Valid; -import java.io.IOException; +import java.io.*; import java.util.List; /** @@ -62,7 +64,7 @@ public class AlCollectionController { * 催收时展示的详情 */ @GetMapping("/overdue/detail") - @ApiOperation(value = "催收时展示的详情", notes = "催收时展示的详情") + @ApiOperation(value = "催收时展示的详情", notes = "催收时展示的详情", response = OverdueDetailResponse.class) public ResponseResult overdueDetail(@RequestParam("insuranceId") Integer insuranceId) { return ResponseResult.SUCCESS(alCollectionService.overdueDetail(insuranceId)); @@ -103,8 +105,8 @@ public class AlCollectionController { * 催收列表导出 */ @ApiOperation(value = "催收列表导出", notes = "催收列表导出") - @PostMapping("/collection/list/export/excel") - public ResponseResult collectionListExportExcel(@RequestBody List ids, HttpServletResponse response) throws IOException { + @GetMapping("/collection/list/export/excel") + public ResponseResult collectionListExportExcel(@RequestParam("ids") List ids, HttpServletResponse response) throws IOException { alCollectionService.collectionListExportExcel(ids, response); return ResponseResult.SUCCESS(); diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java index 72341baa..7f73c76d 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java @@ -185,6 +185,9 @@ public class DgEfficiencyServiceImpl extends ServiceImpl