fix
This commit is contained in:
@@ -120,8 +120,8 @@ public class PointInfoDAO {
|
||||
return pointInfoMapper.recyclePoint(pointId);
|
||||
}
|
||||
|
||||
public List<MiniPointPageVO> getMiniPointPage(Long lineId ) {
|
||||
List<MiniPointPageVO> pointInfoDOPage = pointInfoMapper.MiniPointPageVO(lineId);
|
||||
public List<MiniPointPageVO> getMiniPointPage(MiniPointPageRequest request ) {
|
||||
List<MiniPointPageVO> pointInfoDOPage = pointInfoMapper.MiniPointPageVO(request);
|
||||
if(CollectionUtils.isEmpty(pointInfoDOPage)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.cool.store.mapper;
|
||||
import com.cool.store.dto.point.LineCountDTO;
|
||||
import com.cool.store.entity.PointInfoDO;
|
||||
import com.cool.store.request.AllPointPageRequest;
|
||||
import com.cool.store.request.MiniPointPageRequest;
|
||||
import com.cool.store.request.PointPageRequest;
|
||||
import com.cool.store.request.RecommendPointPageRequest;
|
||||
import com.cool.store.vo.point.MiniPointPageVO;
|
||||
@@ -95,5 +96,5 @@ public interface PointInfoMapper extends Mapper<PointInfoDO> {
|
||||
* @Date: 2025/3/31
|
||||
* @description:获取铺位部分数据
|
||||
*/
|
||||
List<MiniPointPageVO> MiniPointPageVO(@Param("lineId") Long lineId);
|
||||
List<MiniPointPageVO> MiniPointPageVO(@Param("request") MiniPointPageRequest request);
|
||||
}
|
||||
@@ -112,7 +112,7 @@
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="request.areaCode!=null and request.areaCode!=''">
|
||||
and (province_code = #{request.areaCode} || city_code = #{request.areaCode} || county_code = #{request.areaCode})
|
||||
and (province_code = #{request.areaCode} or city_code = #{request.areaCode} or district_code = #{request.areaCode})
|
||||
</if>
|
||||
order by id desc
|
||||
</select>
|
||||
@@ -213,7 +213,7 @@
|
||||
and storage_status = #{request.storageStatus}
|
||||
</if>
|
||||
<if test="request.areaCode!=null and request.areaCode!=''">
|
||||
and (province_code = #{request.areaCode} || city_code = #{request.areaCode} || county_code = #{request.areaCode})
|
||||
and (province_code = #{request.areaCode} or city_code = #{request.areaCode} or district_code = #{request.areaCode})
|
||||
</if>
|
||||
order by id desc
|
||||
</select>
|
||||
@@ -235,13 +235,17 @@
|
||||
a.create_time as createTime,
|
||||
a.opportunity_point_code as opportunityPointCode,
|
||||
a.opportunity_point_name as opportunityPointName,
|
||||
a.picture_obj as pictureObj,
|
||||
c.picture_obj as pictureObj,
|
||||
a.point_area as pointArea,
|
||||
b.landlord_mobile as landlordMobile,
|
||||
b.month_rent as monthRent,
|
||||
c.landlord_mobile as landlordMobile,
|
||||
c.month_rent as monthRent
|
||||
from xfsg_point_info a
|
||||
left join xfsg_point_recommend b on a.id = b.point_id
|
||||
where a.line_id = #{lineId} and a.point_source = 2
|
||||
LEFT JOIN xfsg_point_detail_info c on a.id = c.point_id
|
||||
<if test="request.areaCode!=null and request!=''">
|
||||
and (a.province_code = #{request.areaCode} or a.city_code = #{request.areaCode} or a.district_code =
|
||||
#{request.areaCode})
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<update id="recyclePoint">
|
||||
|
||||
@@ -126,11 +126,12 @@
|
||||
p.create_time as createTime,
|
||||
p.opportunity_point_code as opportunityPointCode,
|
||||
p.opportunity_point_name as opportunityPointName,
|
||||
p.picture_obj as pictureObj,
|
||||
c.picture_obj as pictureObj,
|
||||
pr.status as recommendStatus
|
||||
from
|
||||
xfsg_point_recommend pr
|
||||
inner join xfsg_point_info p on p.id = pr.point_id
|
||||
left join xfsg_point_detail_info c on p.id = c.point_id
|
||||
where
|
||||
p.deleted = 0 and pr.shop_id = #{request.shopId} and pr.deleted = 0
|
||||
<if test="request.status != null and request.status == 1">
|
||||
@@ -142,8 +143,8 @@
|
||||
<if test="request.status != null and request.status == 3">
|
||||
and pr.status in (5, 6)
|
||||
</if>
|
||||
<if test="request.areaCode!=null and request.areaCode 1=''">
|
||||
and (p.province_code = #{request.areaCode} or p.city_code = #{request.areaCode} or p.area_code = #{request.areaCode})
|
||||
<if test="request.areaCode!=null and request.areaCode !=''">
|
||||
and (p.province_code = #{request.areaCode} or p.city_code = #{request.areaCode} or p.district_code = #{request.areaCode})
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<insert id="batchInsert">
|
||||
insert into xfsg_tally_book_detail (tally_book_id, field_name, field_value, create_time, update_time)
|
||||
values
|
||||
<foreach collection="tallyBookDetailDOList" item="item" separator=",">
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.tallyBookId,jdbcType=BIGINT},
|
||||
#{item.fieldName,jdbcType=VARCHAR},
|
||||
#{item.fieldValue,jdbcType=DECIMAL},
|
||||
|
||||
Reference in New Issue
Block a user