工作台客户管理企业类型客户修改无法修改企业特有信息问题修复;

团队效率部门获取错误问题处理
master
river 4 years ago
parent fc1c1be218
commit 04f4c8c21b
  1. 1
      dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java
  2. 6
      dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java
  3. 12
      dq-financial-crms/src/main/resources/mapper/crms/CustomerAppletDao.xml
  4. 10
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/AlCollectionController.java
  5. 3
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java
  6. 15
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/OrdinaryUtil.java
  7. 2
      dq-financial-guarantee/src/main/resources/mapper/guarantee/AlCollectionMapper.xml
  8. 4
      dq-govern-gateway/src/main/resources/jwt.properties

@ -370,7 +370,6 @@ public class CustomerAppletServiceImpl extends ServiceImpl<CustomerAppletDao, Cu
public Map getApplyMount() { public Map getApplyMount() {
// 这个是否填小数没有影响,主要要是看赋予或计算的值是否包含小数 // 这个是否填小数没有影响,主要要是看赋予或计算的值是否包含小数
BigDecimal company = new BigDecimal(0.00); BigDecimal company = new BigDecimal(0.00);
// Double company = 0.00;
Map<String, BigDecimal> map = new HashMap<>(); Map<String, BigDecimal> map = new HashMap<>();
map.put("company", company); map.put("company", company);
// 个人类型暂时没有 // 个人类型暂时没有

@ -669,12 +669,12 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity
//根据id查询crms_company_customer表里面的customerId //根据id查询crms_company_customer表里面的customerId
CompanyCustomerEntity entity = companyCustomerDao.selectOne(new QueryWrapper<CompanyCustomerEntity>() CompanyCustomerEntity entity = companyCustomerDao.selectOne(new QueryWrapper<CompanyCustomerEntity>()
.eq("customer_id", customerEntity.getId())); .eq("customer_id", customerEntity.getId()));
companyCustomerEntity.setCustomerId(entity.getId()); companyCustomerEntity.setCustomerId(customerEntity.getId());
int company = companyCustomerDao.update(companyCustomerEntity, new QueryWrapper<CompanyCustomerEntity>() int company = companyCustomerDao.update(companyCustomerEntity, new QueryWrapper<CompanyCustomerEntity>()
.eq("customer_id", companyCustomerEntity.getCustomerId())); .eq("customer_id", companyCustomerEntity.getCustomerId()));
//根据企业id删除关联关系 //根据企业id删除关联关系
crmsCustomerRelatedMapper.delete(new QueryWrapper<CrmsCustomerRelated>().eq("customer_id",entity.getId()));//companyCustomerEntity.getId() crmsCustomerRelatedMapper.delete(new QueryWrapper<CrmsCustomerRelated>().eq("customer_id", entity.getId()));//companyCustomerEntity.getId()
//绑定关联关系 //绑定关联关系
List<CrmsCustomerRelated> relatedList = new ArrayList<>(); List<CrmsCustomerRelated> relatedList = new ArrayList<>();
@ -683,7 +683,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity
for (int i = 0; i < intList.size(); i++) { for (int i = 0; i < intList.size(); i++) {
CrmsCustomerRelated crmsCustomerRelated = new CrmsCustomerRelated(); CrmsCustomerRelated crmsCustomerRelated = new CrmsCustomerRelated();
Integer integer = intList.get(i); Integer integer = intList.get(i);
crmsCustomerRelated.setCustomerId(companyCustomerEntity.getCustomerId().intValue());//企业id companyCustomerEntity.getId().intValue() crmsCustomerRelated.setCustomerId(entity.getId().intValue());//企业id companyCustomerEntity.getId().intValue()
crmsCustomerRelated.setRelatedId(integer);//关联人/企业id crmsCustomerRelated.setRelatedId(integer);//关联人/企业id
relatedList.add(crmsCustomerRelated); relatedList.add(crmsCustomerRelated);
} }

@ -8,11 +8,19 @@
</insert> </insert>
<select id="getCustomerStatus" resultType="integer"> <select id="getCustomerStatus" resultType="integer">
SELECT COUNT(id) FROM crms_customer_user WHERE user_id = #{userId} AND type = #{type} SELECT COUNT(cu.id) FROM crms_customer_user AS cu
INNER JOIN crms_customer AS c
ON cu.customer_id = c.id
WHERE c.del_or_not = 0
AND cu.user_id = #{userId} AND cu.type = #{type}
</select> </select>
<select id="getCustomerId" resultType="integer"> <select id="getCustomerId" resultType="integer">
SELECT customer_id FROM crms_customer_user WHERE user_id = #{userId} AND type = #{type} SELECT cu.customer_id FROM crms_customer_user AS cu
INNER JOIN crms_customer AS c
ON cu.customer_id = c.id
WHERE c.del_or_not = 0
AND cu.user_id = #{userId} AND cu.type = #{type}
</select> </select>
<!-- 更新客户基本信息 --> <!-- 更新客户基本信息 -->

@ -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.AlCollectionListResponse;
import com.daqing.financial.guarantee.model.response.AlCollectionResponse; import com.daqing.financial.guarantee.model.response.AlCollectionResponse;
import com.daqing.financial.guarantee.model.response.MoreOverdueDetailResponse; 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.financial.guarantee.service.IAlCollectionService;
import com.daqing.framework.domain.guarantee.AlCollection; import com.daqing.framework.domain.guarantee.AlCollection;
import com.daqing.framework.model.response.ResponseResult; 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.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid; import javax.validation.Valid;
import java.io.IOException; import java.io.*;
import java.util.List; import java.util.List;
/** /**
@ -62,7 +64,7 @@ public class AlCollectionController {
* 催收时展示的详情 * 催收时展示的详情
*/ */
@GetMapping("/overdue/detail") @GetMapping("/overdue/detail")
@ApiOperation(value = "催收时展示的详情", notes = "催收时展示的详情") @ApiOperation(value = "催收时展示的详情", notes = "催收时展示的详情", response = OverdueDetailResponse.class)
public ResponseResult overdueDetail(@RequestParam("insuranceId") Integer insuranceId) { public ResponseResult overdueDetail(@RequestParam("insuranceId") Integer insuranceId) {
return ResponseResult.SUCCESS(alCollectionService.overdueDetail(insuranceId)); return ResponseResult.SUCCESS(alCollectionService.overdueDetail(insuranceId));
@ -103,8 +105,8 @@ public class AlCollectionController {
* 催收列表导出 * 催收列表导出
*/ */
@ApiOperation(value = "催收列表导出", notes = "催收列表导出") @ApiOperation(value = "催收列表导出", notes = "催收列表导出")
@PostMapping("/collection/list/export/excel") @GetMapping("/collection/list/export/excel")
public ResponseResult collectionListExportExcel(@RequestBody List<Integer> ids, HttpServletResponse response) throws IOException { public ResponseResult collectionListExportExcel(@RequestParam("ids") List<Integer> ids, HttpServletResponse response) throws IOException {
alCollectionService.collectionListExportExcel(ids, response); alCollectionService.collectionListExportExcel(ids, response);
return ResponseResult.SUCCESS(); return ResponseResult.SUCCESS();

@ -185,6 +185,9 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
map.put(processId, time + ",1"); map.put(processId, time + ",1");
String[] departmentIds = departmentIdList.split(","); String[] departmentIds = departmentIdList.split(",");
for (String departmentId : departmentIds) { for (String departmentId : departmentIds) {
if (departmentId.equals("0")) {
continue;
}
// 没有当前部门的数据,直接新建一个 // 没有当前部门的数据,直接新建一个
if (hashMap.get(Integer.parseInt(departmentId)) == null) { if (hashMap.get(Integer.parseInt(departmentId)) == null) {
hashMap.put(Integer.parseInt(departmentId), map); hashMap.put(Integer.parseInt(departmentId), map);

@ -32,7 +32,20 @@ public class OrdinaryUtil {
*/ */
public static String getDepartmentId(Integer userId) { public static String getDepartmentId(Integer userId) {
String departmentIds = ordinaryUtil.hrmsFeignService.getDepartmentIds(userId); String departmentIds = ordinaryUtil.hrmsFeignService.getDepartmentIds(userId);
if (departmentIds == null || departmentIds.length() == 0) {
departmentIds = "0";
} else {
boolean flag = true;
// 判断departmentIds是不是"1,2,3,4"这种格式,不是就设置为"0"
for (int i = 0; i < departmentIds.length(); i++) {
if ("0123456789,".indexOf(departmentIds.charAt(i)) == -1) {
flag = false;
}
}
if (!flag) {
departmentIds = "0";
}
}
return departmentIds; return departmentIds;
} }
} }

@ -40,7 +40,7 @@
</insert> </insert>
<select id="getOverdueDetailByInsuranceId" parameterType="integer" resultType="com.daqing.financial.guarantee.model.response.OverdueDetailResponse"> <select id="getOverdueDetailByInsuranceId" parameterType="integer" resultType="com.daqing.financial.guarantee.model.response.OverdueDetailResponse">
SELECT i.business_code AS code,i.customer_name AS name,i.business_type AS type,COUNT(c.id) AS numberOfCollection SELECT i.customer_name AS name,i.business_type AS type,i.business_code AS code,COUNT(c.id) AS number_of_collection
FROM al_insurance_list AS i FROM al_insurance_list AS i
INNER JOIN al_collection AS c INNER JOIN al_collection AS c
ON i.id = c.insurance_id ON i.id = c.insurance_id

@ -32,7 +32,9 @@ jwt.ignoreUrlList=/apiHrmsAuth/hrms/auth/userlogin/getBackPwd,\
/api-guarantee/dg-copy-user/exportCopyForMe,\ /api-guarantee/dg-copy-user/exportCopyForMe,\
/apiHrmsAuth/hrms/auth/userlogin/wxAuthLogin,\ /apiHrmsAuth/hrms/auth/userlogin/wxAuthLogin,\
/api-guarantee/al-insurance-list/excelExport,\ /api-guarantee/al-insurance-list/excelExport,\
/api-guarantee/al-repayment-entry/excelExport /api-guarantee/al-repayment-entry/excelExport,\
/api-guarantee/al-collection/list/export/excel,\
/api-guarantee/al-collection/collection/list/export/excel

Loading…
Cancel
Save