fix: 系统功能升级,账户增加status字段,修改相关功能。
This commit is contained in:
@@ -61,10 +61,15 @@ public class Accounts extends BaseEntity
|
||||
/** 账户主键 */
|
||||
private Long accountId;
|
||||
|
||||
/** 账户显示隐藏状态 */
|
||||
@ApiModelProperty(value="账户显示隐藏状态")
|
||||
@Excel(name = "账户显示隐藏状态")
|
||||
private String state;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
@Excel(name = "账户状态")
|
||||
private String state;
|
||||
private String status;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -84,6 +89,7 @@ public class Accounts extends BaseEntity
|
||||
.append("remark", getRemark())
|
||||
.append("accountId", getAccountId())
|
||||
.append("state", getState())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,6 +126,10 @@ public class BankCardLend extends BaseEntity
|
||||
@ApiModelProperty(value="可用额度")
|
||||
private Double availableLimit;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
@Excel(name = "账户状态")
|
||||
private String status;
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -154,6 +158,7 @@ public class BankCardLend extends BaseEntity
|
||||
.append("isZeroBill", getIsZeroBill())
|
||||
.append("balance", getBalance())
|
||||
.append("availableLimit", getAvailableLimit())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,6 +90,11 @@ public class FutureStocks extends BaseEntity
|
||||
@ApiModelProperty(value="可用额度")
|
||||
private Double availableLimit;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
@Excel(name = "账户状态")
|
||||
private String status;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -113,6 +118,7 @@ public class FutureStocks extends BaseEntity
|
||||
.append("remark", getRemark())
|
||||
.append("balance", getBalance())
|
||||
.append("availableLimit", getAvailableLimit())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +83,11 @@ public class PosMachine extends BaseEntity
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date activationDate;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
@Excel(name = "账户状态")
|
||||
private String status;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -105,6 +110,7 @@ public class PosMachine extends BaseEntity
|
||||
.append("merchantCode", getMerchantCode())
|
||||
.append("activationDate", getActivationDate())
|
||||
.append("ratePlus", getRatePlus())
|
||||
.append("status", getStatus())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,11 +27,15 @@ public class AccountsDto extends BaseEntity implements Serializable
|
||||
private String type;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
@ApiModelProperty(value="账户显示隐藏状态")
|
||||
private String state;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户id")
|
||||
private Long accountId;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
||||
@@ -42,4 +42,8 @@ public class BankCardLendDto extends BaseEntity implements Serializable
|
||||
@ApiModelProperty(value="信用卡id")
|
||||
private Long creditCardId;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
||||
@@ -26,4 +26,8 @@ public class FutureStocksDto extends BaseEntity implements Serializable
|
||||
@ApiModelProperty(value="类型,1期货,2股票")
|
||||
private String type;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
||||
@@ -30,4 +30,8 @@ public class PosMachineDto extends BaseEntity implements Serializable
|
||||
@ApiModelProperty(value="商户名称")
|
||||
private String merchantName;
|
||||
|
||||
/** 账户状态 */
|
||||
@ApiModelProperty(value="账户状态")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
||||
@@ -94,14 +94,26 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
//返回数据
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
//Pos机
|
||||
map.put("posCount",posMachineMapper.selectPosMachineList(new PosMachineDto()).size());
|
||||
PosMachineDto posMachineDto=new PosMachineDto();
|
||||
//状态为正常使用
|
||||
posMachineDto.setStatus("1");
|
||||
map.put("posCount",posMachineMapper.selectPosMachineList(posMachineDto).size());
|
||||
BankCardLendDto bankCardLendDto=new BankCardLendDto();
|
||||
//状态为正常使用
|
||||
bankCardLendDto.setStatus("1");
|
||||
bankCardLendDto.setType("2");
|
||||
//信用卡
|
||||
map.put("creditCount",bankCardLendMapper.selectBankCardLendList(bankCardLendDto).size());
|
||||
bankCardLendDto.setType("1");
|
||||
//储蓄卡
|
||||
map.put("debitCount",bankCardLendMapper.selectBankCardLendList(bankCardLendDto).size());
|
||||
bankCardLendDto.setType("1");
|
||||
bankCardLendDto.setDebitType("1");
|
||||
//I类储蓄卡
|
||||
map.put("debitICount",bankCardLendMapper.selectBankCardLendList(bankCardLendDto).size());
|
||||
bankCardLendDto.setDebitType("2");
|
||||
//II类储蓄卡
|
||||
map.put("debitIICount",bankCardLendMapper.selectBankCardLendList(bankCardLendDto).size());
|
||||
bankCardLendDto.setType("3");
|
||||
bankCardLendDto.setLendType("1");
|
||||
//网贷
|
||||
@@ -112,6 +124,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
|
||||
map.put("peopleLendCount",bankCardLendMapper.selectBankCardLendList(bankCardLendDto).size());
|
||||
FutureStocksDto futureStocksDto=new FutureStocksDto();
|
||||
//状态为正常使用
|
||||
futureStocksDto.setStatus("1");
|
||||
futureStocksDto.setType("1");
|
||||
//期货
|
||||
map.put("futuresCount",futureStocksMapper.selectFutureStocksList(futureStocksDto).size());
|
||||
@@ -128,6 +142,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
DecimalFormat decimalFormat = new DecimalFormat("#.##");
|
||||
|
||||
AccountsDto dto=new AccountsDto();
|
||||
//状态正常,不隐藏
|
||||
dto.setStatus("1");
|
||||
dto.setState("1");
|
||||
//储蓄卡
|
||||
dto.setType("1");
|
||||
@@ -138,7 +154,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
}
|
||||
map.put("debetBalance",decimalFormat.format(debetBalance));
|
||||
|
||||
dto.setState("1");
|
||||
|
||||
//信用卡
|
||||
dto.setType("2");
|
||||
accountsList=accountsMapper.selectAccountsList(dto);
|
||||
@@ -336,7 +352,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
map.put("creditLimit",creditLimit);
|
||||
|
||||
AccountsDto dto=new AccountsDto();
|
||||
dto.setState("1");
|
||||
//正常使用
|
||||
dto.setStatus("1");
|
||||
//信用卡
|
||||
dto.setType("2");
|
||||
List<AccountsVo> accountsList=accountsMapper.selectAccountsList(dto);
|
||||
@@ -447,7 +464,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
map.put("creditCardCount",bankCardLendMapper.selectBankCardLendList(bankCardLendDto).size());
|
||||
|
||||
AccountsDto dto=new AccountsDto();
|
||||
dto.setState("1");
|
||||
//正常使用
|
||||
dto.setStatus("1");
|
||||
//信用卡
|
||||
dto.setType("2");
|
||||
dto.setAccountId(analysisDto.getId());
|
||||
@@ -1360,7 +1378,8 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
DecimalFormat decimalFormat = new DecimalFormat("#.##");
|
||||
AccountsDto dto=new AccountsDto();
|
||||
dto.setState("1");
|
||||
//正常使用
|
||||
dto.setStatus("1");
|
||||
//储蓄卡
|
||||
dto.setType("1");
|
||||
List<AccountsVo> accountsList=accountsMapper.selectAccountsList(dto);
|
||||
|
||||
Reference in New Issue
Block a user