Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b88ce6bb
authored
Dec 09, 2025
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查询商户信息
1 parent
59027ca1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
rpc-dj-pe-analysis-api/src/main/java/cn/com/glsx/dj/peanalysis/dto/MerchantInfoDTO.java
rpc-dj-pe-analysis/src/main/resources/META-INF/orm/ServiceMerchantMapper.xml
rpc-dj-pe-analysis-api/src/main/java/cn/com/glsx/dj/peanalysis/dto/MerchantInfoDTO.java
View file @
b88ce6b
...
...
@@ -14,6 +14,11 @@ public class MerchantInfoDTO implements Serializable {
private
Integer
merchantId
;
/**
* 商户名称
*/
private
String
merchantName
;
/**
* 1-新店 2-老店
*/
private
Integer
storeType
;
...
...
rpc-dj-pe-analysis/src/main/resources/META-INF/orm/ServiceMerchantMapper.xml
View file @
b88ce6b
...
...
@@ -141,6 +141,7 @@
resultType=
"cn.com.glsx.dj.peanalysis.dto.MerchantInfoDTO"
>
SELECT
m.merchant_id as merchantId,
m.merchant_name as merchantName,
CASE
WHEN #{businessType} = 1 AND m.benefits_first_pay_time >= CURRENT_DATE - INTERVAL 90 DAY THEN 1
WHEN #{businessType} = 2 AND m.ext_warranty_first_pay_time >= CURRENT_DATE - INTERVAL 90 DAY THEN 1
...
...
@@ -170,7 +171,7 @@
UNION ALL
SELECT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
@@ -196,7 +197,7 @@
UNION ALL
SELECT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
@@ -222,7 +223,7 @@
UNION ALL
SELECT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
@@ -255,7 +256,7 @@
UNION ALL
SELECT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
@@ -317,7 +318,7 @@
<when
test=
"businessType == 4"
>
SELECT DISTINCT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
@@ -370,7 +371,7 @@
UNION ALL
SELECT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
@@ -396,7 +397,7 @@
UNION ALL
SELECT source_store AS merchant_id
FROM vcp_car_manage_info
WHERE 1=1
<!-- 关键修改 -->
WHERE 1=1
<if
test=
"beginTime != null and endTime != null"
>
AND purchase_time BETWEEN #{beginTime} AND #{endTime}
</if>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment