开新店逻辑调整
This commit is contained in:
@@ -244,4 +244,17 @@ public class ShopStageInfoDAO {
|
||||
return shopStageInfoMapper.getSubStageList(shopIds,shopSubStage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取线索未开业的数量
|
||||
* @param lineId
|
||||
* @return
|
||||
*/
|
||||
public Integer getNotOpenShopCountByLineId(Long lineId){
|
||||
if(Objects.isNull(lineId)){
|
||||
return CommonConstants.ZERO;
|
||||
}
|
||||
ShopSubStageEnum shopSubStageEnum = ShopSubStageEnum.SHOP_STAGE_16;
|
||||
return shopStageInfoMapper.getShopCountByLineIdAndStageStatus(lineId, shopSubStageEnum.getShopStageEnum().getShopStage(), shopSubStageEnum.getShopSubStage(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_00.getShopSubStageStatus());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -127,4 +127,11 @@ public interface ShopStageInfoMapper extends Mapper<ShopStageInfoDO> {
|
||||
@Param("investmentUserId") String investmentUserId,
|
||||
@Param("queryUserType") Integer queryUserType);
|
||||
List<ShopStageInfoDO> getSubStageList(@Param("shopIds") List<Long> shopIds,@Param("shopSubStage") Integer shopSubStage);
|
||||
|
||||
/**
|
||||
* 获取线索处在某个阶段的某个状态的店铺数量
|
||||
* @param lineId
|
||||
* @return
|
||||
*/
|
||||
Integer getShopCountByLineIdAndStageStatus(@Param("lineId")Long lineId, @Param("shopStage") Integer shopStage, @Param("shopSubStage") Integer shopSubStage, @Param("shopSubStageStatus") Integer shopSubStageStatus);
|
||||
}
|
||||
|
||||
@@ -261,4 +261,8 @@
|
||||
from xfsg_shop_stage_info
|
||||
where shop_sub_stage_status = #{shopSubStageStatus}
|
||||
</select>
|
||||
|
||||
<select id="getShopCountByLineIdAndStageStatus" resultType="integer">
|
||||
select count(1) from xfsg_shop_stage_info where shop_stage = #{shopStage} and shop_sub_stage = #{shopSubStage} and shop_sub_stage_status = #{shopSubStageStatus} and line_id = #{lineId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user