统计报表接口,数据梳理接口

This commit is contained in:
shuo.wang
2025-05-15 15:31:23 +08:00
parent 177ff32f58
commit f253b2a0c3
15 changed files with 390 additions and 78 deletions

View File

@@ -5,6 +5,7 @@ import com.cool.store.entity.BigRegionDO;
import com.cool.store.enums.ErrorCodeEnum;
import com.cool.store.exception.ServiceException;
import com.cool.store.mapper.BigRegionMapper;
import com.cool.store.request.QueryBigRegionRequest;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;
@@ -55,5 +56,13 @@ public class BigRegionDAO {
example.createCriteria().andIn("regionId", regionIdList).andEqualTo("joinMode",0);
return bigRegionMapper.selectByExample(example);
}
/**
* @Auther: wangshuo
* @Date: 2025/5/15
* @description:只查询joinMode = 0
*/
public List<BigRegionDTO> queryBigRegion(QueryBigRegionRequest queryBigRegionRequest){
return bigRegionMapper.queryBigRegion(queryBigRegionRequest);
}
}

View File

@@ -457,4 +457,13 @@ public class ShopStageInfoDAO {
boolean isTerminated = shopStageInfo.isTerminated();
return shopStageInfoMapper.dataUpdateAcceptanceStatus(list, shopStageInfo.getShopSubStageEnum().getShopSubStage(), shopStageInfo.getShopSubStageStatus(), isTerminated, remark);
}
public List<ShopStageInfoDO> getStageByShopStage(List<Long> shopIds, Integer shopStage){
if (CollectionUtils.isEmpty(shopIds) || shopStage == null){
return null;
}
Example example = new Example(ShopStageInfoDO.class);
example.createCriteria().andIn("shopId",shopIds).andEqualTo("shopStage",shopStage);
return shopStageInfoMapper.selectByExample(example);
}
}

View File

@@ -2,6 +2,8 @@ package com.cool.store.mapper;
import com.cool.store.dto.region.BigRegionDTO;
import com.cool.store.entity.BigRegionDO;
import com.cool.store.request.QueryBigRegionRequest;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
@@ -24,5 +26,5 @@ public interface BigRegionMapper extends Mapper<BigRegionDO> {
*/
BigRegionDO queryOrgInfoByBigRegionAndJoinMode(Long regionId,Integer joinMode);
List<BigRegionDTO> queryBigRegion(@Param("request") QueryBigRegionRequest queryBigRegionRequest);
}

View File

@@ -42,4 +42,18 @@
</if>
</where>
</select>
<select id="queryBigRegion" resultType="com.cool.store.dto.region.BigRegionDTO">
select *
from `xfsg_big_region`
where join_mode = 0
<if test="request.keyword!=null and request.keyword !=''">
and region_name like CONCAT('%',#{request.keyword},'%')
</if>
<if test="request.groupNameList!=null and request.groupNameList.size()>0">
and group_name in
<foreach item="item" collection="request.groupNameList" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</select>
</mapper>