上传供应商注册生成的基本代码
This commit is contained in:
@ -0,0 +1,75 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.column;
|
||||
|
||||
|
||||
/**
|
||||
* 字段常量 BizSupplierAptitude
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
public class BizSupplierAptitudeField {
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
public static final String ID = "id";
|
||||
|
||||
/**
|
||||
* 供应商注册表id
|
||||
*/
|
||||
public static final String SUPPLIER_REGISTER_ID = "supplier_register_id";
|
||||
|
||||
/**
|
||||
* 资质证书类型
|
||||
*/
|
||||
public static final String APTITUDE_CERTIFICATE_TYPE = "aptitude_certificate_type";
|
||||
|
||||
/**
|
||||
* 资质名称
|
||||
*/
|
||||
public static final String APITTUDE_NAME = "apittude_name";
|
||||
|
||||
/**
|
||||
* 资质证书编号
|
||||
*/
|
||||
public static final String APTITUDE_CERTIFICATE_NUM = "aptitude_certificate_num";
|
||||
|
||||
/**
|
||||
* 资质类别和等级
|
||||
*/
|
||||
public static final String APTITUDE_CATEGORY_LEVEL = "aptitude_category_level";
|
||||
|
||||
/**
|
||||
* 发证机构
|
||||
*/
|
||||
public static final String ISSUE_AUTHORITY = "issue_authority";
|
||||
|
||||
/**
|
||||
* 发证日期
|
||||
*/
|
||||
public static final String ISSUE_DATE = "issue_date";
|
||||
|
||||
/**
|
||||
* 资质有效期至
|
||||
*/
|
||||
public static final String APTITUDE_PERIOD_VALIDITY = "aptitude_period_validity";
|
||||
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
public static final String ATTACHMENT = "attachment";
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
public static final String CREATE_DATE = "create_date";
|
||||
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
public static final String UPDATE_DATE = "update_date";
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.column;
|
||||
|
||||
|
||||
/**
|
||||
* 字段常量 BizSupplierBank
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
public class BizSupplierBankField {
|
||||
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
public static final String ID = "id";
|
||||
|
||||
/**
|
||||
* 联行号
|
||||
*/
|
||||
public static final String INTERBANK_NUMBER = "interbank_number";
|
||||
|
||||
/**
|
||||
* 开户银行
|
||||
*/
|
||||
public static final String BANK_DEPOSIT = "bank_deposit";
|
||||
|
||||
/**
|
||||
* 账户名称
|
||||
*/
|
||||
public static final String ACCOUNT_NAME = "account_name";
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
public static final String ACCOUNT_NUM = "account_num";
|
||||
|
||||
/**
|
||||
* 国家
|
||||
*/
|
||||
public static final String COUNTRY = "country";
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
public static final String PROVINCE = "province";
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
public static final String CITY = "city";
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
public static final String CREATE_DATE = "create_date";
|
||||
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
public static final String UPDATE_DATE = "update_date";
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitude;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitudeVO;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service.IBizSupplierAptitudeService;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BaseResponse;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商注册资质表 Controller
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Validated
|
||||
@RestController
|
||||
@Api(tags = "供应商注册资质表")
|
||||
@RequestMapping("/api/bizsupplieraptitude")
|
||||
public class BizSupplierAptitudeController{
|
||||
|
||||
@Resource
|
||||
private IBizSupplierAptitudeService bizSupplierAptitudeService;
|
||||
|
||||
/**
|
||||
* 插入新数据
|
||||
*
|
||||
* @param bizSupplierAptitude 实体类
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("插入新数据")
|
||||
@PostMapping("")
|
||||
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid BizSupplierAptitude bizSupplierAptitude){
|
||||
|
||||
return BaseResponse.success(bizSupplierAptitudeService.save(bizSupplierAptitude));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param bizSupplierAptitude 实体类
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("修改数据")
|
||||
@PostMapping("/update")
|
||||
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody BizSupplierAptitude bizSupplierAptitude){
|
||||
|
||||
return BaseResponse.success(bizSupplierAptitudeService.updateById(bizSupplierAptitude));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param id 实体类主键
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("查询数据")
|
||||
@GetMapping("/{id}")
|
||||
public BaseResponse<BizSupplierAptitude> get(@ApiParam(value = "主键id", required = true) @PathVariable String id){
|
||||
|
||||
return BaseResponse.success(bizSupplierAptitudeService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param id 实体ID
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("删除数据")
|
||||
@GetMapping("/delete/{id}")
|
||||
public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){
|
||||
|
||||
return BaseResponse.success(bizSupplierAptitudeService.removeById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
*
|
||||
* @param bizSupplierAptitudeVO 分页信息
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("查询分页数据")
|
||||
@PostMapping("/getPage")
|
||||
public BaseResponse<IPage<BizSupplierAptitudeVO>> getPage(@ApiParam(value = "对象数据", required = true) @RequestBody BizSupplierAptitudeVO bizSupplierAptitudeVO) {
|
||||
|
||||
return BaseResponse.success(bizSupplierAptitudeService.getPage(bizSupplierAptitudeVO));
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBank;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBankVO;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service.IBizSupplierBankService;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BaseResponse;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.validation.Valid;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商注册银行卡信息表 Controller
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Validated
|
||||
@RestController
|
||||
@Api(tags = "供应商注册银行卡信息表")
|
||||
@RequestMapping("/api/bizsupplierbank")
|
||||
public class BizSupplierBankController{
|
||||
|
||||
@Resource
|
||||
private IBizSupplierBankService bizSupplierBankService;
|
||||
|
||||
/**
|
||||
* 插入新数据
|
||||
*
|
||||
* @param bizSupplierBank 实体类
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("插入新数据")
|
||||
@PostMapping("")
|
||||
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid BizSupplierBank bizSupplierBank){
|
||||
|
||||
return BaseResponse.success(bizSupplierBankService.save(bizSupplierBank));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
*
|
||||
* @param bizSupplierBank 实体类
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("修改数据")
|
||||
@PostMapping("/update")
|
||||
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody BizSupplierBank bizSupplierBank){
|
||||
|
||||
return BaseResponse.success(bizSupplierBankService.updateById(bizSupplierBank));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param id 实体类主键
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("查询数据")
|
||||
@GetMapping("/{id}")
|
||||
public BaseResponse<BizSupplierBank> get(@ApiParam(value = "主键id", required = true) @PathVariable String id){
|
||||
|
||||
return BaseResponse.success(bizSupplierBankService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param id 实体ID
|
||||
*
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("删除数据")
|
||||
@GetMapping("/delete/{id}")
|
||||
public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){
|
||||
|
||||
return BaseResponse.success(bizSupplierBankService.removeById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
*
|
||||
* @param bizSupplierBankVO 分页信息
|
||||
* @return 返回结果
|
||||
*/
|
||||
@ApiOperation("查询分页数据")
|
||||
@PostMapping("/getPage")
|
||||
public BaseResponse<IPage<BizSupplierBankVO>> getPage(@ApiParam(value = "对象数据", required = true) @RequestBody BizSupplierBankVO bizSupplierBankVO) {
|
||||
|
||||
return BaseResponse.success(bizSupplierBankService.getPage(bizSupplierBankVO));
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.dao;
|
||||
|
||||
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitude;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.dao.IBaseMapper;
|
||||
|
||||
/**
|
||||
* 对数据表 biz_supplier_aptitude 操作的 dao
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
public interface BizSupplierAptitudeMapper extends IBaseMapper<BizSupplierAptitude> {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.dao;
|
||||
|
||||
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBank;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.dao.IBaseMapper;
|
||||
|
||||
/**
|
||||
* 对数据表 biz_supplier_bank 操作的 dao
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
public interface BizSupplierBankMapper extends IBaseMapper<BizSupplierBank> {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
<?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.chinaunicom.zyhy.ebtp.supplier.bizsupplieraptitude.dao.BizSupplierAptitudeMapper">
|
||||
<resultMap id="BaseResultMap"
|
||||
type="com.chinaunicom.zyhy.ebtp.supplier.bizsupplieraptitude.entity.BizSupplierAptitude">
|
||||
<result column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="supplier_register_id" jdbcType="VARCHAR" property="supplierRegisterId"/>
|
||||
<result column="aptitude_certificate_type" jdbcType="VARCHAR" property="aptitudeCertificateType"/>
|
||||
<result column="apittude_name" jdbcType="VARCHAR" property="apittudeName"/>
|
||||
<result column="aptitude_certificate_num" jdbcType="VARCHAR" property="aptitudeCertificateNum"/>
|
||||
<result column="aptitude_category_level" jdbcType="VARCHAR" property="aptitudeCategoryLevel"/>
|
||||
<result column="issue_authority" jdbcType="VARCHAR" property="issueAuthority"/>
|
||||
<result column="issue_date" jdbcType="TIMESTAMP" property="issueDate"/>
|
||||
<result column="aptitude_period_validity" jdbcType="TIMESTAMP" property="aptitudePeriodValidity"/>
|
||||
<result column="attachment" jdbcType="VARCHAR" property="attachment"/>
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
|
||||
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
|
||||
</resultMap>
|
||||
|
||||
<!--逻辑删除方法 此方法为代码生成器生成 不允许修改 如有特殊需求 请自行新建SQL语句-->
|
||||
<delete id="physicalDelete" parameterType="java.lang.String">
|
||||
delete from biz_supplier_aptitude where id in(${ids})
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,25 @@
|
||||
<?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.chinaunicom.zyhy.ebtp.supplier.bizsupplierbank.dao.BizSupplierBankMapper">
|
||||
<resultMap id="BaseResultMap"
|
||||
type="com.chinaunicom.zyhy.ebtp.supplier.bizsupplierbank.entity.BizSupplierBank">
|
||||
<result column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="interbank_number" jdbcType="VARCHAR" property="interbankNumber"/>
|
||||
<result column="bank_deposit" jdbcType="VARCHAR" property="bankDeposit"/>
|
||||
<result column="account_name" jdbcType="VARCHAR" property="accountName"/>
|
||||
<result column="account_num" jdbcType="VARCHAR" property="accountNum"/>
|
||||
<result column="country" jdbcType="VARCHAR" property="country"/>
|
||||
<result column="province" jdbcType="VARCHAR" property="province"/>
|
||||
<result column="city" jdbcType="VARCHAR" property="city"/>
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
|
||||
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
||||
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
|
||||
</resultMap>
|
||||
|
||||
<!--逻辑删除方法 此方法为代码生成器生成 不允许修改 如有特殊需求 请自行新建SQL语句-->
|
||||
<delete id="physicalDelete" parameterType="java.lang.String">
|
||||
delete from biz_supplier_bank where id in(${ids})
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,110 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 实体类 BizSupplierAptitude
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel
|
||||
@TableName(value = "biz_supplier_aptitude", autoResultMap = true)
|
||||
public class BizSupplierAptitude extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 供应商注册表id
|
||||
*/
|
||||
@ApiModelProperty(value = "供应商注册表id")
|
||||
private Long supplierRegisterId;
|
||||
|
||||
/**
|
||||
* 资质证书类型
|
||||
*/
|
||||
@ApiModelProperty(value = "资质证书类型")
|
||||
private String aptitudeCertificateType;
|
||||
|
||||
/**
|
||||
* 资质名称
|
||||
*/
|
||||
@ApiModelProperty(value = "资质名称")
|
||||
private String apittudeName;
|
||||
|
||||
/**
|
||||
* 资质证书编号
|
||||
*/
|
||||
@ApiModelProperty(value = "资质证书编号")
|
||||
private String aptitudeCertificateNum;
|
||||
|
||||
/**
|
||||
* 资质类别和等级
|
||||
*/
|
||||
@ApiModelProperty(value = "资质类别和等级")
|
||||
private String aptitudeCategoryLevel;
|
||||
|
||||
/**
|
||||
* 发证机构
|
||||
*/
|
||||
@ApiModelProperty(value = "发证机构")
|
||||
private String issueAuthority;
|
||||
|
||||
/**
|
||||
* 发证日期
|
||||
*/
|
||||
@ApiModelProperty(value = "发证日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private java.time.LocalDateTime issueDate;
|
||||
|
||||
/**
|
||||
* 资质有效期至
|
||||
*/
|
||||
@ApiModelProperty(value = "资质有效期至")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private java.time.LocalDateTime aptitudePeriodValidity;
|
||||
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
@ApiModelProperty(value = "附件")
|
||||
private String attachment;
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private java.time.LocalDateTime createDate;
|
||||
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private java.time.LocalDateTime updateDate;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity;
|
||||
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BasePageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 实体类 BizSupplierAptitude
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel
|
||||
public class BizSupplierAptitudeVO extends BizSupplierAptitude implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "分页对象信息")
|
||||
private BasePageRequest basePageRequest;
|
||||
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 实体类 BizSupplierBank
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel
|
||||
@TableName(value = "biz_supplier_bank", autoResultMap = true)
|
||||
public class BizSupplierBank extends BaseEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 联行号
|
||||
*/
|
||||
@ApiModelProperty(value = "联行号")
|
||||
private String interbankNumber;
|
||||
|
||||
/**
|
||||
* 开户银行
|
||||
*/
|
||||
@ApiModelProperty(value = "开户银行")
|
||||
private String bankDeposit;
|
||||
|
||||
/**
|
||||
* 账户名称
|
||||
*/
|
||||
@ApiModelProperty(value = "账户名称")
|
||||
private String accountName;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
@ApiModelProperty(value = "账号")
|
||||
private String accountNum;
|
||||
|
||||
/**
|
||||
* 国家
|
||||
*/
|
||||
@ApiModelProperty(value = "国家")
|
||||
private String country;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
@ApiModelProperty(value = "省")
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
@ApiModelProperty(value = "市")
|
||||
private String city;
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private java.time.LocalDateTime createDate;
|
||||
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private java.time.LocalDateTime updateDate;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity;
|
||||
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BasePageRequest;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 实体类 BizSupplierBank
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@ApiModel
|
||||
public class BizSupplierBankVO extends BizSupplierBank implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "分页对象信息")
|
||||
private BasePageRequest basePageRequest;
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitude;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitudeVO;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.service.IBaseService;
|
||||
|
||||
/**
|
||||
* 对数据表 biz_supplier_aptitude 操作的 service
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
public interface IBizSupplierAptitudeService extends IBaseService<BizSupplierAptitude> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param bizSupplierAptitudeVO 分页数据
|
||||
* @return 返回结果
|
||||
*/
|
||||
IPage<BizSupplierAptitudeVO> getPage(BizSupplierAptitudeVO bizSupplierAptitudeVO);
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBank;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBankVO;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.service.IBaseService;
|
||||
|
||||
/**
|
||||
* 对数据表 biz_supplier_bank 操作的 service
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
public interface IBizSupplierBankService extends IBaseService<BizSupplierBank> {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param bizSupplierBankVO 分页数据
|
||||
* @return 返回结果
|
||||
*/
|
||||
IPage<BizSupplierBankVO> getPage(BizSupplierBankVO bizSupplierBankVO);
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.dao.BizSupplierAptitudeMapper;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitude;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierAptitudeVO;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service.IBizSupplierAptitudeService;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BasePageRequest;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.service.impl.BaseServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 对数据表 biz_supplier_aptitude 操作的 serviceImpl
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Service
|
||||
public class BizSupplierAptitudeServiceImpl extends BaseServiceImpl<BizSupplierAptitudeMapper, BizSupplierAptitude> implements IBizSupplierAptitudeService {
|
||||
|
||||
/**
|
||||
* 生成查询数据
|
||||
*
|
||||
* @param bizSupplierAptitudeVO 查询条件
|
||||
* @return 返回结果
|
||||
*/
|
||||
|
||||
private LambdaQueryWrapper<BizSupplierAptitude> getBizSupplierAptitudeQueryWrapper(BizSupplierAptitudeVO bizSupplierAptitudeVO) {
|
||||
LambdaQueryWrapper<BizSupplierAptitude> queryWrapper = Wrappers.lambdaQuery();
|
||||
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<BizSupplierAptitudeVO> getPage(BizSupplierAptitudeVO bizSupplierAptitudeVO) {
|
||||
LambdaQueryWrapper<BizSupplierAptitude> queryWrapper = getBizSupplierAptitudeQueryWrapper(bizSupplierAptitudeVO);
|
||||
queryWrapper.orderByDesc(BizSupplierAptitude::getId);
|
||||
|
||||
if (null == bizSupplierAptitudeVO.getBasePageRequest()) {
|
||||
bizSupplierAptitudeVO.setBasePageRequest(new BasePageRequest());
|
||||
}
|
||||
|
||||
//查询
|
||||
IPage<BizSupplierAptitude> p = new Page<>(bizSupplierAptitudeVO.getBasePageRequest().getPageNo(), bizSupplierAptitudeVO.getBasePageRequest().getPageSize());
|
||||
IPage<BizSupplierAptitude> result = this.page(p, queryWrapper);
|
||||
|
||||
return result.convert(c -> BeanUtil.toBean(c, BizSupplierAptitudeVO.class));
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.dao.BizSupplierBankMapper;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBank;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.entity.BizSupplierBankVO;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.bizsupplierregister.service.IBizSupplierBankService;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.entity.BasePageRequest;
|
||||
import com.chinaunicom.zyhy.ebtp.supplier.common.base.service.impl.BaseServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 对数据表 biz_supplier_bank 操作的 serviceImpl
|
||||
* @author sunyu
|
||||
* @date 2025-4-30
|
||||
*/
|
||||
@Service
|
||||
public class BizSupplierBankServiceImpl extends BaseServiceImpl<BizSupplierBankMapper, BizSupplierBank> implements IBizSupplierBankService {
|
||||
|
||||
/**
|
||||
* 生成查询数据
|
||||
*
|
||||
* @param bizSupplierBankVO 查询条件
|
||||
* @return 返回结果
|
||||
*/
|
||||
|
||||
private LambdaQueryWrapper<BizSupplierBank> getBizSupplierBankQueryWrapper(BizSupplierBankVO bizSupplierBankVO) {
|
||||
LambdaQueryWrapper<BizSupplierBank> queryWrapper = Wrappers.lambdaQuery();
|
||||
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<BizSupplierBankVO> getPage(BizSupplierBankVO bizSupplierBankVO) {
|
||||
LambdaQueryWrapper<BizSupplierBank> queryWrapper = getBizSupplierBankQueryWrapper(bizSupplierBankVO);
|
||||
queryWrapper.orderByDesc(BizSupplierBank::getId);
|
||||
|
||||
if (null == bizSupplierBankVO.getBasePageRequest()) {
|
||||
bizSupplierBankVO.setBasePageRequest(new BasePageRequest());
|
||||
}
|
||||
|
||||
//查询
|
||||
IPage<BizSupplierBank> p = new Page<>(bizSupplierBankVO.getBasePageRequest().getPageNo(), bizSupplierBankVO.getBasePageRequest().getPageSize());
|
||||
IPage<BizSupplierBank> result = this.page(p, queryWrapper);
|
||||
|
||||
return result.convert(c -> BeanUtil.toBean(c, BizSupplierBankVO.class));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user