Merge #123 into master from cc_20260511_fix_bug
fix:闭店审批用户列表问题修复&未开业门店更新试营业需要完成开店管理 * cc_20260511_fix_bug: (2 commits squashed) - fix:闭店审批用户列表问题修复 - fix:未开业门店更新试营业需要完成开店管理 Signed-off-by: 王非凡 <accounts_67eba0c5fee9c49c80c8e2b4@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/123
This commit is contained in:
@@ -122,10 +122,10 @@ public class StoreDao {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询拥有门店编码的门店id及编码
|
||||
* 查询拥有门店编码且完成开店管理的门店id及编码
|
||||
*/
|
||||
public List<StoreDO> getExistStoreNumStore(List<String> storeStatus) {
|
||||
return storeMapper.getExistStoreNumStore(storeStatus);
|
||||
public List<StoreDO> getExistStoreNumAndFinishInvestStore(List<String> storeStatus) {
|
||||
return storeMapper.getExistStoreNumAndFinishInvestStore(storeStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -71,9 +71,9 @@ public interface StoreMapper {
|
||||
List<StoreDO> getAllStoreIdAndNum(@Param("storeStatus") List<String> storeStatus);
|
||||
|
||||
/**
|
||||
* 查询拥有门店编码的门店id及编码
|
||||
* 查询拥有门店编码且完成开店管理的门店id及编码
|
||||
*/
|
||||
List<StoreDO> getExistStoreNumStore(@Param("storeStatus") List<String> storeStatus);
|
||||
List<StoreDO> getExistStoreNumAndFinishInvestStore(@Param("storeStatus") List<String> storeStatus);
|
||||
|
||||
/**
|
||||
* 查询门店积分
|
||||
|
||||
@@ -276,12 +276,14 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getExistStoreNumStore" resultType="com.cool.store.entity.StoreDO">
|
||||
SELECT store_id, store_num
|
||||
FROM store_${enterpriseId}
|
||||
WHERE is_delete = 'effective' AND store_num IS NOT NULL AND store_num != ''
|
||||
<select id="getExistStoreNumAndFinishInvestStore" resultType="com.cool.store.entity.StoreDO">
|
||||
SELECT a.store_id, a.store_num
|
||||
FROM store_${enterpriseId} a
|
||||
INNER JOIN xfsg_shop_info b ON a.store_num = b.shop_code
|
||||
WHERE a.is_delete = 'effective' AND a.store_num IS NOT NULL AND a.store_num != ''
|
||||
AND b.shop_status = 1
|
||||
<if test="storeStatus != null and !storeStatus.isEmpty()">
|
||||
AND store_status IN
|
||||
AND a.store_status IN
|
||||
<foreach item="item" collection="storeStatus" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
@@ -326,7 +326,7 @@ public class CloseStoreServiceImpl implements CloseStoreService {
|
||||
userIds.addAll(StringUtils.isNotBlank(v.getHandlerUserIds()) ? Arrays.asList(v.getHandlerUserIds().split(",")) : Collections.emptyList());
|
||||
}
|
||||
});
|
||||
Map<String, EnterpriseUserDO> userMap = enterpriseUserDAO.getUserMap(new ArrayList<>(userIds));
|
||||
Map<String, EnterpriseUserDO> userMap = enterpriseUserDAO.getUserInfoMap(new ArrayList<>(userIds));
|
||||
List<AuditInfoResponse> result = new ArrayList<>();
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
CloseStoreAuditRecordDO auditRecordDO = list.get(i);
|
||||
|
||||
@@ -889,7 +889,7 @@ public class XxlJobHandler {
|
||||
List<StoreExtendSoftOpenDTO> updateList = new ArrayList<>();
|
||||
while (hasNext) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<StoreDO> storeList = storeDao.getExistStoreNumStore(Collections.singletonList(StoreStatusEnum.NOT_OPEN.getValue()));
|
||||
List<StoreDO> storeList = storeDao.getExistStoreNumAndFinishInvestStore(Collections.singletonList(StoreStatusEnum.NOT_OPEN.getValue()));
|
||||
if (CollectionUtils.isEmpty(storeList)) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user