Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
ms
soss
Commits
09788544
Commit
09788544
authored
Jan 09, 2023
by
caiyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付商户
parent
c8166fe9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
135 deletions
+83
-135
pom.xml
+0
-26
soss-admin/src/main/resources/apiclient_cert.p12
+0
-0
soss-admin/src/main/resources/apiclient_cert.pem
+17
-17
soss-admin/src/main/resources/apiclient_key.pem
+26
-26
soss-admin/src/main/resources/application.yml
+2
-2
soss-admin/src/main/resources/wxpay.properties
+0
-24
soss-system/src/main/java/com/soss/system/config/WeChatPayConfig.java
+0
-3
soss-system/src/main/resources/mapper/system/CustomerMapper.xml
+38
-37
No files found.
pom.xml
View file @
09788544
...
...
@@ -226,29 +226,4 @@
</plugins>
</build>
<repositories>
<repository>
<id>
public
</id>
<name>
aliyun nexus
</name>
<url>
https://maven.aliyun.com/repository/public
</url>
<releases>
<enabled>
true
</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>
public
</id>
<name>
aliyun nexus
</name>
<url>
https://maven.aliyun.com/repository/public
</url>
<releases>
<enabled>
true
</enabled>
</releases>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
\ No newline at end of file
soss-admin/src/main/resources/apiclient_cert.p12
View file @
09788544
No preview for this file type
soss-admin/src/main/resources/apiclient_cert.pem
View file @
09788544
-----BEG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BbBdGSFv9PS7kFqkl8YCRXY0r8l+
qh/+cApteuyTqn5+ghqf89n7HxCfEg8ZRUz20qIUwZDCtHrM/t+HUDsnE39nPzLi
M5AK0dqm2Xz/0rH6s1VhgYEwi/ZxTW9/eDev5KvlHfLuf6ScfkOb6nLnnQKBgQC
Z
JeuoYYezO9wk4j8xl1Jb/mOay8bzhBV6sXzk5kx6xJCqZ+gd7Q73DfsZukRF6BsB
PJ1dIyqGK/Oq+2W63TngRhUnfEqPg5l6MJ9eNCtEt/HLl28/6cwIMg1rt8dltHR4
3c8zMssrAd+WPP/p0a7mvUhvvR++0dvI6xnpuK88CQKBgBuQvTO6IdbZuP2meu6R
gVs55z4IHv2OCbsrnutrOvn7k3yRXzWrUdLIXMFT2So9lEQt3W45lPRL3lPO4PFy
Kbevr23OjFYYnWS+Qac5O6Nu48y46b9WBiEX3zMFEqxG9DHuBBeF6hABIYanO7i8
v0eamA1hA3wVfjd+axYKtPx2
-----END PRIVATE KEY-----
soss-admin/src/main/resources/application.yml
View file @
09788544
...
...
@@ -80,8 +80,8 @@ oss:
weixin
:
appid
:
wx71aa3662dfd3227d
secret
:
da8a0b08436dd3ce560be429f14e768a
mchid
:
16
25511257
key
:
WcCsQZXavaPXQEKuTGJlGOkzzTPxTPsr
mchid
:
16
35472416
key
:
GlW0vXx44Z1P9ZwEjJ7i0aMSRbAreaQa
notify-url
:
https://hooloo-dev-api.gdatac.com/weixin/native/notify
trade-type
:
JSAPI
url
:
https://api.mch.weixin.qq.com/pay/unifiedorder
...
...
soss-admin/src/main/resources/wxpay.properties
deleted
100644 → 0
View file @
c8166fe9
wxpay.mch-id
=
1625511257
wxpay.mch-serial-no
=
da8a0b08436dd3ce560be429f14e768a
wxpay.private-key-path
=
apiclient_key.pem
wxpay.api-v3-key
=
xRu8KoCwVWbKZ8tlca3JfAZkMSV2p7tY
wxpay.appid
=
wx71aa3662dfd3227d
wxpay.domain
=
https://api.mch.weixin.qq.com
wxpay.notify-domain
=
https://500c-219-143-130-12.ngrok.io
wxpay.partnerKey
:
T6m9iK73b0kn9g5v426MKfHQH7X8rKwb
appid
:
wx71aa3662dfd3227d
secret
:
da8a0b08436dd3ce560be429f14e768a
mchid
:
1625511257
#??????
key
:
WcCsQZXavaPXQEKuTGJlGOkzzTPxTPsr
#??????
notify-url
:
http://127.0.0.1/weixin/wxNotify
#????
trade-type
:
JSAPI
url
:
https://api.mch.weixin.qq.com/pay/unifiedorder
query-url
:
https://api.mch.weixin.qq.com/pay/orderquery
cert-path
:
zzz
\ No newline at end of file
soss-system/src/main/java/com/soss/system/config/WeChatPayConfig.java
View file @
09788544
...
...
@@ -14,9 +14,6 @@ public class WeChatPayConfig {
@Value
(
"${weixin.appid}"
)
private
String
appid
;
@Value
(
"${weixin.secret}"
)
private
String
secret
;
@Value
(
"${weixin.mchid}"
)
private
String
mchId
;
@Value
(
"${weixin.key}"
)
...
...
soss-system/src/main/resources/mapper/system/CustomerMapper.xml
View file @
09788544
...
...
@@ -26,19 +26,19 @@
<select
id=
"selectCustomerList"
parameterType=
"Customer"
resultMap=
"CustomerResult"
>
<include
refid=
"selectCustomerVo"
/>
<where>
<where>
<if
test=
"userName != null and userName != ''"
>
and user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"phone != null and phone != ''"
>
and phone = #{phone}
</if>
<if
test=
"avatarUrl != null and avatarUrl != ''"
>
and avatar_url = #{avatarUrl}
</if>
<if
test=
"soucre != null and soucre != ''"
>
and soucre = #{soucre}
</if>
</where>
</select>
<select
id=
"selectCustomerById"
resultMap=
"CustomerResult"
>
<include
refid=
"selectCustomerVo"
/>
where id = #{id}
</select>
<insert
id=
"insertCustomer"
parameterType=
"Customer"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into customer
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -107,46 +107,46 @@
#{id}
</foreach>
</delete>
<select
id=
"selectCustomerByQuery"
resultType=
"com.soss.system.domain.vo.customer.CustomerResultVo"
>
select * from (select
c.id ,
c.user_name as userName,
c.phone as phoneNumber,
(select count(*) from `order` o where o.user_id = c.id) as orderCount,
(select sum(o.amount) from `order` o where o.user_id = c.id) as amount,
(select count(*) from `order` o where o.user_id = c.id and o.state in ('8','9','10','11')) as cancelCount,
(select sum(o.amount) from `order` o where o.user_id = c.id and o.state in ('8','9','10','11')) as cancelAmount,
(select count(*) from `order` o where o.user_id = c.id and o.state in ('12','14','15')) as refundCount,
(select sum(o.amount) from `order` o where o.user_id = c.id and o.state in ('12','14','15')) as refundAmount,
(select o.created_at from `order` o where o.user_id = c.id order by o.created_at desc limit 1) as lastOrderDate,
c.create_time as createDate,
c.soucre as source
from
customer c ) a
SELECT
c.id,
c.user_name AS userName,
c.phone AS phoneNumber,
count( o.id ) orderCount,
sum( o.paid_amount ) amount,
count( CASE WHEN o.state IN ( '8', '9', '10', '11' ) THEN 1 END ) cancelCount,
sum( CASE WHEN o.state IN ( '8', '9', '10', '11' ) THEN o.paid_amount END ) cancelAmount,
count( CASE WHEN o.state IN ( '12', '14', '15' ) THEN 1 END ) refundCount,
sum( CASE WHEN o.state IN ( '12', '14', '15' ) THEN o.paid_amount END ) refundAmount,
max( o.created_at ) lastOrderDate,
c.create_time AS createDate,
c.soucre AS source
FROM
customer c
LEFT JOIN `order` o ON c.id = o.user_id
<where>
<if
test=
"userInfo != null and userInfo != ''"
>
and ((a.userName like concat('%', #{userInfo}, '%')) or (a.phoneNumber like concat('%', #{userInfo}, '%') ))
</if>
<if
test=
"buyRecords != null and buyRecords != ''"
>
and
<if
test=
'buyRecords == "1"'
>
a.orderCount >0
</if>
<if
test=
'buyRecords == "2"'
>
a.orderCount =0
</if>
<if
test=
'buyRecords == "3"'
>
a.orderCount >1
</if>
and (c.user_name like concat('%', #{userInfo}, '%') or c.phone like concat('%', #{userInfo}, '%') )
</if>
<if
test=
"createAtStart !='' and createAtStart!=null"
>
and createDate
>
=#{createAtStart}
<if
test=
"createAtStart != '' and createAtStart != null"
>
and c.create_time
>
= #{createAtStart}
</if>
<if
test=
"createAtEnd !='' and createAtEnd!=null"
>
and createDate
<
=#{createAtEnd}
<if
test=
"createAtEnd != '' and createAtEnd != null"
>
and c.create_time
<
= #{createAtEnd}
</if>
</where>
GROUP BY c.id
<if
test=
"buyRecords != null and buyRecords != ''"
>
<if
test=
'buyRecords == "1"'
>
HAVING count(o.id) > 0
</if>
<if
test=
'buyRecords == "2"'
>
HAVING count(o.id) = 0
</if>
<if
test=
'buyRecords == "3"'
>
HAVING count(o.id) > 1
</if>
</if>
</select>
</mapper>
\ No newline at end of file
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