This commit is contained in:
shuo.wang
2025-05-12 18:32:38 +08:00
parent 7ad8e919f4
commit 3564fb1bfb
4 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
package com.cool.store.dao;
import com.alibaba.excel.util.CollectionUtils;
import com.aliyun.openservices.shade.com.google.common.collect.Lists;
import com.cool.store.constants.CommonConstants;
import com.cool.store.entity.PointDetailInfoDO;
import com.cool.store.mapper.PointDetailInfoMapper;
@@ -63,6 +64,9 @@ public class PointDetailInfoDAO {
}
public List<PointDetailInfoDO> getByPointIdList(List<Long> pointIdList) {
if (CollectionUtils.isEmpty(pointIdList)){
return Lists.newArrayList();
}
Example example = new Example(PointDetailInfoDO.class);
example.createCriteria().andIn("pointId", pointIdList);
return pointDetailInfoMapper.selectByExample(example);

View File

@@ -163,7 +163,7 @@ public class PointInfoDAO {
* @description:数据处理用 省市区详细地址面积
*/
public Integer updateAddress(List<PointInfoDO> list){
if (Objects.isNull(list)){
if (CollectionUtils.isEmpty(list)){
return CommonConstants.ZERO;
}
return pointInfoMapper.updateAddress(list);

View File

@@ -500,7 +500,7 @@
</update>
<update id="updateShopCity">
<foreach collection="list" item="item" index="index" separator=";">
update xfsg_shop_info set province =#{item.province}, city = #{item.city}, district=#{item.district} where id = #{item.id}
update xfsg_shop_info set shop_name = #{item.shopName}, province =#{item.province}, city = #{item.city}, district=#{item.district}, detail_address = #{item.detailAddress} where id = #{item.id}
</foreach>
</update>
</mapper>