Commit 2218359a by 崔彦峰

1、到账伴侣-审批列表(H5)修改入参custType类型,保持统一。

2、接口dj.smartcarlife.api.nbcb.acc.detail.page、dj.smartcarlife.api.nbcb.acc.detail.config、dj.smartcarlife.api.nbcb.acc.detail.refetch、dj.smartcarlife.api.nbcb.acc.detail.export.async接口service逻辑通过custType类型查询custId。
1 parent ccb93980
...@@ -2,6 +2,7 @@ package cn.com.glsx.dj.financial.dto; ...@@ -2,6 +2,7 @@ package cn.com.glsx.dj.financial.dto;
import cn.com.glsx.dj.financial.model.NbCbAccDetail; import cn.com.glsx.dj.financial.model.NbCbAccDetail;
import cn.com.glsx.dj.financial.model.NbCbDetailLog; import cn.com.glsx.dj.financial.model.NbCbDetailLog;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -103,4 +104,7 @@ public class NbCbAccDetailDTO extends NbCbAccDetail { ...@@ -103,4 +104,7 @@ public class NbCbAccDetailDTO extends NbCbAccDetail {
*/ */
private Byte receiptJdSync; private Byte receiptJdSync;
@ApiModelProperty(name = "custType", notes = "主体类型:1-广联 2-优加", dataType = "String")
private Integer custType;
} }
...@@ -32,7 +32,7 @@ public class H5ApprovalRecordRequest implements Serializable { ...@@ -32,7 +32,7 @@ public class H5ApprovalRecordRequest implements Serializable {
private Date endDate; private Date endDate;
@ApiModelProperty(name = "custType", notes = "主体类型:1-广联 2-优加", dataType = "String") @ApiModelProperty(name = "custType", notes = "主体类型:1-广联 2-优加", dataType = "String")
private String custType; private Integer custType;
@ApiModelProperty(name = "custId", notes = "主体id(前端不需要传)", dataType = "String") @ApiModelProperty(name = "custId", notes = "主体id(前端不需要传)", dataType = "String")
private String custId; private String custId;
......
...@@ -152,7 +152,7 @@ public class ApprovalRecordService { ...@@ -152,7 +152,7 @@ public class ApprovalRecordService {
*/ */
public Page<H5ApprovalRecordDTO> getH5ApprovalRecordList(RpcPagination<H5ApprovalRecordRequest> pagination) { public Page<H5ApprovalRecordDTO> getH5ApprovalRecordList(RpcPagination<H5ApprovalRecordRequest> pagination) {
Page<H5ApprovalRecordDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(), pagination.isNeedCount()); Page<H5ApprovalRecordDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(), pagination.isNeedCount());
if (StringUtils.isNotBlank(pagination.getCondition().getCustType())) { if (pagination.getCondition().getCustType() != null) {
Example example = new Example(NbCbCustInfo.class); Example example = new Example(NbCbCustInfo.class);
example.createCriteria().andEqualTo("delFlag",0) example.createCriteria().andEqualTo("delFlag",0)
.andEqualTo("custType", pagination.getCondition().getCustType()); .andEqualTo("custType", pagination.getCondition().getCustType());
......
...@@ -607,8 +607,11 @@ public class NbCbAccDetailService { ...@@ -607,8 +607,11 @@ public class NbCbAccDetailService {
RpcAssert.assertNotNull(pagination, DefaultErrorEnum.DATA_NULL, "pagination not be null"); RpcAssert.assertNotNull(pagination, DefaultErrorEnum.DATA_NULL, "pagination not be null");
try { try {
Page<NbCbAccDetailDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(), pagination.isNeedCount()); Page<NbCbAccDetailDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(), pagination.isNeedCount());
//获取主体配置
String custId = nbCbCustInfoService.getCustIdByType(pagination.getCondition().getCustType());
NbCbAccDetailDTO condition = pagination.getCondition(); NbCbAccDetailDTO condition = pagination.getCondition();
condition.setCustId(env.getProperty("nbcb.custId", "9000919969")); // condition.setCustId(env.getProperty("nbcb.custId", "9000919969"));
condition.setCustId(custId);
List<NbCbAccDetailDTO> list = nbCbAccDetailMapper.list(condition); List<NbCbAccDetailDTO> list = nbCbAccDetailMapper.list(condition);
List<String> subSerialNoList = list.stream().map(NbCbAccDetailDTO::getSubSerialNo).collect(Collectors.toList()); List<String> subSerialNoList = list.stream().map(NbCbAccDetailDTO::getSubSerialNo).collect(Collectors.toList());
...@@ -738,7 +741,8 @@ public class NbCbAccDetailService { ...@@ -738,7 +741,8 @@ public class NbCbAccDetailService {
throw new RpcServiceException(DefaultErrorEnum.VALIDATE_FAILED, "交易开始时间不能大于交易结束时间"); throw new RpcServiceException(DefaultErrorEnum.VALIDATE_FAILED, "交易开始时间不能大于交易结束时间");
} }
//先默认为广联主体 //先默认为广联主体
String custId = nbCbCustInfoService.getCustIdByType(NbCbCustEnum.GL_CUST.getCustType()); // String custId = nbCbCustInfoService.getCustIdByType(NbCbCustEnum.GL_CUST.getCustType());
String custId = nbCbCustInfoService.getCustIdByType(nbCbAccDetailDTO.getCustType());
NbCbAccDetailDTO condition = new NbCbAccDetailDTO(); NbCbAccDetailDTO condition = new NbCbAccDetailDTO();
condition.setAccNameList(nbCbAccDetailDTO.getAccNameList()); condition.setAccNameList(nbCbAccDetailDTO.getAccNameList());
condition.setBankType(nbCbAccDetailDTO.getBankType()); condition.setBankType(nbCbAccDetailDTO.getBankType());
...@@ -792,7 +796,8 @@ public class NbCbAccDetailService { ...@@ -792,7 +796,8 @@ public class NbCbAccDetailService {
public NbCbAccDetailDTO accDetailConfig(NbCbAccDetailDTO condition) { public NbCbAccDetailDTO accDetailConfig(NbCbAccDetailDTO condition) {
try { try {
String custId = nbCbCustInfoService.getCustIdByType(NbCbCustEnum.GL_CUST.getCustType()); // String custId = nbCbCustInfoService.getCustIdByType(NbCbCustEnum.GL_CUST.getCustType());
String custId = nbCbCustInfoService.getCustIdByType(condition.getCustType());
condition.setCustId(custId); condition.setCustId(custId);
NbCbAccDetailDTO nbCbAccDetailDTO = new NbCbAccDetailDTO(); NbCbAccDetailDTO nbCbAccDetailDTO = new NbCbAccDetailDTO();
nbCbAccDetailDTO.setAccNameList(nbCbAccDetailMapper.selectAccNameList(condition)); nbCbAccDetailDTO.setAccNameList(nbCbAccDetailMapper.selectAccNameList(condition));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!