fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user