feat: 新增银行基础信息管理,信用卡储蓄卡新增字段。
This commit is contained in:
@@ -0,0 +1,116 @@
|
|||||||
|
package com.intc.invest.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.intc.common.log.annotation.Log;
|
||||||
|
import com.intc.common.log.enums.BusinessType;
|
||||||
|
import com.intc.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.intc.invest.domain.BankBaseInfo;
|
||||||
|
import com.intc.invest.domain.vo.BankBaseInfoVo;
|
||||||
|
import com.intc.invest.domain.dto.BankBaseInfoDto;
|
||||||
|
import com.intc.invest.service.IBankBaseInfoService;
|
||||||
|
import com.intc.common.core.web.controller.BaseController;
|
||||||
|
import com.intc.common.core.web.domain.AjaxResult;
|
||||||
|
import com.intc.common.core.utils.poi.ExcelUtil;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import com.intc.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行基础信息Controller
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
@Api(tags=" 银行基础信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/bankBaseInfo")
|
||||||
|
public class BankBaseInfoController extends BaseController
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private IBankBaseInfoService bankBaseInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="查询银行基础信息列表",response = BankBaseInfoVo.class)
|
||||||
|
@RequiresPermissions("invest:bankBaseInfo:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(BankBaseInfoDto bankBaseInfoDto)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<BankBaseInfoVo> list = bankBaseInfoService.selectBankBaseInfoList(bankBaseInfoDto);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出银行基础信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="导出银行基础信息列表")
|
||||||
|
@RequiresPermissions("invest:bankBaseInfo:export")
|
||||||
|
@Log(title = "银行基础信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, BankBaseInfoDto bankBaseInfoDto)
|
||||||
|
{
|
||||||
|
List<BankBaseInfoVo> list = bankBaseInfoService.selectBankBaseInfoList(bankBaseInfoDto);
|
||||||
|
ExcelUtil<BankBaseInfoVo> util = new ExcelUtil<BankBaseInfoVo>(BankBaseInfoVo.class);
|
||||||
|
util.exportExcel(response, list, "银行基础信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取银行基础信息详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="获取银行基础信息详细信息")
|
||||||
|
@RequiresPermissions("invest:bankBaseInfo:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(bankBaseInfoService.selectBankBaseInfoById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增银行基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="新增银行基础信息")
|
||||||
|
@RequiresPermissions("invest:bankBaseInfo:add")
|
||||||
|
@Log(title = "银行基础信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody BankBaseInfo bankBaseInfo)
|
||||||
|
{
|
||||||
|
return toAjax(bankBaseInfoService.insertBankBaseInfo(bankBaseInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改银行基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="修改银行基础信息")
|
||||||
|
@RequiresPermissions("invest:bankBaseInfo:edit")
|
||||||
|
@Log(title = "银行基础信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody BankBaseInfo bankBaseInfo)
|
||||||
|
{
|
||||||
|
return toAjax(bankBaseInfoService.updateBankBaseInfo(bankBaseInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除银行基础信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value="删除银行基础信息")
|
||||||
|
@RequiresPermissions("invest:bankBaseInfo:remove")
|
||||||
|
@Log(title = "银行基础信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(bankBaseInfoService.deleteBankBaseInfoByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
package com.intc.invest.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.intc.common.core.annotation.Excel;
|
||||||
|
import com.intc.common.core.web.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
/**
|
||||||
|
* 银行基础信息对象 bank_base_info
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
@ApiModel("银行基础信息对象")
|
||||||
|
@Data
|
||||||
|
public class BankBaseInfo extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 银行全称 */
|
||||||
|
@ApiModelProperty(value="银行全称")
|
||||||
|
@Excel(name = "银行全称")
|
||||||
|
private String bankName;
|
||||||
|
|
||||||
|
/** 银行简称 */
|
||||||
|
@ApiModelProperty(value="银行简称")
|
||||||
|
@Excel(name = "银行简称")
|
||||||
|
private String bankShortName;
|
||||||
|
|
||||||
|
/** 银行类型 */
|
||||||
|
@ApiModelProperty(value="银行类型")
|
||||||
|
@Excel(name = "银行类型")
|
||||||
|
private String bankType;
|
||||||
|
|
||||||
|
/** 归属省份 */
|
||||||
|
private String province;
|
||||||
|
|
||||||
|
/** 归属城市 */
|
||||||
|
private String city;
|
||||||
|
|
||||||
|
/** 统一社会信用代码 */
|
||||||
|
private String unifiedCreditCode;
|
||||||
|
|
||||||
|
/** 删除标识 0-未删除 1-已删除 */
|
||||||
|
private String delFlag;
|
||||||
|
|
||||||
|
/** 英文简称 */
|
||||||
|
@ApiModelProperty(value="英文简称")
|
||||||
|
@Excel(name = "英文简称")
|
||||||
|
private String englishShortName;
|
||||||
|
|
||||||
|
/** 信用卡多账户合并出账 */
|
||||||
|
@ApiModelProperty(value="信用卡多账户合并出账")
|
||||||
|
@Excel(name = "信用卡多账户合并出账")
|
||||||
|
private String multiAccountConsolidated;
|
||||||
|
|
||||||
|
/** 显示顺序 */
|
||||||
|
private Integer orderNum;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("bankName", getBankName())
|
||||||
|
.append("bankShortName", getBankShortName())
|
||||||
|
.append("bankType", getBankType())
|
||||||
|
.append("province", getProvince())
|
||||||
|
.append("city", getCity())
|
||||||
|
.append("unifiedCreditCode", getUnifiedCreditCode())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("delFlag", getDelFlag())
|
||||||
|
.append("englishShortName", getEnglishShortName())
|
||||||
|
.append("multiAccountConsolidated", getMultiAccountConsolidated())
|
||||||
|
.append("orderNum", getOrderNum())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -130,6 +130,22 @@ public class BankCardLend extends BaseEntity
|
|||||||
@ApiModelProperty(value="账户状态")
|
@ApiModelProperty(value="账户状态")
|
||||||
@Excel(name = "账户状态")
|
@Excel(name = "账户状态")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
/** 卡片正面图片 */
|
||||||
|
@ApiModelProperty(value="卡面")
|
||||||
|
@Excel(name = "卡面")
|
||||||
|
private String cardFace;
|
||||||
|
|
||||||
|
/** 卡片等级 */
|
||||||
|
@ApiModelProperty(value="卡片等级")
|
||||||
|
@Excel(name = "卡片等级")
|
||||||
|
private String cardTier;
|
||||||
|
|
||||||
|
/** 银行ID */
|
||||||
|
@ApiModelProperty(value="银行ID")
|
||||||
|
@Excel(name = "银行ID")
|
||||||
|
private Long bankId;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
@@ -159,6 +175,9 @@ public class BankCardLend extends BaseEntity
|
|||||||
.append("balance", getBalance())
|
.append("balance", getBalance())
|
||||||
.append("availableLimit", getAvailableLimit())
|
.append("availableLimit", getAvailableLimit())
|
||||||
.append("status", getStatus())
|
.append("status", getStatus())
|
||||||
|
.append("cardFace", getCardFace())
|
||||||
|
.append("cardTier", getCardTier())
|
||||||
|
.append("bankId", getBankId())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
package com.intc.invest.domain.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
/**
|
||||||
|
* 银行基础信息Dto对象 bank_base_info
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
@ApiModel("银行基础信息Dto对象")
|
||||||
|
@Data
|
||||||
|
public class BankBaseInfoDto implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 银行全称 */
|
||||||
|
@ApiModelProperty(value="银行全称")
|
||||||
|
private String bankName;
|
||||||
|
|
||||||
|
/** 银行简称 */
|
||||||
|
@ApiModelProperty(value="银行简称")
|
||||||
|
private String bankShortName;
|
||||||
|
|
||||||
|
/** 银行类型 */
|
||||||
|
@ApiModelProperty(value="银行类型")
|
||||||
|
private String bankType;
|
||||||
|
|
||||||
|
/** 信用卡多账户合并出账 */
|
||||||
|
@ApiModelProperty(value="信用卡多账户合并出账")
|
||||||
|
private String multiAccountConsolidated;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -61,4 +61,16 @@ public class BankCardLendDto extends BaseEntity implements Serializable
|
|||||||
@ApiModelProperty(value="开始月份")
|
@ApiModelProperty(value="开始月份")
|
||||||
private String startMonth;
|
private String startMonth;
|
||||||
|
|
||||||
|
/** 卡片正面图片 */
|
||||||
|
@ApiModelProperty(value="卡片正面图片")
|
||||||
|
private String cardFace;
|
||||||
|
|
||||||
|
/** 卡片等级 */
|
||||||
|
@ApiModelProperty(value="卡片等级")
|
||||||
|
private String cardTier;
|
||||||
|
|
||||||
|
/** 银行ID */
|
||||||
|
@ApiModelProperty(value="银行ID")
|
||||||
|
private Long bankId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.intc.invest.domain.vo;
|
||||||
|
|
||||||
|
import com.intc.invest.domain.BankBaseInfo;
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
/**
|
||||||
|
* 银行基础信息Vo对象 bank_base_info
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
@ApiModel("银行基础信息Vo对象")
|
||||||
|
@Data
|
||||||
|
public class BankBaseInfoVo extends BankBaseInfo
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -20,7 +20,11 @@ public class BankCardLendVo extends BankCardLend
|
|||||||
@ApiModelProperty(value="账单日)")
|
@ApiModelProperty(value="账单日)")
|
||||||
private String billDateName;
|
private String billDateName;
|
||||||
|
|
||||||
@ApiModelProperty(value="还款日)")
|
@ApiModelProperty(value="还款日")
|
||||||
private String payDateName;
|
private String payDateName;
|
||||||
|
|
||||||
|
/** 银行名称 */
|
||||||
|
@ApiModelProperty(value="银行名称")
|
||||||
|
private String bankName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package com.intc.invest.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.invest.domain.BankBaseInfo;
|
||||||
|
import com.intc.invest.domain.dto.BankBaseInfoDto;
|
||||||
|
import com.intc.invest.domain.vo.BankBaseInfoVo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
public interface BankBaseInfoMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 银行基础信息
|
||||||
|
*/
|
||||||
|
public BankBaseInfoVo selectBankBaseInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息列表
|
||||||
|
*
|
||||||
|
* @param bankBaseInfoDto 银行基础信息
|
||||||
|
* @return 银行基础信息集合
|
||||||
|
*/
|
||||||
|
public List<BankBaseInfoVo> selectBankBaseInfoList(BankBaseInfoDto bankBaseInfoDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增银行基础信息
|
||||||
|
*
|
||||||
|
* @param bankBaseInfo 银行基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBankBaseInfo(BankBaseInfo bankBaseInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改银行基础信息
|
||||||
|
*
|
||||||
|
* @param bankBaseInfo 银行基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBankBaseInfo(BankBaseInfo bankBaseInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除银行基础信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBankBaseInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除银行基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBankBaseInfoByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 逻辑删除银行基础信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeBankBaseInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量逻辑删除银行基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int removeBankBaseInfoByIds(Long[] ids);
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
package com.intc.invest.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.invest.domain.BankBaseInfo;
|
||||||
|
import com.intc.invest.domain.dto.BankBaseInfoDto;
|
||||||
|
import com.intc.invest.domain.vo.BankBaseInfoVo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
public interface IBankBaseInfoService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 银行基础信息
|
||||||
|
*/
|
||||||
|
public BankBaseInfoVo selectBankBaseInfoById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息列表
|
||||||
|
*
|
||||||
|
* @param bankBaseInfoDto 银行基础信息
|
||||||
|
* @return 银行基础信息集合
|
||||||
|
*/
|
||||||
|
public List<BankBaseInfoVo> selectBankBaseInfoList(BankBaseInfoDto bankBaseInfoDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增银行基础信息
|
||||||
|
*
|
||||||
|
* @param bankBaseInfo 银行基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBankBaseInfo(BankBaseInfo bankBaseInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改银行基础信息
|
||||||
|
*
|
||||||
|
* @param bankBaseInfo 银行基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBankBaseInfo(BankBaseInfo bankBaseInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除银行基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的银行基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBankBaseInfoByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除银行基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBankBaseInfoById(Long id);
|
||||||
|
}
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
package com.intc.invest.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.intc.common.core.utils.DateUtils;
|
||||||
|
import com.intc.common.core.utils.IdWorker;
|
||||||
|
import com.intc.common.security.utils.SecurityUtils;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.intc.invest.mapper.BankBaseInfoMapper;
|
||||||
|
import com.intc.invest.domain.BankBaseInfo;
|
||||||
|
import com.intc.invest.domain.dto.BankBaseInfoDto;
|
||||||
|
import com.intc.invest.domain.vo.BankBaseInfoVo;
|
||||||
|
import com.intc.invest.service.IBankBaseInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author tianyongbao
|
||||||
|
* @date 2026-01-29
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BankBaseInfoServiceImpl implements IBankBaseInfoService
|
||||||
|
{
|
||||||
|
@Resource
|
||||||
|
private BankBaseInfoMapper bankBaseInfoMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 银行基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public BankBaseInfoVo selectBankBaseInfoById(Long id)
|
||||||
|
{
|
||||||
|
return bankBaseInfoMapper.selectBankBaseInfoById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询银行基础信息列表
|
||||||
|
*
|
||||||
|
* @param bankBaseInfoDto 银行基础信息
|
||||||
|
* @return 银行基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<BankBaseInfoVo> selectBankBaseInfoList(BankBaseInfoDto bankBaseInfoDto)
|
||||||
|
{
|
||||||
|
return bankBaseInfoMapper.selectBankBaseInfoList(bankBaseInfoDto);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增银行基础信息
|
||||||
|
*
|
||||||
|
* @param bankBaseInfo 银行基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertBankBaseInfo(BankBaseInfo bankBaseInfo)
|
||||||
|
{
|
||||||
|
bankBaseInfo.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
bankBaseInfo.setCreateTime(DateUtils.getNowDate());
|
||||||
|
bankBaseInfo.setId(IdWorker.getId());
|
||||||
|
return bankBaseInfoMapper.insertBankBaseInfo(bankBaseInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改银行基础信息
|
||||||
|
*
|
||||||
|
* @param bankBaseInfo 银行基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateBankBaseInfo(BankBaseInfo bankBaseInfo)
|
||||||
|
{
|
||||||
|
bankBaseInfo.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
bankBaseInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return bankBaseInfoMapper.updateBankBaseInfo(bankBaseInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除银行基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的银行基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBankBaseInfoByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return bankBaseInfoMapper.removeBankBaseInfoByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除银行基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 银行基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBankBaseInfoById(Long id)
|
||||||
|
{
|
||||||
|
return bankBaseInfoMapper.removeBankBaseInfoById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.intc.invest.mapper.BankBaseInfoMapper">
|
||||||
|
|
||||||
|
<resultMap type="BankBaseInfoVo" id="BankBaseInfoResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="bankName" column="bank_name" />
|
||||||
|
<result property="bankShortName" column="bank_short_name" />
|
||||||
|
<result property="bankType" column="bank_type" />
|
||||||
|
<result property="province" column="province" />
|
||||||
|
<result property="city" column="city" />
|
||||||
|
<result property="unifiedCreditCode" column="unified_credit_code" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="englishShortName" column="english_short_name" />
|
||||||
|
<result property="multiAccountConsolidated" column="multi_account_consolidated" />
|
||||||
|
<result property="orderNum" column="order_num" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectBankBaseInfoVo">
|
||||||
|
select a.id, a.bank_name, a.bank_short_name, a.bank_type, a.province, a.city, a.unified_credit_code, a.remark, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.english_short_name, a.multi_account_consolidated, a.order_num from bank_base_info a
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectBankBaseInfoList" parameterType="BankBaseInfoDto" resultMap="BankBaseInfoResult">
|
||||||
|
<include refid="selectBankBaseInfoVo"/>
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
<if test="bankName != null and bankName != ''"> and a.bank_name like '%'|| #{bankName}||'%'</if>
|
||||||
|
<if test="bankShortName != null and bankShortName != ''"> and a.bank_short_name like '%'|| #{bankShortName}||'%'</if>
|
||||||
|
<if test="bankType != null "> and a.bank_type = #{bankType}</if>
|
||||||
|
<if test="multiAccountConsolidated != null and multiAccountConsolidated != ''"> and a.multi_account_consolidated = #{multiAccountConsolidated}</if>
|
||||||
|
</where>
|
||||||
|
order by a.order_num desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBankBaseInfoById" parameterType="Long" resultMap="BankBaseInfoResult">
|
||||||
|
<include refid="selectBankBaseInfoVo"/>
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertBankBaseInfo" parameterType="BankBaseInfo">
|
||||||
|
insert into bank_base_info
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="bankName != null">bank_name,</if>
|
||||||
|
<if test="bankShortName != null">bank_short_name,</if>
|
||||||
|
<if test="bankType != null">bank_type,</if>
|
||||||
|
<if test="province != null">province,</if>
|
||||||
|
<if test="city != null">city,</if>
|
||||||
|
<if test="unifiedCreditCode != null">unified_credit_code,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="englishShortName != null">english_short_name,</if>
|
||||||
|
<if test="multiAccountConsolidated != null">multi_account_consolidated,</if>
|
||||||
|
<if test="orderNum != null">order_num,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="bankName != null">#{bankName},</if>
|
||||||
|
<if test="bankShortName != null">#{bankShortName},</if>
|
||||||
|
<if test="bankType != null">#{bankType},</if>
|
||||||
|
<if test="province != null">#{province},</if>
|
||||||
|
<if test="city != null">#{city},</if>
|
||||||
|
<if test="unifiedCreditCode != null">#{unifiedCreditCode},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="englishShortName != null">#{englishShortName},</if>
|
||||||
|
<if test="multiAccountConsolidated != null">#{multiAccountConsolidated},</if>
|
||||||
|
<if test="orderNum != null">#{orderNum},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateBankBaseInfo" parameterType="BankBaseInfo">
|
||||||
|
update bank_base_info
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="bankName != null">bank_name = #{bankName},</if>
|
||||||
|
<if test="bankShortName != null">bank_short_name = #{bankShortName},</if>
|
||||||
|
<if test="bankType != null">bank_type = #{bankType},</if>
|
||||||
|
<if test="province != null">province = #{province},</if>
|
||||||
|
<if test="city != null">city = #{city},</if>
|
||||||
|
<if test="unifiedCreditCode != null">unified_credit_code = #{unifiedCreditCode},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="englishShortName != null">english_short_name = #{englishShortName},</if>
|
||||||
|
<if test="multiAccountConsolidated != null">multi_account_consolidated = #{multiAccountConsolidated},</if>
|
||||||
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteBankBaseInfoById" parameterType="Long">
|
||||||
|
delete from bank_base_info where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteBankBaseInfoByIds" parameterType="String">
|
||||||
|
delete from bank_base_info where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
<update id="removeBankBaseInfoById" parameterType="Long">
|
||||||
|
update bank_base_info set del_flag='1' where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="removeBankBaseInfoByIds" parameterType="String">
|
||||||
|
update bank_base_info set del_flag='1' where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@@ -31,6 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="balance" column="balance" />
|
<result property="balance" column="balance" />
|
||||||
<result property="availableLimit" column="available_limit" />
|
<result property="availableLimit" column="available_limit" />
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
|
<result property="cardFace" column="card_face" />
|
||||||
|
<result property="cardTier" column="card_tier" />
|
||||||
|
<result property="bankId" column="bank_id" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectBankCardLendVo">
|
<sql id="selectBankCardLendVo">
|
||||||
@@ -59,6 +62,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.next_bill_date_time,
|
a.next_bill_date_time,
|
||||||
a.is_zero_bill,
|
a.is_zero_bill,
|
||||||
a.status,
|
a.status,
|
||||||
|
a.card_face,
|
||||||
|
a.card_tier,
|
||||||
|
a.bank_id,
|
||||||
t.balance,
|
t.balance,
|
||||||
t.available_limit
|
t.available_limit
|
||||||
from bank_card_lend a
|
from bank_card_lend a
|
||||||
@@ -74,8 +80,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||||
<if test="debitType != null and debitType != ''"> and a.debit_type = #{debitType}</if>
|
<if test="debitType != null and debitType != ''"> and a.debit_type = #{debitType}</if>
|
||||||
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
|
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
|
||||||
|
<if test="bankId != null "> and a.bank_id = #{bankId}</if>
|
||||||
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
|
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
|
||||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
<if test="status != null and status != ''"> and a.card_tier = #{status}</if>
|
||||||
|
<if test="cardTier != null and cardTier != ''"> and a.status = #{cardTier}</if>
|
||||||
<if test="repayFlag != null and repayFlag != ''"> and a.debit_type in('1','2','3')</if>
|
<if test="repayFlag != null and repayFlag != ''"> and a.debit_type in('1','2','3')</if>
|
||||||
<if test="staticFlag != null and staticFlag != ''"> and ( a.debit_type in('1','2') and a.status!='2') </if>
|
<if test="staticFlag != null and staticFlag != ''"> and ( a.debit_type in('1','2') and a.status!='2') </if>
|
||||||
<if test="startMonth!=null and startMonth !=''">
|
<if test="startMonth!=null and startMonth !=''">
|
||||||
@@ -128,6 +136,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="nextBillDateTime != null">next_bill_date_time,</if>
|
<if test="nextBillDateTime != null">next_bill_date_time,</if>
|
||||||
<if test="isZeroBill != null">is_zero_bill,</if>
|
<if test="isZeroBill != null">is_zero_bill,</if>
|
||||||
<if test="status != null">status,</if>
|
<if test="status != null">status,</if>
|
||||||
|
<if test="cardFace != null">card_face,</if>
|
||||||
|
<if test="cardTier != null">card_tier,</if>
|
||||||
|
<if test="bankId != null">bank_id,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
<if test="id != null">#{id},</if>
|
||||||
@@ -154,6 +165,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="nextBillDateTime != null">#{nextBillDateTime},</if>
|
<if test="nextBillDateTime != null">#{nextBillDateTime},</if>
|
||||||
<if test="isZeroBill != null">#{isZeroBill},</if>
|
<if test="isZeroBill != null">#{isZeroBill},</if>
|
||||||
<if test="status != null">#{status},</if>
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="cardFace != null">#{cardFace},</if>
|
||||||
|
<if test="cardTier != null">#{cardTier},</if>
|
||||||
|
<if test="bankId != null">#{bankId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@@ -183,6 +197,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="nextBillDateTime != null">next_bill_date_time = #{nextBillDateTime},</if>
|
<if test="nextBillDateTime != null">next_bill_date_time = #{nextBillDateTime},</if>
|
||||||
<if test="isZeroBill != null">is_zero_bill = #{isZeroBill},</if>
|
<if test="isZeroBill != null">is_zero_bill = #{isZeroBill},</if>
|
||||||
<if test="status != null">status = #{status},</if>
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="cardFace != null">card_face = #{cardFace},</if>
|
||||||
|
<if test="cardTier != null">card_tier = #{cardTier},</if>
|
||||||
|
<if test="bankId != null">bank_id = #{bankId},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
Reference in New Issue
Block a user