Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
86a15486
Commit
86a15486
authored
Nov 27, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费记录增加查询条件
parent
d46d314d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
SConsumptionRecordsMapper.xml
...ain/resources/mapper/system/SConsumptionRecordsMapper.xml
+2
-0
SCouponMapper.xml
...system/src/main/resources/mapper/system/SCouponMapper.xml
+20
-20
No files found.
share-system/src/main/resources/mapper/system/SConsumptionRecordsMapper.xml
View file @
86a15486
...
...
@@ -30,6 +30,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectSConsumptionRecordsList"
parameterType=
"SConsumptionRecords"
resultMap=
"SConsumptionRecordsResult"
>
<include
refid=
"selectSConsumptionRecordsVo"
/>
<where>
<if
test=
"name != null and name != ''"
>
and name = #{name}
</if>
<if
test=
"consumerId != null"
>
and consumer_id = #{consumerId}
</if>
</where>
</select>
...
...
share-system/src/main/resources/mapper/system/SCouponMapper.xml
View file @
86a15486
...
...
@@ -43,26 +43,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectSCouponList"
parameterType=
"SCoupon"
resultMap=
"SCouponResult"
>
<include
refid=
"selectSCouponVo"
/>
<where>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
,
</if>
<if
test=
"startDate != null"
>
and start_date = #{startDate}
,
</if>
<if
test=
"endDate != null"
>
and end_date = #{endDate}
,
</if>
<if
test=
"validStartTime != null"
>
and valid_start_time = #{validStartTime}
,
</if>
<if
test=
"validEndTime != null"
>
and valid_end_time = #{validEndTime}
,
</if>
<if
test=
"storeType != null"
>
and store_type = #{storeType}
,
</if>
<if
test=
"roomType != null"
>
and room_type = #{roomType}
,
</if>
<if
test=
"couponType != null"
>
and coupon_type = #{couponType}
,
</if>
<if
test=
"duration != null and duration != ''"
>
and duration = #{duration}
,
</if>
<if
test=
"minDuration != null and minDuration != ''"
>
and min_duration = #{minDuration}
,
</if>
<if
test=
"maxDuration != null and maxDuration != ''"
>
and max_duration = #{maxDuration}
,
</if>
<if
test=
"minPrice != null and minPrice != ''"
>
and min_price = #{minPrice}
,
</if>
<if
test=
"subPrice != null and subPrice != ''"
>
and sub_price = #{subPrice}
,
</if>
<if
test=
"isOverlay != null"
>
and is_overlay = #{isOverlay}
,
</if>
<if
test=
"platformType != null"
>
and platform_type = #{platformType}
,
</if>
<if
test=
"number != null"
>
and number = #{number}
,
</if>
<if
test=
"createBy != null"
>
and create_by = #{createBy}
,
</if>
<if
test=
"createTime != null"
>
and create_time = #{createTime}
,
</if>
<if
test=
"updateBy != null"
>
and update_by = #{updateBy}
,
</if>
<if
test=
"updateTime != null"
>
and update_time = #{updateTime}
,
</if>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"startDate != null"
>
and start_date = #{startDate}
</if>
<if
test=
"endDate != null"
>
and end_date = #{endDate}
</if>
<if
test=
"validStartTime != null"
>
and valid_start_time = #{validStartTime}
</if>
<if
test=
"validEndTime != null"
>
and valid_end_time = #{validEndTime}
</if>
<if
test=
"storeType != null"
>
and store_type = #{storeType}
</if>
<if
test=
"roomType != null"
>
and room_type = #{roomType}
</if>
<if
test=
"couponType != null"
>
and coupon_type = #{couponType}
</if>
<if
test=
"duration != null and duration != ''"
>
and duration = #{duration}
</if>
<if
test=
"minDuration != null and minDuration != ''"
>
and min_duration = #{minDuration}
</if>
<if
test=
"maxDuration != null and maxDuration != ''"
>
and max_duration = #{maxDuration}
</if>
<if
test=
"minPrice != null and minPrice != ''"
>
and min_price = #{minPrice}
</if>
<if
test=
"subPrice != null and subPrice != ''"
>
and sub_price = #{subPrice}
</if>
<if
test=
"isOverlay != null"
>
and is_overlay = #{isOverlay}
</if>
<if
test=
"platformType != null"
>
and platform_type = #{platformType}
</if>
<if
test=
"number != null"
>
and number = #{number}
</if>
<if
test=
"createBy != null"
>
and create_by = #{createBy}
</if>
<if
test=
"createTime != null"
>
and create_time = #{createTime}
</if>
<if
test=
"updateBy != null"
>
and update_by = #{updateBy}
</if>
<if
test=
"updateTime != null"
>
and update_time = #{updateTime}
</if>
</where>
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment