|
@@ -92,9 +92,9 @@ public class ExMaTwoController extends BladeController {
|
|
|
@ApiOperationSupport(order = 3)
|
|
|
@ApiOperation(value = "获取我的借款列表")
|
|
|
public R<List<ExMaByLoanVO>> getLoanList() {
|
|
|
- if (ObjectUtil.isEmpty(SecureUtil.getUser())) {
|
|
|
+ /*if (ObjectUtil.isEmpty(SecureUtil.getUser())) {
|
|
|
throw new ServiceException("未获取到当前用户信息,请联系管理员");
|
|
|
- }
|
|
|
+ }*/
|
|
|
LambdaQueryWrapper<EMLoanInfo> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(EMLoanInfo::getIsTemp, 1); //已提交
|
|
|
queryWrapper.eq(EMLoanInfo::getStatus, 2); //已审批
|
|
@@ -166,7 +166,7 @@ public class ExMaTwoController extends BladeController {
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "获取支付收款人列表")
|
|
|
public R<List<String>> getPayeeUserNameList() {
|
|
|
- List<EMPayInfo> query = jdbcTemplate.query("select payee_user_name from c_expense_pay_info and is_deleted = 0 and is_temp = 1", new BeanPropertyRowMapper<>(EMPayInfo.class));
|
|
|
+ List<EMPayInfo> query = jdbcTemplate.query("select payee_user_name from c_expense_pay_info where is_deleted = 0 and is_temp = 1", new BeanPropertyRowMapper<>(EMPayInfo.class));
|
|
|
if (query.size() > 0) {
|
|
|
return R.data(query.stream().map(EMPayInfo::getPayeeUserName).collect(Collectors.toList()));
|
|
|
}
|
|
@@ -177,7 +177,7 @@ public class ExMaTwoController extends BladeController {
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiOperation(value = "获取借款申请人列表")
|
|
|
public R<List<String>> getLoanUserNameList() {
|
|
|
- List<EMLoanInfo> query = jdbcTemplate.query("select loan_user_name from c_expense_loan_info and is_deleted = 0 and is_temp = 1", new BeanPropertyRowMapper<>(EMLoanInfo.class));
|
|
|
+ List<EMLoanInfo> query = jdbcTemplate.query("select loan_user_name from c_expense_loan_info where is_deleted = 0 and is_temp = 1", new BeanPropertyRowMapper<>(EMLoanInfo.class));
|
|
|
if (query.size() > 0) {
|
|
|
return R.data(query.stream().map(EMLoanInfo::getLoanUserName).collect(Collectors.toList()));
|
|
|
}
|