feat:bug修复

This commit is contained in:
苏竹红
2025-07-28 11:19:37 +08:00
parent b67b1f4c2d
commit 40a8ed9460
8 changed files with 37 additions and 15 deletions

View File

@@ -73,8 +73,11 @@ public class StoreMessageDAO {
return storeMessageMapper.revokeById(id,userId,userName);
}
public Integer queryStoreModuleCount(String storeId, Integer moduleCode){
return storeMessageMapper.queryStoreModuleCount(storeId,moduleCode);
public Integer queryStoreModuleCount(String storeId,String userId, Integer moduleCode){
if (storeId == null|| userId == null){
return 0;
}
return storeMessageMapper.queryStoreModuleCount(storeId,userId,moduleCode);
}
public List<StoreMessageVO> getStoreMessageListByCondition(String storeId, Integer moduleCode, Integer todayTask, Integer pendingFlag, String userId){

View File

@@ -23,7 +23,9 @@ public interface StoreMessageMapper extends Mapper<StoreMessageDO> {
int revokeById(@Param("id") Long id, @Param("userId") String userId, @Param("userName") String userName);
Integer queryStoreModuleCount(@Param("storeId") String storeId, @Param("moduleCode") Integer moduleCode);
Integer queryStoreModuleCount(@Param("storeId") String storeId,
@Param("userId") String userId,
@Param("moduleCode") Integer moduleCode);
List<StoreMessageVO> getStoreMessageListByCondition(@Param("storeId") String storeId,
@Param("moduleCode") Integer moduleCode,