提交 79ef0b0b authored 作者: liuhaiquan's avatar liuhaiquan

修改测试问题

上级 f1b820e5
package com.clx.performance.vo.pc.loan.carrier;
import com.clx.performance.enums.OwnerAccountEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
......@@ -31,7 +32,12 @@ public class OwnerLoanAccountApproveVO {
@ApiModelProperty("账户类型 默认3 借款账户")
private Integer accountType;
private String accountType;
public String getAccountType(){
return OwnerAccountEnum.AccountTypeStatus.LOAN_ACCOUNT.getMsg();
}
@ApiModelProperty("待审批 10,审批成功 20,审批拒绝 30")
......
......@@ -45,6 +45,7 @@ public class OwnerLoanAccountApproveDaoImpl extends BaseDaoImpl<OwnerLoanAccount
@Override
public List<OwnerLoanAccountApprove> getOwnerLoanAccountApproveList(Long userNo) {
LambdaQueryWrapper<OwnerLoanAccountApprove> query = new LambdaQueryWrapper<>();
query.eq(OwnerLoanAccountApprove :: getOwnerUserNo,userNo);
query.orderByDesc(OwnerLoanAccountApprove :: getId);
return baseMapper.selectList(query);
}
......
......@@ -3,6 +3,7 @@ package com.clx.performance.service.impl.loan;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clx.performance.dao.loan.OwnerLoanAccountApproveDao;
import com.clx.performance.enums.OwnerAccountEnum;
import com.clx.performance.enums.PerformanceResultEnum;
import com.clx.performance.enums.loan.OwnerLoanAccountApproveEnum;
import com.clx.performance.model.loan.OwnerLoanAccountApprove;
......@@ -19,6 +20,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.util.List;
/**
......@@ -60,11 +62,12 @@ public class OwnerLoanAccountApproveServiceImpl implements OwnerLoanAccountAppr
public void openOwnerLoanAccountApprove() {
UserSessionData loginUserInfo = TokenUtil.getLoginUserInfo();
OwnerLoanAccountApprove entity = new OwnerLoanAccountApprove();
entity.setAccountType(3);
entity.setAccountType(OwnerAccountEnum.AccountTypeStatus.LOAN_ACCOUNT.getCode());
entity.setOwnerUserNo(loginUserInfo.getUserNo());
entity.setOwnerUserName(loginUserInfo.getUserName());
entity.setMobile(loginUserInfo.getUserMobile());
entity.setStatus(10);
entity.setStatus(OwnerLoanAccountApproveEnum.Status.APPROVE_WAIT.getCode());
entity.setCreateBy(loginUserInfo.getUserName());
ownerLoanAccountApproveDao.saveEntity(entity);
}
......@@ -77,6 +80,8 @@ public class OwnerLoanAccountApproveServiceImpl implements OwnerLoanAccountAppr
PerformanceResultEnum.DATA_NOT_FIND);
OwnerLoanAccountApprove update = new OwnerLoanAccountApprove();
update.setId(param.getId());
update.setApproveBy(TokenUtil.getLoginUserInfo().getUserName());
update.setApproveTime(LocalDateTime.now());
if (status) {
//审批通过
update.setStatus(OwnerLoanAccountApproveEnum.Status.APPROVE_PASS.getCode());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论