红圈通接口 加校验

This commit is contained in:
shuo.wang
2025-08-04 10:47:00 +08:00
parent a7065fabd9
commit 9bb391559c
6 changed files with 48 additions and 0 deletions

View File

@@ -339,4 +339,7 @@ public class ShopInfoDAO {
example.createCriteria().andEqualTo("shopCode", shopCode);
return shopInfoMapper.selectOneByExample(example);
}
public Integer getNumByShopCode(String shopCode){
return shopInfoMapper.getNumByShopCode(shopCode);
}
}

View File

@@ -146,4 +146,5 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
List<IsCreateStoreDTO> selectIsCreateStore();
Integer updateManagerRegionId(@Param("list") List<ShopInfoDO> shopList);
Integer getNumByShopCode(@Param("shopCode") String shopCode);
}

View File

@@ -559,6 +559,9 @@
and b.is_delete = 'effective'
and a.region_id != 459
</select>
<select id="getNumByShopCode" resultType="java.lang.Integer">
select count(1) from xfsg_shop_info where shop_code = #{shopCode} and deleted = 0 and shop_status != 2
</select>
<update id="batchUpdate" parameterType="list">
<foreach collection="list" item="item" index="index" open="" close="" separator=";">