fix:最新订货时间定时任务过滤门店状态

This commit is contained in:
wangff
2025-10-27 13:46:48 +08:00
parent b2076cc6c5
commit 1830e2240e
4 changed files with 15 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ public class StoreDao {
/**
* 查询所有门店id和门店编码
*/
public List<StoreDO> getAllStoreIdAndNum() {
return storeMapper.getAllStoreIdAndNum();
public List<StoreDO> getAllStoreIdAndNum(List<String> storeStatus) {
return storeMapper.getAllStoreIdAndNum(storeStatus);
}
}

View File

@@ -58,5 +58,5 @@ public interface StoreMapper {
/**
* 查询所有门店id和门店编码
*/
List<StoreDO> getAllStoreIdAndNum();
List<StoreDO> getAllStoreIdAndNum(@Param("storeStatus") List<String> storeStatus);
}

View File

@@ -248,5 +248,11 @@
SELECT store_id, store_num
FROM store_${enterpriseId}
WHERE is_delete = 'effective'
<if test="storeStatus != null and !storeStatus.isEmpty()">
AND store_status IN
<foreach item="item" collection="storeStatus" separator="," open="(" close=")">
#{item}
</foreach>
</if>
</select>
</mapper>