getSpecialShopStageInfo

This commit is contained in:
苏竹红
2024-05-30 17:24:46 +08:00
parent c6a6132dab
commit 7ac3f7725d
4 changed files with 6 additions and 5 deletions

View File

@@ -247,8 +247,8 @@ public class ShopStageInfoDAO {
}
public List<ShopStageInfoDO> getSpecialShopStageInfo(List<Long> shopIds, Integer shopSubStage,
List<Integer> shopSubStageStatusList,String investmentUserId,Integer queryUserType){
return shopStageInfoMapper.getSpecialShopStageInfo( shopIds, shopSubStage, shopSubStageStatusList,investmentUserId,queryUserType);
List<Integer> shopSubStageStatusList,String investmentUserId,String supervisorId,Integer queryUserType){
return shopStageInfoMapper.getSpecialShopStageInfo( shopIds, shopSubStage, shopSubStageStatusList,investmentUserId,supervisorId,queryUserType);
}
/**
* @Auther: wangshuo

View File

@@ -131,6 +131,7 @@ public interface ShopStageInfoMapper extends Mapper<ShopStageInfoDO> {
@Param("shopSubStage") Integer shopSubStage,
@Param("shopSubStageStatusList") List<Integer> shopSubStageStatusList,
@Param("investmentUserId") String investmentUserId,
@Param("supervisorId") String supervisorId,
@Param("queryUserType") Integer queryUserType);
List<ShopStageInfoDO> getSubStageList(@Param("shopIds") List<Long> shopIds,@Param("shopSubStage") Integer shopSubStage);

View File

@@ -259,8 +259,8 @@
<if test="investmentUserId!=null and investmentUserId!='' and queryUserType == 0">
and b.investment_manager = #{investmentUserId}
</if>
<if test="investmentUserId!=null and investmentUserId!='' and queryUserType == 1">
and c.supervisor_id = #{investmentUserId}
<if test="supervisorId!=null and supervisorId!='' and queryUserType == 1">
and c.supervisor_id = #{supervisorId}
</if>
</where>

View File

@@ -367,7 +367,7 @@ public class DeskServiceImpl implements DeskService {
PageHelper.startPage(pageNum, pageSize);
//user.getJobNumber()
List<ShopStageInfoDO> specialShopStageInfo = shopStageInfoDAO.getSpecialShopStageInfo(null, shopSubStageEnum.getShopSubStage(),
subStageStatusList, user.getJobNumber(),type);
subStageStatusList, user.getUserId(),user.getJobNumber(),type);
PageInfo result = new PageInfo<>(specialShopStageInfo);
List<Long> shopIds = specialShopStageInfo.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
List<Long> lineIds = specialShopStageInfo.stream().map(ShopStageInfoDO::getLineId).collect(Collectors.toList());