Merge remote-tracking branch 'xfsg/cc_partner_init' into cc_partner_init

This commit is contained in:
苏竹红
2024-05-16 10:18:27 +08:00
6 changed files with 136 additions and 1 deletions

View File

@@ -275,4 +275,8 @@ public class ShopStageInfoDAO {
return shopStageInfoMapper.getSubStageListBySubStageStatus(a.getShopSubStageStatus(),b.getShopSubStageStatus(),c.getShopSubStageStatus());
}
public ShopStageInfoDO getByShopIdAndSubStage(Long shopId, Integer shopSubStage) {
return shopStageInfoMapper.getByShopIdAndSubStage(shopId,shopSubStage);
}
}

View File

@@ -143,4 +143,13 @@ public interface ShopStageInfoMapper extends Mapper<ShopStageInfoDO> {
* @description:获取处于a阶段或b阶段和c阶段的
*/
List<ShopStageInfoDO> getSubStageListBySubStageStatus(@Param("subStageStatusA")Integer subStageStatusA,@Param("subStageStatusB")Integer subStageStatusB,@Param("subStageStatusC")Integer subStageStatusC );
/**
* 根据shopId和阶段查数据
* @param shopId
* @param shopSubStage
* @return
*/
ShopStageInfoDO getByShopIdAndSubStage(@Param("shopId") Long shopId,
@Param("shopSubStage") Integer shopSubStage);
}

View File

@@ -295,4 +295,11 @@
and shop_sub_stage_status = #{subStageStatusC}
</if>
</select>
<select id="getByShopIdAndSubStage" resultType="com.cool.store.entity.ShopStageInfoDO">
SELECT <include refid="allColumn"/>
FROM xfsg_shop_stage_info
WHERE shop_id = #{shopId}
AND shop_sub_stage = #{shopSubStage}
</select>
</mapper>