feat:接口调整
This commit is contained in:
@@ -76,5 +76,11 @@ public class StoreDao {
|
||||
return storeMapper.list();
|
||||
}
|
||||
|
||||
public List<StoreDO> getStoreNumByStoreCodes(List<String> storeCodeIds) {
|
||||
if(CollectionUtils.isEmpty(storeCodeIds)) {
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return storeMapper.getStoreNumByStoreCodes(storeCodeIds);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -43,4 +43,6 @@ public interface StoreMapper {
|
||||
|
||||
List<StoreAreaDTO> getStoreAreaList( @Param("storeIds") List<String> storeIds);
|
||||
|
||||
List<StoreDO> getStoreNumByStoreCodes(@Param("storeCodeIds") List<String> storeCodeIds);
|
||||
|
||||
}
|
||||
|
||||
@@ -144,6 +144,15 @@
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getStoreNumByStoreCodes" resultMap="BaseResultMap">
|
||||
select *
|
||||
from store_${enterpriseId}
|
||||
where is_delete = 'effective'
|
||||
<if test="storeCodeIds != null">
|
||||
<foreach collection="storeCodeIds" item="item" separator="," open="and store_num in (" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user