parent
57bc5bb8de
commit
a65fc3e428
36 changed files with 573 additions and 75 deletions
@ -0,0 +1,70 @@ |
||||
package com.daqing.financial.guarantee.model.response; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore; |
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.metadata.BaseRowModel; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.ToString; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 催收列表返回类 |
||||
* |
||||
* @auther River |
||||
* @date 2021/3/23 10:39 |
||||
*/ |
||||
@Data |
||||
@ToString |
||||
public class AlCollectionListResponse extends BaseRowModel implements Serializable { |
||||
|
||||
@ExcelIgnore |
||||
@ApiModelProperty("id") |
||||
private Integer id; |
||||
|
||||
@ExcelProperty(value = "客户编号", index = 0) |
||||
@ApiModelProperty("客户编号") |
||||
private String code; |
||||
|
||||
@ExcelProperty(value = "客户名称", index = 1) |
||||
@ApiModelProperty("客户名称") |
||||
private String name; |
||||
|
||||
@ExcelProperty(value = "逾期金额", index = 2) |
||||
@ApiModelProperty("逾期金额") |
||||
private BigDecimal overdueAmount; |
||||
|
||||
@ExcelProperty(value = "逾期利息", index = 3) |
||||
@ApiModelProperty("逾期利息") |
||||
private BigDecimal overdueInterest; |
||||
|
||||
@ExcelProperty(value = "其他费用", index = 4) |
||||
@ApiModelProperty("其他费用") |
||||
private BigDecimal otherExpenses; |
||||
|
||||
@ExcelProperty(value = "逾期次数", index = 5) |
||||
@ApiModelProperty("逾期次数") |
||||
private Integer overduePeriods; |
||||
|
||||
@ExcelProperty(value = "催收方法", index = 6) |
||||
@ApiModelProperty("催收方法") |
||||
private Integer collectionMethod; |
||||
|
||||
@ExcelProperty(value = "催收人", index = 7) |
||||
@ApiModelProperty("催收人") |
||||
private String collectionUserName; |
||||
|
||||
@ExcelProperty(value = "催收时间", index = 8) |
||||
@ApiModelProperty("催收时间") |
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
||||
private Date collectionTime; |
||||
|
||||
@ExcelProperty(value = "催收反馈", index = 9) |
||||
@ApiModelProperty("催收反馈") |
||||
private String collectionFeedback; |
||||
|
||||
} |
@ -0,0 +1,76 @@ |
||||
package com.daqing.framework.domain.guarantee.po; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Data; |
||||
import lombok.ToString; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 催收列表po类 |
||||
* |
||||
* @auther River |
||||
* @date 2021/3/23 10:17 |
||||
*/ |
||||
@Data |
||||
@ToString |
||||
public class AlCollectionListPO implements Serializable { |
||||
|
||||
/** |
||||
* id |
||||
*/ |
||||
private Integer id; |
||||
|
||||
/** |
||||
*客户编号 |
||||
*/ |
||||
private String code; |
||||
|
||||
/** |
||||
* 客户名称 |
||||
*/ |
||||
private String name; |
||||
|
||||
/** |
||||
* 逾期金额 |
||||
*/ |
||||
private BigDecimal overdueAmount; |
||||
|
||||
/** |
||||
* 逾期利息 |
||||
*/ |
||||
private BigDecimal overdueInterest; |
||||
|
||||
/** |
||||
* 其他费用 |
||||
*/ |
||||
private BigDecimal otherExpenses; |
||||
|
||||
/** |
||||
* 逾期次数 |
||||
*/ |
||||
private Integer overduePeriods; |
||||
|
||||
/** |
||||
* 催收方法 |
||||
*/ |
||||
private Integer collectionMethod; |
||||
|
||||
/** |
||||
* 催收人id |
||||
*/ |
||||
private Integer collectionUser; |
||||
|
||||
/** |
||||
* 催收时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
||||
private Date collectionTime; |
||||
|
||||
/** |
||||
* 催收反馈 |
||||
*/ |
||||
private String collectionFeedback; |
||||
} |
@ -0,0 +1,48 @@ |
||||
package com.daqing.framework.utils.excel; |
||||
|
||||
import com.alibaba.excel.converters.Converter; |
||||
import com.alibaba.excel.enums.CellDataTypeEnum; |
||||
import com.alibaba.excel.metadata.CellData; |
||||
import com.alibaba.excel.metadata.GlobalConfiguration; |
||||
import com.alibaba.excel.metadata.property.ExcelContentProperty; |
||||
|
||||
/** |
||||
* 催收管理状态转换器 |
||||
* |
||||
* @auther River |
||||
* @date 2021/3/24 9:52 |
||||
*/ |
||||
public class CollectionConverter implements Converter<Integer> { |
||||
|
||||
@Override |
||||
public Class supportJavaTypeKey() { |
||||
return Integer.class; |
||||
} |
||||
|
||||
@Override |
||||
public CellDataTypeEnum supportExcelTypeKey() { |
||||
return CellDataTypeEnum.STRING; |
||||
} |
||||
|
||||
@Override |
||||
public Integer convertToJavaData(CellData cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception { |
||||
return 0; |
||||
} |
||||
|
||||
@Override |
||||
public CellData convertToExcelData(Integer value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception { |
||||
|
||||
switch (value) { |
||||
case 1: |
||||
return new CellData("还款中"); |
||||
case 2: |
||||
return new CellData("已逾期"); |
||||
case 3: |
||||
return new CellData("已还清"); |
||||
case 4: |
||||
return new CellData("已结项"); |
||||
default: |
||||
return new CellData(String.valueOf(value)); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue