红圈通接口 加校验
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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=";">
|
||||
|
||||
Reference in New Issue
Block a user