Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
36d2b9b505 | 6 months ago |
@ -1,34 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.idao.OpEnterPieceManagementDao;
|
||||
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 进件管理 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpEnterPieceManagementBiz {
|
||||
|
||||
@Autowired
|
||||
private OpEnterPieceManagementDao opEnterPieceManagementDao;
|
||||
|
||||
|
||||
/**
|
||||
* 获取字符串
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
public List<OpEnterPieceManagementEntity> getString() {
|
||||
return opEnterPieceManagementDao.list();
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpLegalEntityIdCardInfoBiz {
|
||||
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpMerchantInfoBiz{
|
||||
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户列表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpMerchantListBiz {
|
||||
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpSettlementAccountBiz {
|
||||
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算规则 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpSettlementRulesBiz{
|
||||
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.biz.merchant;
|
||||
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpStoreManagementBiz {
|
||||
|
||||
}
|
||||
@ -1,36 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import cn.iocoder.hake.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.hake.module.op.biz.merchant.OpEnterPieceManagementBiz;
|
||||
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 进件管理 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpEnterPieceManagementController {
|
||||
|
||||
@Autowired
|
||||
private OpEnterPieceManagementBiz opEnterPieceManagementBiz;
|
||||
|
||||
@PostMapping("/test")
|
||||
@Operation(summary = "测试ruoyi框架请求")
|
||||
//@PreAuthorize("@ss.hasPermission('mp:account:create')")
|
||||
public CommonResult<List<OpEnterPieceManagementEntity>> getString() {
|
||||
return CommonResult.success(opEnterPieceManagementBiz.getString());
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpLegalEntityIdCardInfoController {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpMerchantInfoController {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户列表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpMerchantListController {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpSettlementAccountController {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算规则 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpSettlementRulesController {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.controller.merchant;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/op/merchant")
|
||||
public class OpStoreManagementController {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpEnterPieceManagementMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 进件管理Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpEnterPieceManagementDao extends ServiceImpl<OpEnterPieceManagementMapper, OpEnterPieceManagementEntity> {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpLegalEntityIdCardInfoMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpLegalEntityIdCardInfoEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Component
|
||||
public class OpLegalEntityIdCardInfoDao extends ServiceImpl<OpLegalEntityIdCardInfoMapper, OpLegalEntityIdCardInfoEntity> {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpMerchantInfoMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpMerchantInfoEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public class OpMerchantInfoDao extends ServiceImpl<OpMerchantInfoMapper, OpMerchantInfoEntity> {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpMerchantListMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpMerchantListEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户列表Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public class OpMerchantListDao extends ServiceImpl<OpMerchantListMapper, OpMerchantListEntity> {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpSettlementAccountMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpSettlementAccountEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public class OpSettlementAccountDao extends ServiceImpl<OpSettlementAccountMapper, OpSettlementAccountEntity> {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpSettlementRulesMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpSettlementRulesEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算规则 Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public class OpSettlementRulesDao extends ServiceImpl<OpSettlementRulesMapper, OpSettlementRulesEntity> {
|
||||
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.idao;
|
||||
|
||||
import cn.iocoder.hake.module.op.dao.mapper.OpStoreManagementMapper;
|
||||
import cn.iocoder.hake.module.op.entity.OpStoreManagementEntity;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理Dao
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public class OpStoreManagementDao extends ServiceImpl<OpStoreManagementMapper, OpStoreManagementEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 进件管理 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpEnterPieceManagementMapper extends BaseMapper<OpEnterPieceManagementEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpLegalEntityIdCardInfoEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpLegalEntityIdCardInfoMapper extends BaseMapper<OpLegalEntityIdCardInfoEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpMerchantInfoEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpMerchantInfoMapper extends BaseMapper<OpMerchantInfoEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpMerchantListEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户列表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpMerchantListMapper extends BaseMapper<OpMerchantListEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpSettlementAccountEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpSettlementAccountMapper extends BaseMapper<OpSettlementAccountEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpSettlementRulesEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算规则 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpSettlementRulesMapper extends BaseMapper<OpSettlementRulesEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.dao.mapper;
|
||||
|
||||
import cn.iocoder.hake.module.op.entity.OpStoreManagementEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper
|
||||
public interface OpStoreManagementMapper extends BaseMapper<OpStoreManagementEntity> {
|
||||
|
||||
}
|
||||
@ -1,100 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpLegalEntityIdCardInfoDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 法人身份证人像面照片
|
||||
*/
|
||||
private String cardFrontPhoto;
|
||||
|
||||
/**
|
||||
* 法人身份证国徽面照片
|
||||
*/
|
||||
private String cardReversePhoto;
|
||||
|
||||
/**
|
||||
* 法人身份证姓名
|
||||
*/
|
||||
private String cardName;
|
||||
|
||||
/**
|
||||
* 法人身份证号
|
||||
*/
|
||||
private String cardNumber;
|
||||
|
||||
/**
|
||||
* 法人身份证起始有效时间
|
||||
*/
|
||||
private String startDate;
|
||||
|
||||
/**
|
||||
* 法人身份证结束有效时间
|
||||
*/
|
||||
private String endDate;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,101 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpMerchantInfoDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 营业执照照片
|
||||
*/
|
||||
private String licensePhoto;
|
||||
|
||||
/**
|
||||
* 营业执照编号
|
||||
*/
|
||||
private String licenseNumber;
|
||||
|
||||
/**
|
||||
* 商户名称全称
|
||||
*/
|
||||
private String merchantFullName;
|
||||
|
||||
/**
|
||||
* 营业执照注册地址
|
||||
*/
|
||||
private String registeredAddress;
|
||||
|
||||
/**
|
||||
* 营业执照有效期开始时间
|
||||
*/
|
||||
private LocalDate issueDate;
|
||||
|
||||
/**
|
||||
* 营业执照有效期截止时间
|
||||
*/
|
||||
private LocalDate expiryDate;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,95 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpSettlementAccountDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 账户类型(0:对私, 1:对公)
|
||||
*/
|
||||
private Boolean accountType;
|
||||
|
||||
/**
|
||||
* 开户名称
|
||||
*/
|
||||
private String openAccountName;
|
||||
|
||||
/**
|
||||
* 银行账号
|
||||
*/
|
||||
private String bankAccount;
|
||||
|
||||
/**
|
||||
* 开户行
|
||||
*/
|
||||
private String openAccountBank;
|
||||
|
||||
/**
|
||||
* 开户行地址
|
||||
*/
|
||||
private String bankAddress;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,135 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpStoreManagementDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 商户编号
|
||||
*/
|
||||
private String merchantNumber;
|
||||
|
||||
/**
|
||||
* 门店编号
|
||||
*/
|
||||
private String storeNumber;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 联系人电话
|
||||
*/
|
||||
private Byte contactPhone;
|
||||
|
||||
/**
|
||||
* 门店LOGO
|
||||
*/
|
||||
private String logoPhoto;
|
||||
|
||||
/**
|
||||
* 门店内景照片
|
||||
*/
|
||||
private String indoorScenePhoto;
|
||||
|
||||
/**
|
||||
* 门头照片
|
||||
*/
|
||||
private String doorSignPhoto;
|
||||
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 城区
|
||||
*/
|
||||
private String urbanArea;
|
||||
|
||||
/**
|
||||
* 具体位置
|
||||
*/
|
||||
private String specificLocation;
|
||||
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
private String latitudeLongitude;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String notes;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 预留字段3
|
||||
*/
|
||||
private String reservedField3;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpEnterPieceManagementDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* 进件管理 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpEnterPieceManagementMapStruct extends EntityMapper<OpEnterPieceManagementDto, OpEnterPieceManagementEntity> {
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpEnterPieceManagementDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 法人身份证信息 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpLegalEntityIdCardInfoMapStruct extends EntityMapper<OpEnterPieceManagementDto, OpEnterPieceManagementEntity> {
|
||||
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpMerchantInfoDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpMerchantInfoEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* 商户信息 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpMerchantInfoMapStruct extends EntityMapper<OpMerchantInfoDto, OpMerchantInfoEntity> {
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpMerchantListDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpMerchantListEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* 商户列表 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpMerchantListMapStruct extends EntityMapper<OpMerchantListDto, OpMerchantListEntity> {
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpSettlementAccountDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpSettlementAccountEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* 结算账户 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpSettlementAccountMapStruct extends EntityMapper<OpSettlementAccountDto, OpSettlementAccountEntity> {
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpSettlementRulesDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpSettlementRulesEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* 结算规则 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpSettlementRulesMapStruct extends EntityMapper<OpSettlementRulesDto, OpSettlementRulesEntity> {
|
||||
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.mapstruct;
|
||||
|
||||
import cn.iocoder.hake.module.op.domain.EntityMapper;
|
||||
import cn.iocoder.hake.module.op.domain.dto.OpStoreManagementDto;
|
||||
import cn.iocoder.hake.module.op.entity.OpStoreManagementEntity;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
|
||||
/**
|
||||
* 门店管理 MapStruct dto 与 entity 转换
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Mapper(componentModel = "spring", uses = {})
|
||||
public interface OpStoreManagementMapStruct extends EntityMapper<OpStoreManagementDto, OpStoreManagementEntity> {
|
||||
|
||||
}
|
||||
@ -1,100 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpLegalEntityIdCardInfoVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 法人身份证人像面照片
|
||||
*/
|
||||
private String cardFrontPhoto;
|
||||
|
||||
/**
|
||||
* 法人身份证国徽面照片
|
||||
*/
|
||||
private String cardReversePhoto;
|
||||
|
||||
/**
|
||||
* 法人身份证姓名
|
||||
*/
|
||||
private String cardName;
|
||||
|
||||
/**
|
||||
* 法人身份证号
|
||||
*/
|
||||
private String cardNumber;
|
||||
|
||||
/**
|
||||
* 法人身份证起始有效时间
|
||||
*/
|
||||
private String startDate;
|
||||
|
||||
/**
|
||||
* 法人身份证结束有效时间
|
||||
*/
|
||||
private String endDate;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,101 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpMerchantInfoVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 营业执照照片
|
||||
*/
|
||||
private String licensePhoto;
|
||||
|
||||
/**
|
||||
* 营业执照编号
|
||||
*/
|
||||
private String licenseNumber;
|
||||
|
||||
/**
|
||||
* 商户名称全称
|
||||
*/
|
||||
private String merchantFullName;
|
||||
|
||||
/**
|
||||
* 营业执照注册地址
|
||||
*/
|
||||
private String registeredAddress;
|
||||
|
||||
/**
|
||||
* 营业执照有效期开始时间
|
||||
*/
|
||||
private LocalDate issueDate;
|
||||
|
||||
/**
|
||||
* 营业执照有效期截止时间
|
||||
*/
|
||||
private LocalDate expiryDate;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,95 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpSettlementAccountVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 账户类型(0:对私, 1:对公)
|
||||
*/
|
||||
private Boolean accountType;
|
||||
|
||||
/**
|
||||
* 开户名称
|
||||
*/
|
||||
private String openAccountName;
|
||||
|
||||
/**
|
||||
* 银行账号
|
||||
*/
|
||||
private String bankAccount;
|
||||
|
||||
/**
|
||||
* 开户行
|
||||
*/
|
||||
private String openAccountBank;
|
||||
|
||||
/**
|
||||
* 开户行地址
|
||||
*/
|
||||
private String bankAddress;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,135 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.domain.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class OpStoreManagementVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 商户编号
|
||||
*/
|
||||
private String merchantNumber;
|
||||
|
||||
/**
|
||||
* 门店编号
|
||||
*/
|
||||
private String storeNumber;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 联系人电话
|
||||
*/
|
||||
private Byte contactPhone;
|
||||
|
||||
/**
|
||||
* 门店LOGO
|
||||
*/
|
||||
private String logoPhoto;
|
||||
|
||||
/**
|
||||
* 门店内景照片
|
||||
*/
|
||||
private String indoorScenePhoto;
|
||||
|
||||
/**
|
||||
* 门头照片
|
||||
*/
|
||||
private String doorSignPhoto;
|
||||
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 城区
|
||||
*/
|
||||
private String urbanArea;
|
||||
|
||||
/**
|
||||
* 具体位置
|
||||
*/
|
||||
private String specificLocation;
|
||||
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
private String latitudeLongitude;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String notes;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 预留字段3
|
||||
*/
|
||||
private String reservedField3;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
}
|
||||
@ -1,108 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 法人身份证信息
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("op_legal_entity_id_card_info")
|
||||
@Accessors(chain = true)
|
||||
public class OpLegalEntityIdCardInfoEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 法人身份证人像面照片
|
||||
*/
|
||||
private String cardFrontPhoto;
|
||||
|
||||
/**
|
||||
* 法人身份证国徽面照片
|
||||
*/
|
||||
private String cardReversePhoto;
|
||||
|
||||
/**
|
||||
* 法人身份证姓名
|
||||
*/
|
||||
private String cardName;
|
||||
|
||||
/**
|
||||
* 法人身份证号
|
||||
*/
|
||||
private String cardNumber;
|
||||
|
||||
/**
|
||||
* 法人身份证起始有效时间
|
||||
*/
|
||||
private String startDate;
|
||||
|
||||
/**
|
||||
* 法人身份证结束有效时间
|
||||
*/
|
||||
private String endDate;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
private Integer tenantId;
|
||||
}
|
||||
@ -1,109 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户信息
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("op_merchant_info")
|
||||
@Accessors(chain = true)
|
||||
public class OpMerchantInfoEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 营业执照照片
|
||||
*/
|
||||
private String licensePhoto;
|
||||
|
||||
/**
|
||||
* 营业执照编号
|
||||
*/
|
||||
private String licenseNumber;
|
||||
|
||||
/**
|
||||
* 商户名称全称
|
||||
*/
|
||||
private String merchantFullName;
|
||||
|
||||
/**
|
||||
* 营业执照注册地址
|
||||
*/
|
||||
private String registeredAddress;
|
||||
|
||||
/**
|
||||
* 营业执照有效期开始时间
|
||||
*/
|
||||
private LocalDate issueDate;
|
||||
|
||||
/**
|
||||
* 营业执照有效期截止时间
|
||||
*/
|
||||
private LocalDate expiryDate;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
private Integer tenantId;
|
||||
}
|
||||
@ -1,103 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 结算账户
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("op_settlement_account")
|
||||
@Accessors(chain = true)
|
||||
public class OpSettlementAccountEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 进件ID
|
||||
*/
|
||||
private String enterPieceId;
|
||||
|
||||
/**
|
||||
* 账户类型(0:对私, 1:对公)
|
||||
*/
|
||||
private Boolean accountType;
|
||||
|
||||
/**
|
||||
* 开户名称
|
||||
*/
|
||||
private String openAccountName;
|
||||
|
||||
/**
|
||||
* 银行账号
|
||||
*/
|
||||
private String bankAccount;
|
||||
|
||||
/**
|
||||
* 开户行
|
||||
*/
|
||||
private String openAccountBank;
|
||||
|
||||
/**
|
||||
* 开户行地址
|
||||
*/
|
||||
private String bankAddress;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
private Integer tenantId;
|
||||
}
|
||||
@ -1,143 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店管理
|
||||
* </p>
|
||||
*
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("op_store_management")
|
||||
@Accessors(chain = true)
|
||||
public class OpStoreManagementEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 商户编号
|
||||
*/
|
||||
private String merchantNumber;
|
||||
|
||||
/**
|
||||
* 门店编号
|
||||
*/
|
||||
private String storeNumber;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
*/
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 联系人电话
|
||||
*/
|
||||
private Byte contactPhone;
|
||||
|
||||
/**
|
||||
* 门店LOGO
|
||||
*/
|
||||
private String logoPhoto;
|
||||
|
||||
/**
|
||||
* 门店内景照片
|
||||
*/
|
||||
private String indoorScenePhoto;
|
||||
|
||||
/**
|
||||
* 门头照片
|
||||
*/
|
||||
private String doorSignPhoto;
|
||||
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 城区
|
||||
*/
|
||||
private String urbanArea;
|
||||
|
||||
/**
|
||||
* 具体位置
|
||||
*/
|
||||
private String specificLocation;
|
||||
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
private String latitudeLongitude;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String notes;
|
||||
|
||||
/**
|
||||
* 预留字段1
|
||||
*/
|
||||
private String reservedField1;
|
||||
|
||||
/**
|
||||
* 预留字段2
|
||||
*/
|
||||
private String reservedField2;
|
||||
|
||||
/**
|
||||
* 预留字段3
|
||||
*/
|
||||
private String reservedField3;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdUser;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updatedUser;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updatedTime;
|
||||
|
||||
/**
|
||||
* 逻辑删除标识 (0:未删除, 1:已删除)
|
||||
*/
|
||||
private Boolean isDeleted;
|
||||
/**
|
||||
* 租户编号
|
||||
*/
|
||||
private Integer tenantId;
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.iocoder.hake.module.op.framework.config.rpc;
|
||||
package cn.iocoder.hake.module.op.framework.rpc.config;
|
||||
|
||||
import cn.iocoder.hake.module.infra.api.file.FileApi;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.iocoder.hake.module.op.framework.config.security;
|
||||
package cn.iocoder.hake.module.op.framework.security.config;
|
||||
|
||||
import cn.iocoder.hake.framework.security.config.AuthorizeRequestsCustomizer;
|
||||
import cn.iocoder.hake.module.system.enums.ApiConstants;
|
||||
@ -1,64 +0,0 @@
|
||||
package cn.iocoder.hake.module.op.utils;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.generator.FastAutoGenerator;
|
||||
import com.baomidou.mybatisplus.generator.config.OutputFile;
|
||||
import com.baomidou.mybatisplus.generator.config.rules.DbColumnType;
|
||||
import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
|
||||
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
|
||||
|
||||
import java.sql.Types;
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* @author chenjr
|
||||
* @since 2025-07-31
|
||||
*/
|
||||
public class MyBatisPlusAuto {
|
||||
|
||||
public static void main(String[] args) {
|
||||
FastAutoGenerator.create("jdbc:mysql://127.0.0.1:3306/hake", "", "")
|
||||
.globalConfig(builder -> {
|
||||
builder.author("chenjr") // 设置作者
|
||||
.outputDir(System.getProperty("user.dir") + "/src/main/java/"); // 输出路径
|
||||
})
|
||||
.dataSourceConfig(builder -> {
|
||||
builder.typeConvertHandler((globalConfig, typeRegistry, metaInfo) -> {
|
||||
int typeCode = metaInfo.getJdbcType().TYPE_CODE;
|
||||
if (typeCode == Types.SMALLINT) {
|
||||
return DbColumnType.INTEGER;
|
||||
}
|
||||
return typeRegistry.getColumnType(metaInfo);
|
||||
});
|
||||
})
|
||||
.packageConfig(builder -> {
|
||||
builder.parent("cn.iocoder.hake")
|
||||
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
|
||||
})
|
||||
.strategyConfig(builder -> {
|
||||
builder.entityBuilder()
|
||||
.naming(NamingStrategy.underline_to_camel)
|
||||
.columnNaming(NamingStrategy.underline_to_camel)
|
||||
.enableLombok()
|
||||
.logicDeleteColumnName("deleted");
|
||||
|
||||
builder.mapperBuilder()
|
||||
.enableFileOverride() // 覆盖已有文件(慎用)
|
||||
.enableBaseResultMap()
|
||||
.enableBaseColumnList();
|
||||
|
||||
builder.serviceBuilder()
|
||||
.formatServiceFileName("%sService")
|
||||
.formatServiceImplFileName("%sServiceImpl");
|
||||
|
||||
builder.controllerBuilder()
|
||||
.enableFileOverride();
|
||||
|
||||
// 设置需要生成的表名
|
||||
builder.addInclude("");
|
||||
})
|
||||
// 使用 Freemarker 模板引擎(默认,可省略)
|
||||
.templateEngine(new FreemarkerTemplateEngine())
|
||||
.execute();
|
||||
}
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpEnterPieceManagementMapper">
|
||||
|
||||
</mapper>
|
||||
@ -1,5 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpLegalEntityIdCardInfoMapper">
|
||||
|
||||
</mapper>
|
||||
@ -1,4 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpMerchantInfoMapper">
|
||||
</mapper>
|
||||
@ -1,5 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpMerchantListMapper">
|
||||
|
||||
</mapper>
|
||||
@ -1,5 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpSettlementAccountMapper">
|
||||
|
||||
</mapper>
|
||||
@ -1,4 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpSettlementRulesMapper">
|
||||
</mapper>
|
||||
@ -1,4 +0,0 @@
|
||||
<?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="cn.iocoder.hake.module.op.dao.mapper.OpStoreManagementMapper">
|
||||
</mapper>
|
||||
@ -0,0 +1,110 @@
|
||||
package cn.iocoder.hake.module.system.controller.admin.mcc;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import javax.validation.*;
|
||||
import javax.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import cn.iocoder.hake.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.hake.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.hake.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.hake.framework.common.util.object.BeanUtils;
|
||||
|
||||
import static cn.iocoder.hake.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static cn.iocoder.hake.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import cn.iocoder.hake.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import cn.iocoder.hake.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static cn.iocoder.hake.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
import static cn.iocoder.hake.module.system.enums.ErrorCodeConstants.MCC_EXISTS;
|
||||
|
||||
import cn.iocoder.hake.module.system.controller.admin.mcc.vo.*;
|
||||
import cn.iocoder.hake.module.system.dal.dataobject.mcc.MccDO;
|
||||
import cn.iocoder.hake.module.system.service.mcc.MccService;
|
||||
|
||||
@Tag(name = "管理后台 - 汇付MCC")
|
||||
@RestController
|
||||
@RequestMapping("/huifu/mcc")
|
||||
@Validated
|
||||
public class MccController {
|
||||
|
||||
@Resource
|
||||
private MccService mccService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建汇付MCC")
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:create')")
|
||||
public CommonResult<Long> createMcc(@Valid @RequestBody MccSaveReqVO createReqVO) {
|
||||
//判断是否存在数据
|
||||
if (mccService.getMcc(createReqVO.getCode()) != null) {
|
||||
throw exception(MCC_EXISTS);
|
||||
}
|
||||
return success(mccService.createMcc(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新汇付MCC")
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:update')")
|
||||
public CommonResult<Boolean> updateMcc(@Valid @RequestBody MccSaveReqVO updateReqVO) {
|
||||
mccService.updateMcc(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除汇付MCC")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:delete')")
|
||||
public CommonResult<Boolean> deleteMcc(@RequestParam("id") Long id) {
|
||||
mccService.deleteMcc(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除汇付MCC")
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:delete')")
|
||||
public CommonResult<Boolean> deleteMccList(@RequestParam("ids") List<Long> ids) {
|
||||
mccService.deleteMccListByIds(ids);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得汇付MCC")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:query')")
|
||||
public CommonResult<MccRespVO> getMcc(@RequestParam("id") Long id) {
|
||||
MccDO mcc = mccService.getMcc(id);
|
||||
return success(BeanUtils.toBean(mcc, MccRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得汇付MCC分页")
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:query')")
|
||||
public CommonResult<PageResult<MccRespVO>> getMccPage(@Valid MccPageReqVO pageReqVO) {
|
||||
PageResult<MccDO> pageResult = mccService.getMccPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, MccRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出汇付MCC Excel")
|
||||
@PreAuthorize("@ss.hasPermission('huifu:mcc:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportMccExcel(@Valid MccPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<MccDO> list = mccService.getMccPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "汇付MCC.xls", "数据", MccRespVO.class,
|
||||
BeanUtils.toBean(list, MccRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package cn.iocoder.hake.module.system.controller.admin.mcc.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.iocoder.hake.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.iocoder.hake.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 汇付MCC分页 Request VO")
|
||||
@Data
|
||||
public class MccPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "大类名称")
|
||||
private String majorCategory;
|
||||
|
||||
@Schema(description = "小类名称")
|
||||
private String subCategory;
|
||||
|
||||
@Schema(description = "名称")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "编码")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package cn.iocoder.hake.module.system.controller.admin.mcc.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 汇付MCC Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class MccRespVO {
|
||||
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21735")
|
||||
@ExcelProperty("id")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "大类名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("大类名称")
|
||||
private String majorCategory;
|
||||
|
||||
@Schema(description = "小类名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("小类名称")
|
||||
private String subCategory;
|
||||
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("名称")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("编码")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package cn.iocoder.hake.module.system.controller.admin.mcc.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 汇付MCC新增/修改 Request VO")
|
||||
@Data
|
||||
public class MccSaveReqVO {
|
||||
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1689")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "大类名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "大类名称不能为空")
|
||||
private String majorCategory;
|
||||
|
||||
@Schema(description = "小类名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "小类名称不能为空")
|
||||
private String subCategory;
|
||||
|
||||
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String category;
|
||||
|
||||
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "编码不能为空")
|
||||
private String code;
|
||||
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package cn.iocoder.hake.module.system.dal.dataobject.mcc;
|
||||
|
||||
import cn.iocoder.hake.framework.tenant.core.aop.TenantIgnore;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.hake.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* 汇付MCC DO
|
||||
*
|
||||
* @author hake
|
||||
*/
|
||||
@TableName("huifu_mcc")
|
||||
@KeySequence("huifu_mcc_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TenantIgnore
|
||||
public class MccDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 大类名称
|
||||
*/
|
||||
private String majorCategory;
|
||||
/**
|
||||
* 小类名称
|
||||
*/
|
||||
private String subCategory;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String category;
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package cn.iocoder.hake.module.system.dal.mysql.mcc;
|
||||
|
||||
import cn.iocoder.hake.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.hake.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cn.iocoder.hake.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.hake.module.system.dal.dataobject.mcc.MccDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.hake.module.system.controller.admin.mcc.vo.*;
|
||||
|
||||
/**
|
||||
* 汇付MCC Mapper
|
||||
*
|
||||
* @author hake
|
||||
*/
|
||||
@Mapper
|
||||
public interface MccMapper extends BaseMapperX<MccDO> {
|
||||
|
||||
default PageResult<MccDO> selectPage(MccPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<MccDO>()
|
||||
.eqIfPresent(MccDO::getMajorCategory, reqVO.getMajorCategory())
|
||||
.eqIfPresent(MccDO::getSubCategory, reqVO.getSubCategory())
|
||||
.eqIfPresent(MccDO::getCategory, reqVO.getCategory())
|
||||
.eqIfPresent(MccDO::getCode, reqVO.getCode())
|
||||
.betweenIfPresent(MccDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(MccDO::getId));
|
||||
}
|
||||
|
||||
|
||||
default MccDO getMcc(String code) {
|
||||
return selectOne(MccDO::getCode, code);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package cn.iocoder.hake.module.system.service.mcc;
|
||||
|
||||
import java.util.*;
|
||||
import javax.validation.*;
|
||||
import cn.iocoder.hake.module.system.controller.admin.mcc.vo.*;
|
||||
import cn.iocoder.hake.module.system.dal.dataobject.mcc.MccDO;
|
||||
import cn.iocoder.hake.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 汇付MCC Service 接口
|
||||
*
|
||||
* @author hake
|
||||
*/
|
||||
public interface MccService {
|
||||
|
||||
/**
|
||||
* 创建汇付MCC
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
Long createMcc(@Valid MccSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新汇付MCC
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateMcc(@Valid MccSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除汇付MCC
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteMcc(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除汇付MCC
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteMccListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得汇付MCC
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 汇付MCC
|
||||
*/
|
||||
MccDO getMcc(Long id);
|
||||
|
||||
/**
|
||||
* 获得汇付MCC分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 汇付MCC分页
|
||||
*/
|
||||
PageResult<MccDO> getMccPage(MccPageReqVO pageReqVO);
|
||||
|
||||
/**
|
||||
* 获得汇付MCC
|
||||
*
|
||||
* @param code 编号
|
||||
* @return 汇付MCC
|
||||
*/
|
||||
MccDO getMcc(String code);
|
||||
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package cn.iocoder.hake.module.system.service.mcc;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.iocoder.hake.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
|
||||
import cn.iocoder.hake.module.system.controller.admin.mcc.vo.*;
|
||||
import cn.iocoder.hake.module.system.dal.dataobject.mcc.MccDO;
|
||||
import cn.iocoder.hake.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.hake.framework.common.util.object.BeanUtils;
|
||||
|
||||
import cn.iocoder.hake.module.system.dal.mysql.mcc.MccMapper;
|
||||
|
||||
import static cn.iocoder.hake.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static cn.iocoder.hake.module.system.enums.ErrorCodeConstants.MCC_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 汇付MCC Service 实现类
|
||||
*
|
||||
* @author hake
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class MccServiceImpl implements MccService {
|
||||
|
||||
@Resource
|
||||
private MccMapper mccMapper;
|
||||
|
||||
@Override
|
||||
public Long createMcc(MccSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
MccDO mcc = BeanUtils.toBean(createReqVO, MccDO.class);
|
||||
mccMapper.insert(mcc);
|
||||
// 返回
|
||||
return mcc.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMcc(MccSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateMccExists(updateReqVO.getId());
|
||||
// 更新
|
||||
MccDO updateObj = BeanUtils.toBean(updateReqVO, MccDO.class);
|
||||
updateObj.setUpdater(SecurityFrameworkUtils.getLoginUserId().toString());
|
||||
mccMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMcc(Long id) {
|
||||
// 校验存在
|
||||
validateMccExists(id);
|
||||
// 删除
|
||||
mccMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMccListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateMccExists(ids);
|
||||
// 删除
|
||||
mccMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateMccExists(List<Long> ids) {
|
||||
List<MccDO> list = mccMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(MCC_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateMccExists(Long id) {
|
||||
if (mccMapper.selectById(id) == null) {
|
||||
throw exception(MCC_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MccDO getMcc(Long id) {
|
||||
return mccMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<MccDO> getMccPage(MccPageReqVO pageReqVO) {
|
||||
return mccMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MccDO getMcc(String code) {
|
||||
return mccMapper.getMcc(code);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue