feat:V2.4

This commit is contained in:
苏竹红
2025-01-14 11:31:40 +08:00
parent 15549ce269
commit fc622ef0ab
6 changed files with 33 additions and 21 deletions

View File

@@ -202,8 +202,8 @@ public class ShopInfoDAO {
}
public List<ShopInfoDO> selectAllDataOrByShopId(Long shopId) {
return shopInfoMapper.selectAllDataOrByShopId(shopId);
public List<ShopInfoDO> selectAllDataOrByLineId(Long shopId) {
return shopInfoMapper.selectAllDataOrByLineId(shopId);
}
public Boolean batchUpdate(List<ShopInfoDO> list) {

View File

@@ -114,7 +114,7 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
* @param shopId
* @return
*/
List<ShopInfoDO> selectAllDataOrByShopId(Long shopId);
List<ShopInfoDO> selectAllDataOrByLineId(@Param("lineId") Long lineId);
Boolean batchUpdate(List<ShopInfoDO> list);
}

View File

@@ -357,11 +357,11 @@
</select>
<select id="selectAllDataOrByShopId" resultMap="BaseResultMap">
<select id="selectAllDataOrByLineId" resultMap="BaseResultMap">
select * from xfsg_shop_info
<where>
<if test="shopId!=null">
and id = #{shopId}
<if test="lineId!=null">
and line_id = #{lineId}
</if>
</where>
</select>