Merge #132 into master from revert-56b85c33-20f063dc
Revert commit "Merge #128 into master from cc_20250512_uploadRentContract * revert-56b85c33-20f063dc: (1 commits squashed) - Revert commit "Merge #128 into master from cc_20250512_uploadRentContract This reverts change request#128 Signed-off-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/132
This commit is contained in:
@@ -12,10 +12,8 @@ import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -29,16 +27,8 @@ public class BigRegionDAO {
|
||||
@Resource
|
||||
BigRegionMapper bigRegionMapper;
|
||||
|
||||
public List<BigRegionDTO> queryAllBigRegion(String keyword, Integer joinBrand,Integer type,Integer enable){
|
||||
return bigRegionMapper.queryAllBigRegion(keyword, joinBrand,type,enable);
|
||||
}
|
||||
|
||||
public Map<Long,BigRegionDO> getMapByRegionIds(List<Long> regionIdList){
|
||||
if (CollectionUtils.isEmpty(regionIdList)){
|
||||
return new HashMap<>();
|
||||
}
|
||||
List<BigRegionDO> bigRegionDOList = bigRegionMapper.getByRegionIdList(regionIdList);
|
||||
return bigRegionDOList.stream().collect(Collectors.toMap(BigRegionDO::getRegionId, bigRegionDO -> bigRegionDO));
|
||||
public List<BigRegionDTO> queryAllBigRegion(String keyword, Integer joinBrand,Integer type){
|
||||
return bigRegionMapper.queryAllBigRegion(keyword, joinBrand,type);
|
||||
}
|
||||
|
||||
public BigRegionDO queryOrgInfoByBigRegionAndJoinMode(Long regionId, Integer joinMode){
|
||||
|
||||
@@ -8,7 +8,6 @@ import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -115,8 +114,4 @@ public class LinePayDAO {
|
||||
}
|
||||
return linePayMapper.deleteByShopId(shopIds);
|
||||
}
|
||||
|
||||
public Integer updateAmountAndPayUserName(Long id, BigDecimal amount, String payUserName, String userId){
|
||||
return linePayMapper.updateAmountAndPayUserName(id,amount,payUserName,userId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,12 +5,10 @@ import com.cool.store.entity.OpeningOperationPlanDO;
|
||||
import com.cool.store.mapper.OpeningOperationPlanMapper;
|
||||
import com.cool.store.request.PlanListRequest;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -54,11 +52,5 @@ public class OpeningOperationPlanDAO {
|
||||
return openingOperationPlanMapper.selectByShopId(shopId);
|
||||
}
|
||||
|
||||
public List<OpeningOperationPlanDO> selectByShopIds( List<Long> shopIds){
|
||||
if (CollectionUtils.isEmpty(shopIds)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return openingOperationPlanMapper.selectByShopIds(shopIds);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.ReceivingBankDO;
|
||||
import com.cool.store.mapper.ReceivingBankMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/06/18/17:34
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Slf4j
|
||||
@Repository
|
||||
public class ReceivingBankDAO {
|
||||
@Resource
|
||||
private ReceivingBankMapper receivingBankMapper;
|
||||
|
||||
public Integer insertSelective(ReceivingBankDO receivingBankDO){
|
||||
return receivingBankMapper.insertSelective(receivingBankDO);
|
||||
}
|
||||
public List<ReceivingBankDO> getByFranchiseBrandAndRegionId(List<String> franchiseBrandList,List<Long> regionIdList){
|
||||
return receivingBankMapper.getByFranchiseBrandAndRegionId(franchiseBrandList,regionIdList);
|
||||
}
|
||||
public Integer updateByPrimaryKeySelective(ReceivingBankDO receivingBankDO){
|
||||
return receivingBankMapper.updateByPrimaryKeySelective(receivingBankDO);
|
||||
}
|
||||
|
||||
public Integer batchInsert(List<ReceivingBankDO> list){
|
||||
return receivingBankMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
public List<ReceivingBankDO> queryAll(){
|
||||
Example example = new Example(ReceivingBankDO.class);
|
||||
example.createCriteria().andEqualTo("deleted",false);
|
||||
List<ReceivingBankDO> receivingBankDOS = receivingBankMapper.selectByExample(example);
|
||||
if (receivingBankDOS == null){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return receivingBankDOS;
|
||||
}
|
||||
public List<ReceivingBankDO> getByRegionAndFranchiseBrandAndPayType(Long regionId,Integer franchiseBrand,Integer payType){
|
||||
Example example = new Example(ReceivingBankDO.class);
|
||||
example.createCriteria().andEqualTo("deleted",false)
|
||||
.andEqualTo("regionId",regionId).andEqualTo("franchiseBrand",franchiseBrand)
|
||||
.andEqualTo("payType",payType);
|
||||
List<ReceivingBankDO> receivingBankDOS = receivingBankMapper.selectByExample(example);
|
||||
return receivingBankDOS;
|
||||
|
||||
}
|
||||
public Integer batchInsertOrUpdate(List<ReceivingBankDO> receivingBankDOList){
|
||||
if (CollectionUtils.isEmpty(receivingBankDOList)){
|
||||
log.info("receivingBankDOList is empty");
|
||||
return 0;
|
||||
}
|
||||
return receivingBankMapper.batchInsertOrUpdate(receivingBankDOList);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.dto.store.StoreAddressDTO;
|
||||
import com.cool.store.dto.store.StoreExtendSoftOpenDTO;
|
||||
import com.cool.store.dto.store.StoreOrderTimeDTO;
|
||||
import com.cool.store.dto.store.StoreReportDTO;
|
||||
import com.cool.store.entity.StoreDO;
|
||||
import com.cool.store.enums.StoreStatusEnum;
|
||||
import com.cool.store.mapper.StoreMapper;
|
||||
@@ -20,7 +19,6 @@ import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -104,18 +102,6 @@ public class StoreDao {
|
||||
return storeMapper.getStoreNumByStoreCodes(storeCodeIds);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 门店状态改为闭店
|
||||
* @param storeId 门店id
|
||||
* @param closeReason 闭店原因
|
||||
* @param closeNature 闭店性质
|
||||
*/
|
||||
public void closeStore(String storeId, Integer closeReason, Integer closeNature) {
|
||||
if (storeMapper.closeStore(storeId) > 0) {
|
||||
storeMapper.insertOrUpdateCloseInfo(storeId, closeReason, closeNature);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 新增或编辑最新订货时间
|
||||
* @param dtoList 门店最新订货时间DTO列表
|
||||
@@ -309,49 +295,6 @@ public class StoreDao {
|
||||
return storeMapper.getPrivateSphereQrCode(storeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 总营业门店数量统计
|
||||
*/
|
||||
public Map<Integer, Integer> totalOpenStoreReport(String date, Integer domestic, List<Integer> joinBrandList) {
|
||||
if (CollectionUtils.isEmpty(joinBrandList)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
List<StoreReportDTO> list = storeMapper.totalOpenStoreReport(date, domestic, joinBrandList);
|
||||
return CollStreamUtil.toMap(list, StoreReportDTO::getJoinBrand, StoreReportDTO::getNum);
|
||||
}
|
||||
|
||||
/**
|
||||
* 期初门店数
|
||||
*/
|
||||
public Map<Integer, Integer> periodBeginStoreReport(String date, Integer domestic, List<Integer> joinBrandList) {
|
||||
if (CollectionUtils.isEmpty(joinBrandList)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
List<StoreReportDTO> list = storeMapper.periodBeginStoreReport(date, domestic, joinBrandList);
|
||||
return CollStreamUtil.toMap(list, StoreReportDTO::getJoinBrand, StoreReportDTO::getNum);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新开门店数
|
||||
*/
|
||||
public Map<Integer, Integer> newOpenStoreReport(String date, Integer domestic, List<Integer> joinBrandList) {
|
||||
if (CollectionUtils.isEmpty(joinBrandList)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
List<StoreReportDTO> list = storeMapper.newOpenStoreReport(date, domestic, joinBrandList);
|
||||
return CollStreamUtil.toMap(list, StoreReportDTO::getJoinBrand, StoreReportDTO::getNum);
|
||||
}
|
||||
|
||||
/**
|
||||
* 闭店门店数
|
||||
*/
|
||||
public Map<Integer, Integer> closeStoreReport(String date, Integer domestic, List<Integer> joinBrandList) {
|
||||
if (CollectionUtils.isEmpty(joinBrandList)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
List<StoreReportDTO> list = storeMapper.closeStoreReport(date, domestic, joinBrandList);
|
||||
return CollStreamUtil.toMap(list, StoreReportDTO::getJoinBrand, StoreReportDTO::getNum);
|
||||
}
|
||||
/**
|
||||
* 批量新增或编辑开始试营业日期
|
||||
*/
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.ThirdPartyAccountDO;
|
||||
import com.cool.store.mapper.ThirdPartyAccountMapper;
|
||||
import com.cool.store.utils.StringUtil;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/5/26 16:59
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Repository
|
||||
public class ThirdPartyAccountDAO {
|
||||
|
||||
@Resource
|
||||
ThirdPartyAccountMapper thirdPartyAccountMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
* @param thirdPartyAccountDO
|
||||
* @return
|
||||
*/
|
||||
public int addPushRecord(ThirdPartyAccountDO thirdPartyAccountDO){
|
||||
return thirdPartyAccountMapper.insertSelective(thirdPartyAccountDO);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public ThirdPartyAccountDO getByCodeAndMobile(String shopCode, String mobile){
|
||||
if (StringUtil.isAnyBlank(shopCode,mobile)){
|
||||
return null;
|
||||
}
|
||||
return thirdPartyAccountMapper.getByCodeAndMobile(shopCode,mobile);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public boolean exists(String shopCode, String mobile){
|
||||
if (StringUtil.isAnyBlank(shopCode,mobile)){
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
return thirdPartyAccountMapper.exists(shopCode,mobile);
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.ThirdPartyStoreDO;
|
||||
import com.cool.store.mapper.ThirdPartyStoreMapper;
|
||||
import com.cool.store.utils.StringUtil;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/5/26 16:58
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Repository
|
||||
public class ThirdPartyStoreDAO {
|
||||
|
||||
@Resource
|
||||
ThirdPartyStoreMapper thirdPartyStoreMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 新增推送数据记录
|
||||
* @param thirdPartyStoreDO
|
||||
* @return
|
||||
*/
|
||||
public int addPushRecord(ThirdPartyStoreDO thirdPartyStoreDO){
|
||||
return thirdPartyStoreMapper.insertSelective(thirdPartyStoreDO);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过门店编码查询推送记录
|
||||
* @param storeCode
|
||||
* @return
|
||||
*/
|
||||
public ThirdPartyStoreDO getByLocalStoreCode(String storeCode){
|
||||
if (StringUtil.isEmpty(storeCode)){
|
||||
return null;
|
||||
}
|
||||
return thirdPartyStoreMapper.getByLocalStoreCode(storeCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 门店是否存在
|
||||
* @param localStoreCode
|
||||
* @return
|
||||
*/
|
||||
public boolean exists(String localStoreCode){
|
||||
if (StringUtil.isEmpty(localStoreCode)){
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
return thirdPartyStoreMapper.exists(localStoreCode);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
package com.cool.store.dao.approval;
|
||||
|
||||
import com.cool.store.entity.approval.CommonApprovalLogDO;
|
||||
import com.cool.store.enums.approval.ApprovalResultEnum;
|
||||
import com.cool.store.mapper.approval.CommonApprovalLogMapper;
|
||||
import com.cool.store.utils.GenerateNoUtil;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static javassist.CtClass.version;
|
||||
|
||||
@Repository
|
||||
public class CommonApprovalLogDAO {
|
||||
|
||||
@Resource
|
||||
private CommonApprovalLogMapper commonApprovalLogMapper;
|
||||
|
||||
/**
|
||||
* 插入单条审批记录(提交场景:加盟商确认)
|
||||
*/
|
||||
public int addSubmitRecord(String applicationNo, String handleUserId, String handleUserName, String nodeCode, String nodeName) {
|
||||
Long version = GenerateNoUtil.generateVersion();
|
||||
CommonApprovalLogDO record = CommonApprovalLogDO.builder()
|
||||
.applicationNo(applicationNo)
|
||||
.version(version)
|
||||
.nodeCode(nodeCode)
|
||||
.nodeName(nodeName)
|
||||
.handleUserId(handleUserId)
|
||||
.handleUserName(handleUserName)
|
||||
.result(ApprovalResultEnum.PASS.getResult())
|
||||
.status("1")
|
||||
.submitType(0)
|
||||
.operateTime(new Date())
|
||||
.deleted(0)
|
||||
.build();
|
||||
return commonApprovalLogMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 插入待处理审批记录(审批节点)
|
||||
*/
|
||||
public int addApproveRecord(String applicationNo, String nodeCode, String nodeName, String handleUserId, String handleUserName,Long version) {
|
||||
if (version == null){
|
||||
version = GenerateNoUtil.generateVersion();
|
||||
}
|
||||
CommonApprovalLogDO record = CommonApprovalLogDO.builder()
|
||||
.applicationNo(applicationNo)
|
||||
.version(version)
|
||||
.nodeCode(nodeCode)
|
||||
.nodeName(nodeName)
|
||||
.handleUserId(handleUserId)
|
||||
.handleUserName(handleUserName)
|
||||
.status("2")
|
||||
.submitType(1)
|
||||
.operateTime(new Date())
|
||||
.deleted(0)
|
||||
.build();
|
||||
return commonApprovalLogMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量插入审批记录
|
||||
*/
|
||||
public int batchInsertApprovalRecords(List<CommonApprovalLogDO> list) {
|
||||
if (list == null || list.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
return commonApprovalLogMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
public void updateRecord(CommonApprovalLogDO record) {
|
||||
commonApprovalLogMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新审批记录
|
||||
*/
|
||||
public int batchUpdateRecords(List<CommonApprovalLogDO> list) {
|
||||
if (list == null || list.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
return commonApprovalLogMapper.batchUpdate(list);
|
||||
}
|
||||
|
||||
public CommonApprovalLogDO getById(Long id) {
|
||||
return commonApprovalLogMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<CommonApprovalLogDO> getByApplicationNo(String applicationNo) {
|
||||
return commonApprovalLogMapper.getByApplicationNo(applicationNo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定申请号和节点的待处理记录
|
||||
*/
|
||||
public List<CommonApprovalLogDO> getPendingByApplicationNoAndNodeCode(String applicationNo, String nodeCode) {
|
||||
Example example = new Example(CommonApprovalLogDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("applicationNo", applicationNo)
|
||||
.andEqualTo("nodeCode", nodeCode)
|
||||
.andEqualTo("status", "2")
|
||||
.andEqualTo("deleted", 0);
|
||||
return commonApprovalLogMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定申请号最新版本号的待处理记录
|
||||
*/
|
||||
public List<CommonApprovalLogDO> getLatestPendingRecords(String applicationNo, Integer version) {
|
||||
Example example = new Example(CommonApprovalLogDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("applicationNo", applicationNo)
|
||||
.andEqualTo("version", version)
|
||||
.andEqualTo("status", "2")
|
||||
.andEqualTo("deleted", 0);
|
||||
return commonApprovalLogMapper.selectByExample(example);
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package com.cool.store.dao.contract;
|
||||
|
||||
import com.cool.store.entity.contract.ContractCostDO;
|
||||
import com.cool.store.mapper.contract.ContractCostMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public class ContractCostDAO {
|
||||
|
||||
@Resource
|
||||
private ContractCostMapper contractCostMapper;
|
||||
|
||||
public int insertSelective(ContractCostDO record) {
|
||||
return contractCostMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public List<ContractCostDO> queryByContractNo(String contractNo) {
|
||||
return contractCostMapper.queryByContractNo(contractNo);
|
||||
}
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
package com.cool.store.dao.contract;
|
||||
|
||||
import com.cool.store.entity.contract.ContractMasterDO;
|
||||
import com.cool.store.mapper.contract.ContractMasterMapper;
|
||||
import com.cool.store.request.contract.ContractMasterQueryRequest;
|
||||
import com.cool.store.vo.contract.ContractMasterListVO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public class ContractMasterDAO {
|
||||
|
||||
@Resource
|
||||
private ContractMasterMapper contractMasterMapper;
|
||||
|
||||
public int insertSelective(ContractMasterDO record) {
|
||||
return contractMasterMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ContractMasterDO record) {
|
||||
return contractMasterMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ContractMasterDO getById(Long id) {
|
||||
return contractMasterMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ContractMasterListVO> queryContractMasterList(ContractMasterQueryRequest request) {
|
||||
return contractMasterMapper.queryContractMasterList(request);
|
||||
}
|
||||
|
||||
public List<ContractMasterDO> queryContractsNearExpiry(int days) {
|
||||
return contractMasterMapper.queryContractsNearExpiry(days);
|
||||
}
|
||||
|
||||
public ContractMasterDO getLatestContractByStoreCode(String storeCode) {
|
||||
return contractMasterMapper.getLatestContractByStoreCode(storeCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新续签申请标记(乐观锁:仅当renewalCreated=0时更新)
|
||||
*/
|
||||
public int updateRenewalCreated(Long id, Integer renewalCreated) {
|
||||
Example example = new Example(ContractMasterDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("id", id)
|
||||
.andEqualTo("renewalCreated", 0);
|
||||
ContractMasterDO update = new ContractMasterDO();
|
||||
update.setId(id);
|
||||
update.setRenewalCreated(renewalCreated);
|
||||
return contractMasterMapper.updateByPrimaryKeySelective(update);
|
||||
}
|
||||
|
||||
public ContractMasterDO getByContractNo(String contractNo) {
|
||||
Example example = new Example(ContractMasterDO.class);
|
||||
example.createCriteria().andEqualTo("contractNo", contractNo);
|
||||
return contractMasterMapper.selectOneByExample(example);
|
||||
}
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
package com.cool.store.dao.exam;
|
||||
|
||||
import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.entity.exam.ExamAttemptAnswerDO;
|
||||
import com.cool.store.mapper.exam.ExamAttemptAnswerMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 答题记录DAO
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class ExamAttemptAnswerDAO {
|
||||
|
||||
private final ExamAttemptAnswerMapper examAttemptAnswerMapper;
|
||||
|
||||
public int insertSelective(ExamAttemptAnswerDO record) {
|
||||
return examAttemptAnswerMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ExamAttemptAnswerDO record) {
|
||||
return examAttemptAnswerMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ExamAttemptAnswerDO selectByPrimaryKey(Long id) {
|
||||
return examAttemptAnswerMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ExamAttemptAnswerDO> select(ExamAttemptAnswerDO record) {
|
||||
return examAttemptAnswerMapper.select(record);
|
||||
}
|
||||
|
||||
public int insertOrUpdate(ExamAttemptAnswerDO record) {
|
||||
return examAttemptAnswerMapper.insertOrUpdate(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据答卷ID批量查询答案,返回Map(key: paperQuestionId)
|
||||
*/
|
||||
public Map<Long, ExamAttemptAnswerDO> getMapByAttemptId(Long attemptId) {
|
||||
Example example = new Example(ExamAttemptAnswerDO.class);
|
||||
example.createCriteria().andEqualTo("attemptId", attemptId);
|
||||
List<ExamAttemptAnswerDO> list = examAttemptAnswerMapper.selectByExample(example);
|
||||
return CollStreamUtil.toMap(list, ExamAttemptAnswerDO::getPaperQuestionId, v -> v);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量插入或更新答案
|
||||
*/
|
||||
public void batchInsertOrUpdate(List<ExamAttemptAnswerDO> list) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return;
|
||||
}
|
||||
examAttemptAnswerMapper.batchInsertOrUpdate(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新分数
|
||||
*/
|
||||
public void batchUpdateScore(List<ExamAttemptAnswerDO> list) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return;
|
||||
}
|
||||
examAttemptAnswerMapper.batchUpdateScore(list);
|
||||
}
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
package com.cool.store.dao.exam;
|
||||
|
||||
import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.entity.exam.ExamAttemptDO;
|
||||
import com.cool.store.mapper.exam.ExamAttemptMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 答卷DAO
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class ExamAttemptDAO {
|
||||
|
||||
private final ExamAttemptMapper examAttemptMapper;
|
||||
|
||||
public int insertSelective(ExamAttemptDO record) {
|
||||
return examAttemptMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ExamAttemptDO record) {
|
||||
return examAttemptMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ExamAttemptDO selectByPrimaryKey(Long id) {
|
||||
return examAttemptMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ExamAttemptDO> select(ExamAttemptDO record) {
|
||||
return examAttemptMapper.select(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新答卷状态和成绩
|
||||
*/
|
||||
public void updateStatusAndScore(Long id, Integer status, Integer submitType, BigDecimal totalScore) {
|
||||
ExamAttemptDO updateDO = new ExamAttemptDO();
|
||||
updateDO.setId(id);
|
||||
updateDO.setStatus(status);
|
||||
updateDO.setSubmitType(submitType);
|
||||
updateDO.setTotalScore(totalScore);
|
||||
updateDO.setEndTime(new Date());
|
||||
examAttemptMapper.updateByPrimaryKeySelective(updateDO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据考试ID和手机号查询进行中的答卷
|
||||
*/
|
||||
public ExamAttemptDO selectInProgressByExamIdAndMobile(Long examId, String mobile) {
|
||||
Example example = new Example(ExamAttemptDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("examId", examId)
|
||||
.andEqualTo("mobile", mobile)
|
||||
.andEqualTo("status", 0);
|
||||
example.setOrderByClause("id desc");
|
||||
List<ExamAttemptDO> list = examAttemptMapper.selectByExample(example);
|
||||
return list.isEmpty() ? null : list.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据手机号分页查询答卷列表
|
||||
*/
|
||||
public List<ExamAttemptDO> selectByMobile(String mobile) {
|
||||
Example example = new Example(ExamAttemptDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("mobile", mobile);
|
||||
example.setOrderByClause("id desc");
|
||||
return examAttemptMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询参考人数
|
||||
* @param examInfoIds 考试信息id列表
|
||||
* @return 考试id->参考人数
|
||||
*/
|
||||
public Map<Long, Long> getAttemptCount(List<Long> examInfoIds) {
|
||||
List<Map<String, Object>> list = examAttemptMapper.getAttemptCount(examInfoIds);
|
||||
return CollStreamUtil.toMap(list, v -> MapUtils.getLong(v, "exam_id"), v -> MapUtils.getLong(v, "attempt_count"));
|
||||
}
|
||||
|
||||
public boolean existFinishAttempt(String mobile, Long examId) {
|
||||
Example example = new Example(ExamAttemptDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("mobile", mobile)
|
||||
.andEqualTo("examId", examId)
|
||||
.andEqualTo("status", 1);
|
||||
return examAttemptMapper.selectCountByExample(example) > 0;
|
||||
}
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
package com.cool.store.dao.exam;
|
||||
|
||||
import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.entity.exam.ExamInfoDO;
|
||||
import com.cool.store.mapper.exam.ExamInfoMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 考试信息DAO
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class ExamInfoDAO {
|
||||
|
||||
private final ExamInfoMapper examInfoMapper;
|
||||
|
||||
public int insertSelective(ExamInfoDO record) {
|
||||
return examInfoMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ExamInfoDO record) {
|
||||
return examInfoMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ExamInfoDO selectByPrimaryKey(Long id) {
|
||||
return examInfoMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ExamInfoDO> select(ExamInfoDO record) {
|
||||
return examInfoMapper.select(record);
|
||||
}
|
||||
|
||||
public ExamInfoDO selectByToken(String token) {
|
||||
return examInfoMapper.selectByToken(token);
|
||||
}
|
||||
|
||||
/**
|
||||
* 条件查询列表
|
||||
*/
|
||||
public List<ExamInfoDO> selectList(Integer status) {
|
||||
Example example = new Example(ExamInfoDO.class);
|
||||
Example.Criteria criteria = example.createCriteria()
|
||||
.andEqualTo("deleted", 0);
|
||||
if (Objects.nonNull(status)) {
|
||||
criteria.andEqualTo("status", status);
|
||||
}
|
||||
example.setOrderByClause("create_time desc");
|
||||
return examInfoMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
public void updateStatus(Long id, Integer status) {
|
||||
ExamInfoDO examInfoDO = new ExamInfoDO();
|
||||
examInfoDO.setId(id);
|
||||
examInfoDO.setStatus(status);
|
||||
examInfoMapper.updateByPrimaryKeySelective(examInfoDO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID批量查询
|
||||
*/
|
||||
public List<ExamInfoDO> selectByIds(List<Long> ids) {
|
||||
if (CollectionUtils.isEmpty(ids)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
Example example = new Example(ExamInfoDO.class);
|
||||
example.createCriteria()
|
||||
.andIn("id", ids)
|
||||
.andEqualTo("deleted", 0);
|
||||
return examInfoMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID批量查询,返回Map
|
||||
*/
|
||||
public Map<Long, ExamInfoDO> getMapByIds(List<Long> ids) {
|
||||
List<ExamInfoDO> list = selectByIds(ids);
|
||||
return CollStreamUtil.toMap(list, ExamInfoDO::getId, v -> v);
|
||||
}
|
||||
|
||||
public Map<Long, ExamInfoDO> getMapIncludeDeletedByIds(List<Long> ids) {
|
||||
if (CollectionUtils.isEmpty(ids)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
Example example = new Example(ExamInfoDO.class);
|
||||
example.createCriteria()
|
||||
.andIn("id", ids);
|
||||
List<ExamInfoDO> list = examInfoMapper.selectByExample(example);
|
||||
return CollStreamUtil.toMap(list, ExamInfoDO::getId, v -> v);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID删除(逻辑删除)
|
||||
*/
|
||||
public void deleteById(Long id) {
|
||||
ExamInfoDO updateDO = new ExamInfoDO();
|
||||
updateDO.setId(id);
|
||||
updateDO.setDeleted(1);
|
||||
examInfoMapper.updateByPrimaryKeySelective(updateDO);
|
||||
}
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
package com.cool.store.dao.exam;
|
||||
|
||||
import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.entity.exam.ExamPaperDO;
|
||||
import com.cool.store.mapper.exam.ExamPaperMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 试卷DAO
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class ExamPaperDAO {
|
||||
|
||||
private final ExamPaperMapper examPaperMapper;
|
||||
|
||||
public int insertSelective(ExamPaperDO record) {
|
||||
return examPaperMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ExamPaperDO record) {
|
||||
return examPaperMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ExamPaperDO selectByPrimaryKey(Long id) {
|
||||
return examPaperMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ExamPaperDO> select(ExamPaperDO record) {
|
||||
return examPaperMapper.select(record);
|
||||
}
|
||||
|
||||
public int selectCount(ExamPaperDO record) {
|
||||
return examPaperMapper.selectCount(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 条件查询列表
|
||||
*/
|
||||
public List<ExamPaperDO> selectList(String paperName, Integer enable, Integer startExam) {
|
||||
Example example = new Example(ExamPaperDO.class);
|
||||
Example.Criteria criteria = example.createCriteria()
|
||||
.andEqualTo("deleted", 0);
|
||||
if (StringUtils.isNotBlank(paperName)) {
|
||||
criteria.andLike("paperName", "%" + paperName + "%");
|
||||
}
|
||||
if (Objects.nonNull(enable)) {
|
||||
criteria.andEqualTo("enable", enable);
|
||||
}
|
||||
if (Objects.nonNull(startExam)) {
|
||||
criteria.andEqualTo("startExam", startExam);
|
||||
}
|
||||
example.setOrderByClause("create_time desc");
|
||||
return examPaperMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID删除(逻辑删除)
|
||||
*/
|
||||
public void deleteById(Long id) {
|
||||
ExamPaperDO paperDO = new ExamPaperDO();
|
||||
paperDO.setId(id);
|
||||
paperDO.setDeleted(1);
|
||||
examPaperMapper.updateByPrimaryKeySelective(paperDO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新开始考试状态
|
||||
*/
|
||||
public void updateStartExam(Long id, Integer startExam) {
|
||||
ExamPaperDO paperDO = new ExamPaperDO();
|
||||
paperDO.setId(id);
|
||||
paperDO.setStartExam(startExam);
|
||||
examPaperMapper.updateByPrimaryKeySelective(paperDO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID列表批量查询,返回Map
|
||||
*/
|
||||
public Map<Long, ExamPaperDO> getMapByIds(List<Long> ids) {
|
||||
if (CollectionUtils.isEmpty(ids)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
Example example = new Example(ExamPaperDO.class);
|
||||
example.createCriteria().andIn("id", ids);
|
||||
List<ExamPaperDO> list = examPaperMapper.selectByExample(example);
|
||||
return CollStreamUtil.toMap(list, ExamPaperDO::getId, v -> v);
|
||||
}
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
package com.cool.store.dao.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamPaperQuestionDO;
|
||||
import com.cool.store.mapper.exam.ExamPaperQuestionMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 试卷题目DAO
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class ExamPaperQuestionDAO {
|
||||
|
||||
private final ExamPaperQuestionMapper examPaperQuestionMapper;
|
||||
|
||||
public int insertSelective(ExamPaperQuestionDO record) {
|
||||
return examPaperQuestionMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ExamPaperQuestionDO record) {
|
||||
return examPaperQuestionMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ExamPaperQuestionDO selectByPrimaryKey(Long id) {
|
||||
return examPaperQuestionMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<ExamPaperQuestionDO> select(ExamPaperQuestionDO record) {
|
||||
return examPaperQuestionMapper.select(record);
|
||||
}
|
||||
|
||||
public int selectCount(ExamPaperQuestionDO record) {
|
||||
return examPaperQuestionMapper.selectCount(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据试卷ID查询题目数量
|
||||
*/
|
||||
public int countByPaperId(Long paperId) {
|
||||
Example example = new Example(ExamPaperQuestionDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("paperId", paperId)
|
||||
.andEqualTo("deleted", 0);
|
||||
return examPaperQuestionMapper.selectCountByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量插入
|
||||
*/
|
||||
public int insertBatch(List<ExamPaperQuestionDO> list) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return 0;
|
||||
}
|
||||
return examPaperQuestionMapper.insertBatch(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据试卷ID批量删除(逻辑删除)
|
||||
*/
|
||||
public int deleteByPaperId(Long paperId) {
|
||||
return examPaperQuestionMapper.deleteByPaperId(paperId, new java.util.Date());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据试卷ID查询题目列表
|
||||
*/
|
||||
public List<ExamPaperQuestionDO> selectByPaperId(Long paperId) {
|
||||
Example example = new Example(ExamPaperQuestionDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("paperId", paperId)
|
||||
.andEqualTo("deleted", 0);
|
||||
example.setOrderByClause("id asc");
|
||||
return examPaperQuestionMapper.selectByExample(example);
|
||||
}
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
package com.cool.store.dao.exam;
|
||||
|
||||
import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.entity.exam.ExamQuestionDO;
|
||||
import com.cool.store.mapper.exam.ExamQuestionMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 题目DAO
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class ExamQuestionDAO {
|
||||
|
||||
private final ExamQuestionMapper examQuestionMapper;
|
||||
|
||||
public int insertSelective(ExamQuestionDO record) {
|
||||
return examQuestionMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(ExamQuestionDO record) {
|
||||
return examQuestionMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public ExamQuestionDO selectByPrimaryKey(Long id) {
|
||||
return examQuestionMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public Map<Long, ExamQuestionDO> getMapByIds(List<Long> ids) {
|
||||
if (CollectionUtils.isEmpty(ids)){
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
Example example = new Example(ExamQuestionDO.class);
|
||||
example.createCriteria()
|
||||
.andIn("id", ids);
|
||||
List<ExamQuestionDO> list = examQuestionMapper.selectByExample(example);
|
||||
return CollStreamUtil.toMap(list, ExamQuestionDO::getId, v -> v);
|
||||
}
|
||||
|
||||
public List<ExamQuestionDO> selecList(Integer type, Integer difficulty, String questionStem, Integer enable) {
|
||||
Example example = new Example(ExamQuestionDO.class);
|
||||
Example.Criteria criteria = example.createCriteria()
|
||||
.andEqualTo("deleted", 0);
|
||||
if (Objects.nonNull(type)) {
|
||||
criteria.andEqualTo("type", type);
|
||||
}
|
||||
if (Objects.nonNull(difficulty)) {
|
||||
criteria.andEqualTo("difficulty", difficulty);
|
||||
}
|
||||
if (StringUtils.isNotBlank(questionStem)) {
|
||||
criteria.andLike("questionStem", "%" + questionStem + "%");
|
||||
}
|
||||
if (Objects.nonNull(enable)) {
|
||||
criteria.andEqualTo("enable", enable);
|
||||
}
|
||||
example.setOrderByClause("create_time desc");
|
||||
return examQuestionMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
public int selectCount(ExamQuestionDO record) {
|
||||
return examQuestionMapper.selectCount(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量逻辑删除
|
||||
*/
|
||||
public void batchDeleteByIds(List<Long> ids) {
|
||||
if (CollectionUtils.isEmpty(ids)) {
|
||||
return ;
|
||||
}
|
||||
Example example = new Example(ExamQuestionDO.class);
|
||||
example.createCriteria()
|
||||
.andIn("id", ids)
|
||||
.andEqualTo("deleted", 0);
|
||||
ExamQuestionDO updateDO = new ExamQuestionDO();
|
||||
updateDO.setDeleted(1);
|
||||
examQuestionMapper.updateByExampleSelective(updateDO, example);
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
package com.cool.store.dao.renewal;
|
||||
|
||||
import com.cool.store.entity.renewal.RenewalApplicationDO;
|
||||
import com.cool.store.mapper.renewal.RenewalApplicationMapper;
|
||||
import com.cool.store.request.renewal.RenewalApplicationQueryRequest;
|
||||
import com.cool.store.vo.renewal.RenewalApplicationListVO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public class RenewalApplicationDAO {
|
||||
|
||||
@Resource
|
||||
private RenewalApplicationMapper renewalApplicationMapper;
|
||||
|
||||
public int insertSelective(RenewalApplicationDO record) {
|
||||
return renewalApplicationMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public int updateByPrimaryKeySelective(RenewalApplicationDO record) {
|
||||
return renewalApplicationMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
public RenewalApplicationDO getById(Long id) {
|
||||
return renewalApplicationMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
|
||||
public List<RenewalApplicationListVO> queryRenewalApplicationList(RenewalApplicationQueryRequest request, List<String> regionIds) {
|
||||
return renewalApplicationMapper.queryRenewalApplicationList(request, regionIds);
|
||||
}
|
||||
|
||||
public RenewalApplicationDO getByApplicationNo(String applicationNo) {
|
||||
Example example = new Example(RenewalApplicationDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("applicationNo", applicationNo)
|
||||
.andEqualTo("isDeleted", 0);
|
||||
return renewalApplicationMapper.selectOneByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询门店是否有正在进行的续签申请
|
||||
*/
|
||||
public boolean existOngoingRecord(String storeCode) {
|
||||
Example example = new Example(RenewalApplicationDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("storeCode", storeCode)
|
||||
.andEqualTo("isDeleted", 0)
|
||||
.andNotIn("status", Arrays.asList(40, 60, 70));
|
||||
return renewalApplicationMapper.selectCountByExample(example) > 0;
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
package com.cool.store.dao.renewal;
|
||||
|
||||
import cn.hutool.core.collection.CollStreamUtil;
|
||||
import com.cool.store.entity.renewal.RenewalApplicationSignerInfoDO;
|
||||
import com.cool.store.mapper.renewal.RenewalApplicationSignerInfoMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 续签申请签约人信息快照DAO
|
||||
*
|
||||
* @author zx
|
||||
* @date 2026-04-28
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class RenewalApplicationSignerInfoDAO {
|
||||
|
||||
private final RenewalApplicationSignerInfoMapper mapper;
|
||||
|
||||
public int insertSelective(RenewalApplicationSignerInfoDO record) {
|
||||
return mapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public RenewalApplicationSignerInfoDO getByApplicationNo(String applicationNo) {
|
||||
Example example = new Example(RenewalApplicationSignerInfoDO.class);
|
||||
example.createCriteria().andEqualTo("applicationNo", applicationNo);
|
||||
return mapper.selectOneByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量查询签约人信息
|
||||
*/
|
||||
public Map<String, RenewalApplicationSignerInfoDO> getByApplicationNos(Collection<String> applicationNos) {
|
||||
if (CollectionUtils.isEmpty(applicationNos)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
Example example = new Example(RenewalApplicationSignerInfoDO.class);
|
||||
example.createCriteria().andIn("applicationNo", applicationNos);
|
||||
List<RenewalApplicationSignerInfoDO> list = mapper.selectByExample(example);
|
||||
return CollStreamUtil.toMap(list, RenewalApplicationSignerInfoDO::getApplicationNo, v -> v);
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.cool.store.dao.renewal;
|
||||
|
||||
import com.cool.store.entity.renewal.RenewalRenovateApprovalDO;
|
||||
import com.cool.store.mapper.renewal.RenewalRenovateApprovalMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Repository
|
||||
public class RenewalRenovateApprovalDAO {
|
||||
|
||||
@Resource
|
||||
private RenewalRenovateApprovalMapper renewalRenovateApprovalMapper;
|
||||
|
||||
public int insertSelective(RenewalRenovateApprovalDO record) {
|
||||
return renewalRenovateApprovalMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
public RenewalRenovateApprovalDO getByApplicationNo(String applicationNo) {
|
||||
return renewalRenovateApprovalMapper.getByApplicationNo(applicationNo);
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package com.cool.store.dao.store;
|
||||
|
||||
import com.alibaba.excel.util.CollectionUtils;
|
||||
import com.cool.store.entity.store.StoreBusinessReportDO;
|
||||
import com.cool.store.mapper.store.StoreBusinessReportMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 门店营业数据报表DAO
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2026/4/28
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class StoreBusinessReportDAO {
|
||||
private final StoreBusinessReportMapper storeBusinessReportMapper;
|
||||
|
||||
/**
|
||||
* 批量新增或编辑
|
||||
*/
|
||||
public void insertOrUpdateBatch(List<StoreBusinessReportDO> list) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return;
|
||||
}
|
||||
storeBusinessReportMapper.insertOrUpdateBatch(list);
|
||||
}
|
||||
}
|
||||
@@ -15,10 +15,7 @@ public interface BigRegionMapper extends Mapper<BigRegionDO> {
|
||||
* @param keyword
|
||||
* @return
|
||||
*/
|
||||
List<BigRegionDTO> queryAllBigRegion(@Param("keyword") String keyword,
|
||||
@Param("joinBrand") Integer joinBrand,
|
||||
@Param("type") Integer type,
|
||||
@Param("enable") Integer enable);
|
||||
List<BigRegionDTO> queryAllBigRegion(@Param("keyword") String keyword, @Param("joinBrand") Integer joinBrand, @Param("type") Integer type);
|
||||
|
||||
/**
|
||||
* 根据所属大区与加盟模式查询新管家信息
|
||||
@@ -32,6 +29,4 @@ public interface BigRegionMapper extends Mapper<BigRegionDO> {
|
||||
List<BigRegionDTO> queryBigRegion(@Param("request") QueryBigRegionRequest queryBigRegionRequest);
|
||||
|
||||
Integer updateHqtDate(BigRegionDO bigRegionDO);
|
||||
|
||||
List<BigRegionDO> getByRegionIdList(@Param("list") List<Long> regionIdList);
|
||||
}
|
||||
@@ -29,6 +29,4 @@ public interface FranchiseFeeMapper extends Mapper<FranchiseFeeDO> {
|
||||
Integer batchUpdateXgjCollectionStatus(@Param("shopIds")List<Long> shopId, @Param("collectionStatus")Integer collectionStatus);
|
||||
|
||||
Integer batchUpdateXgjCollectionStatusAndXgjFeesPaid( @Param("list") List<FranchiseFeeStageDateDTO> franchiseFeeStageDateDTOList);
|
||||
|
||||
Integer updatePayType(@Param("shopId") Long shopId, @Param("payType") Integer payType);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import com.cool.store.entity.LinePayDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -72,7 +71,5 @@ public interface LinePayMapper {
|
||||
|
||||
Integer deleteByShopId(@Param("list")List<Long> shopIds);
|
||||
|
||||
Integer updateAmountAndPayUserName(@Param("id") Long id, @Param("amount") BigDecimal amount, @Param("payUserName") String payUserName, @Param("userId") String userId);
|
||||
|
||||
LinePayDO getLastPay(@Param("shopId") Long shopId);
|
||||
}
|
||||
@@ -14,8 +14,6 @@ public interface OpeningOperationPlanMapper extends Mapper<OpeningOperationPlanD
|
||||
|
||||
OpeningOperationPlanDO selectByShopId(@Param("shopId") Long shopId);
|
||||
|
||||
List<OpeningOperationPlanDO> selectByShopIds(@Param("shopIds") List<Long> shopIds);
|
||||
|
||||
|
||||
Integer updateByShopId(@Param("shopId") Long shopId, @Param("auditId") Long auditId, @Param("resultType") Integer resultType);
|
||||
/**
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.ReceivingBankDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/06/18/17:33
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
public interface ReceivingBankMapper extends Mapper<ReceivingBankDO> {
|
||||
|
||||
List<ReceivingBankDO> getByFranchiseBrandAndRegionId(@Param("franchiseBrandList") List<String> franchiseBrandList,@Param("regionIdList") List<Long> regionIdList);
|
||||
|
||||
Integer batchInsert(@Param("list") List<ReceivingBankDO> list);
|
||||
|
||||
Integer batchInsertOrUpdate(@Param("list") List<ReceivingBankDO> receivingBankDOList);
|
||||
}
|
||||
@@ -4,7 +4,6 @@ import com.cool.store.dto.store.StoreAddressDTO;
|
||||
import com.cool.store.dto.store.StoreAreaDTO;
|
||||
import com.cool.store.dto.store.StoreExtendSoftOpenDTO;
|
||||
import com.cool.store.dto.store.StoreOrderTimeDTO;
|
||||
import com.cool.store.dto.store.StoreReportDTO;
|
||||
import com.cool.store.entity.StoreDO;
|
||||
import com.cool.store.response.MiniShopsResponse;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@@ -146,21 +145,6 @@ public interface StoreMapper {
|
||||
*/
|
||||
List<StoreDO> getNoOrderStore(@Param("latestDate") LocalDate latestDate, @Param("businessTypes") List<String> businessTypes, @Param("inBusinessType") Boolean inBusinessType);
|
||||
|
||||
/**
|
||||
* 门店状态改为闭店
|
||||
* @param storeId 门店id
|
||||
*/
|
||||
int closeStore(@Param("storeId") String storeId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据区域id查询门店列表
|
||||
* @param regionIds 区域id
|
||||
* @param keyword 门店名称或门店编码
|
||||
* @return 门店列表
|
||||
*/
|
||||
List<StoreDO> getStoreByRegionIds(@Param("regionIds") List<String> regionIds, @Param("keyword") String keyword);
|
||||
|
||||
/**
|
||||
* 根据市统计门店数量
|
||||
* @param cityNames 市列表
|
||||
@@ -181,42 +165,20 @@ public interface StoreMapper {
|
||||
@Param("openStartTime") LocalDate openStartTime,
|
||||
@Param("openEndTime") LocalDate openEndTime);
|
||||
|
||||
/**
|
||||
* 根据区域id查询门店列表
|
||||
* @param regionIds 区域id
|
||||
* @param keyword 门店名称或门店编码
|
||||
* @return 门店列表
|
||||
*/
|
||||
List<StoreDO> getStoreByRegionIds(@Param("regionIds") List<String> regionIds, @Param("keyword") String keyword);
|
||||
|
||||
List<StoreAddressDTO> getStoreAddress(@Param("flag") Integer flag, @Param("storeCode") String storeCode);
|
||||
|
||||
int batchUpdateAddress(@Param("list") List<StoreDO> storeList);
|
||||
|
||||
String getPrivateSphereQrCode(@Param("storeId") String storeId);
|
||||
|
||||
|
||||
/**
|
||||
* 总营业门店数量统计
|
||||
*/
|
||||
List<StoreReportDTO> totalOpenStoreReport(@Param("date") String date,
|
||||
@Param("domestic") Integer domestic,
|
||||
@Param("joinBrandList") List<Integer> joinBrandList);
|
||||
|
||||
/**
|
||||
* 期初门店数
|
||||
*/
|
||||
List<StoreReportDTO> periodBeginStoreReport(@Param("date") String date,
|
||||
@Param("domestic") Integer domestic,
|
||||
@Param("joinBrandList") List<Integer> joinBrandList);
|
||||
|
||||
/**
|
||||
* 新开门店数
|
||||
*/
|
||||
List<StoreReportDTO> newOpenStoreReport(@Param("date") String date,
|
||||
@Param("domestic") Integer domestic,
|
||||
@Param("joinBrandList") List<Integer> joinBrandList);
|
||||
|
||||
/**
|
||||
* 闭店门店数
|
||||
*/
|
||||
List<StoreReportDTO> closeStoreReport(@Param("date") String date,
|
||||
@Param("domestic") Integer domestic,
|
||||
@Param("joinBrandList") List<Integer> joinBrandList);
|
||||
|
||||
|
||||
/**
|
||||
* 批量新增或编辑开始试营业日期
|
||||
*/
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.ThirdPartyAccountDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ThirdPartyAccountMapper extends Mapper<ThirdPartyAccountDO> {
|
||||
|
||||
/**
|
||||
* 通过门店编码与手机号获取人员是否推送到猎聘
|
||||
* @param shopCode
|
||||
* @param mobile
|
||||
* @return
|
||||
*/
|
||||
ThirdPartyAccountDO getByCodeAndMobile(@Param("shopCode") String shopCode, @Param("mobile") String mobile);
|
||||
|
||||
|
||||
boolean exists(@Param("shopCode") String shopCode, @Param("mobile") String mobile);
|
||||
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.ThirdPartyStoreDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ThirdPartyStoreMapper extends Mapper<ThirdPartyStoreDO> {
|
||||
|
||||
/**
|
||||
* 根据门店code查询推送记录
|
||||
* @param storeCode
|
||||
* @return
|
||||
*/
|
||||
ThirdPartyStoreDO getByLocalStoreCode(@Param("storeCode") String storeCode);
|
||||
|
||||
/**
|
||||
* 门店是否存在
|
||||
* @param localStoreCode
|
||||
* @return
|
||||
*/
|
||||
boolean exists(@Param("localStoreCode") String localStoreCode);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.dto.BigRegionUserDTO;
|
||||
import com.cool.store.entity.UserAuthMappingDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@@ -113,12 +112,4 @@ public interface UserAuthMappingMapper {
|
||||
List<UserAuthMappingDO> listByUserIdListAndSource(@Param("userIdList") List<String> userIdList, @Param("source") String source);
|
||||
|
||||
List<UserAuthMappingDO> getAllByUserIds(@Param("userIdsByRoleIdList") List<String> userIdsByRoleIdList);
|
||||
|
||||
/**
|
||||
* 查询指定大区 且管辖该大区的指定角色的人
|
||||
* @param regionIds
|
||||
* @param roleName
|
||||
* @return
|
||||
*/
|
||||
List<BigRegionUserDTO> getBigRegionByUserId(List<Long> regionIds, String roleName);
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
package com.cool.store.mapper.approval;
|
||||
|
||||
import com.cool.store.entity.approval.CommonApprovalLogDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface CommonApprovalLogMapper extends Mapper<CommonApprovalLogDO> {
|
||||
|
||||
/**
|
||||
* 根据申请编号查询所有审批记录
|
||||
*/
|
||||
List<CommonApprovalLogDO> getByApplicationNo(@Param("applicationNo") String applicationNo);
|
||||
|
||||
/**
|
||||
* 批量插入审批记录
|
||||
*/
|
||||
int batchInsert(@Param("list") List<CommonApprovalLogDO> list);
|
||||
|
||||
/**
|
||||
* 批量更新审批记录
|
||||
*/
|
||||
int batchUpdate(@Param("list") List<CommonApprovalLogDO> list);
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package com.cool.store.mapper.contract;
|
||||
|
||||
import com.cool.store.entity.contract.ContractCostDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ContractCostMapper extends Mapper<ContractCostDO> {
|
||||
|
||||
/**
|
||||
* 根据合同编号查询费用列表
|
||||
*/
|
||||
List<ContractCostDO> queryByContractNo(@Param("contractNo") String contractNo);
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.cool.store.mapper.contract;
|
||||
|
||||
import com.cool.store.entity.contract.ContractMasterDO;
|
||||
import com.cool.store.request.contract.ContractMasterQueryRequest;
|
||||
import com.cool.store.vo.contract.ContractMasterListVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ContractMasterMapper extends Mapper<ContractMasterDO> {
|
||||
|
||||
/**
|
||||
* 查询合同列表(关联门店表)
|
||||
*/
|
||||
List<ContractMasterListVO> queryContractMasterList(@Param("request") ContractMasterQueryRequest request);
|
||||
|
||||
/**
|
||||
* 查询即将到期的合同(未生成续签申请)
|
||||
*/
|
||||
List<ContractMasterDO> queryContractsNearExpiry(@Param("days") int days);
|
||||
|
||||
/**
|
||||
* 根据门店编码查询最新合同
|
||||
*/
|
||||
ContractMasterDO getLatestContractByStoreCode(@Param("storeCode") String storeCode);
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package com.cool.store.mapper.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamAttemptAnswerDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ExamAttemptAnswerMapper extends Mapper<ExamAttemptAnswerDO> {
|
||||
|
||||
/**
|
||||
* 插入或更新答案
|
||||
*/
|
||||
int insertOrUpdate(ExamAttemptAnswerDO record);
|
||||
|
||||
/**
|
||||
* 批量插入或更新答案
|
||||
*/
|
||||
int batchInsertOrUpdate(List<ExamAttemptAnswerDO> list);
|
||||
|
||||
/**
|
||||
* 批量更新分数
|
||||
*/
|
||||
int batchUpdateScore(List<ExamAttemptAnswerDO> list);
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package com.cool.store.mapper.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamAttemptDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface ExamAttemptMapper extends Mapper<ExamAttemptDO> {
|
||||
|
||||
/**
|
||||
* 查询参考人数
|
||||
* @param examInfoIds 考试信息id列表
|
||||
* @return 参考人数
|
||||
*/
|
||||
List<Map<String, Object>> getAttemptCount(@Param("examInfoIds") List<Long> examInfoIds);
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package com.cool.store.mapper.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamInfoDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ExamInfoMapper extends Mapper<ExamInfoDO> {
|
||||
|
||||
/**
|
||||
* 通过token查询考试信息
|
||||
*/
|
||||
ExamInfoDO selectByToken(String token);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package com.cool.store.mapper.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamPaperDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ExamPaperMapper extends Mapper<ExamPaperDO> {
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.cool.store.mapper.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamPaperQuestionDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ExamPaperQuestionMapper extends Mapper<ExamPaperQuestionDO> {
|
||||
|
||||
/**
|
||||
* 批量插入试卷题目
|
||||
*/
|
||||
int insertBatch(@Param("list") List<ExamPaperQuestionDO> list);
|
||||
|
||||
/**
|
||||
* 根据试卷ID批量删除(逻辑删除)
|
||||
*/
|
||||
int deleteByPaperId(@Param("paperId") Long paperId, @Param("updateTime") java.util.Date updateTime);
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package com.cool.store.mapper.exam;
|
||||
|
||||
import com.cool.store.entity.exam.ExamQuestionDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface ExamQuestionMapper extends Mapper<ExamQuestionDO> {
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package com.cool.store.mapper.renewal;
|
||||
|
||||
import com.cool.store.entity.renewal.RenewalApplicationDO;
|
||||
import com.cool.store.request.renewal.RenewalApplicationQueryRequest;
|
||||
import com.cool.store.vo.renewal.RenewalApplicationListVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RenewalApplicationMapper extends Mapper<RenewalApplicationDO> {
|
||||
|
||||
/**
|
||||
* 查询续签申请列表(关联门店、签约人表)
|
||||
*/
|
||||
List<RenewalApplicationListVO> queryRenewalApplicationList(@Param("request") RenewalApplicationQueryRequest request,
|
||||
@Param("regionIds") List<String> regionIds);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.cool.store.mapper.renewal;
|
||||
|
||||
import com.cool.store.entity.renewal.RenewalApplicationSignerInfoDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
/**
|
||||
* 续签申请签约人信息快照Mapper
|
||||
*
|
||||
* @author zx
|
||||
* @date 2026-04-28
|
||||
*/
|
||||
public interface RenewalApplicationSignerInfoMapper extends Mapper<RenewalApplicationSignerInfoDO> {
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.cool.store.mapper.renewal;
|
||||
|
||||
import com.cool.store.entity.renewal.RenewalRenovateApprovalDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface RenewalRenovateApprovalMapper extends Mapper<RenewalRenovateApprovalDO> {
|
||||
|
||||
/**
|
||||
* 根据申请编号查询翻新信息
|
||||
*/
|
||||
RenewalRenovateApprovalDO getByApplicationNo(@Param("applicationNo") String applicationNo);
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package com.cool.store.mapper.store;
|
||||
|
||||
import com.cool.store.entity.store.StoreBusinessReportDO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @date 2026-04-28 06:58
|
||||
*/
|
||||
public interface StoreBusinessReportMapper {
|
||||
/**
|
||||
*
|
||||
* 默认插入方法,只会给有值的字段赋值
|
||||
* 会对传进来的字段做判空处理,如果字段为空,则使用数据库默认字段或者null
|
||||
* dateTime:2026-04-28 06:58
|
||||
*/
|
||||
int insertSelective(@Param("record") StoreBusinessReportDO record, @Param("enterpriseId") String enterpriseId);
|
||||
|
||||
/**
|
||||
*
|
||||
* 默认更新方法,根据主键更新,不会把null值更新到数据库,避免覆盖之前有值的
|
||||
* dateTime:2026-04-28 06:58
|
||||
*/
|
||||
int updateByPrimaryKeySelective(@Param("record") StoreBusinessReportDO record, @Param("enterpriseId") String enterpriseId);
|
||||
|
||||
/**
|
||||
* 批量新增或编辑
|
||||
*/
|
||||
void insertOrUpdateBatch(@Param("list") List<StoreBusinessReportDO> list);
|
||||
}
|
||||
Reference in New Issue
Block a user