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 @@
...
@@ -226,29 +226,4 @@
</plugins>
</plugins>
</build>
</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>
</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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AQ
AC4hxw8PK0iLW2pOjhpEIj8jzj
b7avp5W3fR6LEtY7/JYJpH1SIyMGmFv0Qoq+sbnVzTzc3HMnE3yswKoT4J58MFuV
VfUxRYZr3jSQCDUF1qAR9HaF8PkceMAlHbyE58JXcRkpDeIjW/Qzqci+zWE3Yc7e
glvYTPuGIN7GUQ6xvGel1MG9zT6PfDJG5+yc8HeE6Z9kkYKSdbZD8vqeIgsJUO0u
B7MNK05xsetqMMxHPqBZZ3zELBIFEbOw+I2l+R0Z6FP6Tpxtwhr6ADWgQtuVzYad
LpFBx5FseR9wfe0x2xDk+mdrge+HR+VMUTHO5H8Awpi4IDNmLqU7RgNyLTSePV49
HKflY0sWWkAiY7DPJtnY3ENeW6PxmOOfiLyQIY5b4tAX4y8gcvW9ajDRs55NkBUp
GvI1qk+g8iex+NftC8U/lj8AUEBoBGh+7e+zNHUirBJzbcVvHu8h9HBqwGPF2Zji
K7pB9vgtZy7ZncnHRNz+wgyLF1yWE+xEaV+b44i6XwFk9aFNytkRFo0Ez+5Hmvp1
IU4S4joAZPpZVyqkg7yviAAOCsvRoAvEJxB1u8QGhJL0mvwrDk4eR5gpeDOc
/WcCgbgCewALdboWJFLw2AQxAFTlGX6677vq07NqGoFXo9byC33nidnE/l4j
-----END CERTIFICATE-----
-----END CERTIFICATE-----
soss-admin/src/main/resources/apiclient_key.pem
View file @
09788544
-----BEGIN PRIVATE KEY-----
-----BEGIN PRIVATE KEY-----
MIIEv
AIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDukoPUHtRGTrDN
MIIEv
gIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDF5TljtV/BtMVJ
bTq1Z20rKeO4MXwYH5DoNZTKDOJc42mMvI33GQZ6jALd1C8FC8fjOEjmxi/bFS8E
fY/GFR+baAXRRct/PxZjRRZ2t5FSVKDcNIRf7hh8koccgyNeVUkGiDRWTjUqxhvv
aGSABR9+KZyyZXBn9U/mjdlOELSVguSapz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qIUwZDCtHrM/t+HUDsnE39nPzLi
uynlCGvZfgjysrApD+awJ11xIqLt1I5v95pYt76kBokZkf5EAi4MrNohAoGAA7R
Z
M5AK0dqm2Xz/0rH6s1VhgYEwi/ZxTW9/eDev5KvlHfLuf6ScfkOb6nLnnQKBgQC
Z
TcdCsFY4Ws429AGMqQsKPeGg4dxe4TM0upAGnhpJy/qRYvRTRkuEOZeqMlT0DI8W
JeuoYYezO9wk4j8xl1Jb/mOay8bzhBV6sXzk5kx6xJCqZ+gd7Q73DfsZukRF6BsB
8dh5IVB8D1o+tcTXj8lJku3/O2iTz4Z69ztD9aqCrfGIXS34/hNlS5Bk8XS8nknb
PJ1dIyqGK/Oq+2W63TngRhUnfEqPg5l6MJ9eNCtEt/HLl28/6cwIMg1rt8dltHR4
Q0Tee3qdNal8v8IBC9rQzrsoT5UxnlUHLaRjvqECgYB576KkTxeFv1CpDWYx0xdh
3c8zMssrAd+WPP/p0a7mvUhvvR++0dvI6xnpuK88CQKBgBuQvTO6IdbZuP2meu6R
fmT8dasjt0x2g4nbjtF7gYjsxyFpcsqp5BPb5CibveV0DRe4aiwow9vsF73GY+tB
gVs55z4IHv2OCbsrnutrOvn7k3yRXzWrUdLIXMFT2So9lEQt3W45lPRL3lPO4PFy
EHcbEHtL/G05TRZU2Jlcl+Kp7G2Vw79XXHTOjaFG4c7kanQNEphiN/TxqcgsoBMs
Kbevr23OjFYYnWS+Qac5O6Nu48y46b9WBiEX3zMFEqxG9DHuBBeF6hABIYanO7i8
c1aZ1izfTzyR4a2AWL5xeQ==
v0eamA1hA3wVfjd+axYKtPx2
-----END PRIVATE KEY-----
-----END PRIVATE KEY-----
soss-admin/src/main/resources/application.yml
View file @
09788544
...
@@ -80,8 +80,8 @@ oss:
...
@@ -80,8 +80,8 @@ oss:
weixin
:
weixin
:
appid
:
wx71aa3662dfd3227d
appid
:
wx71aa3662dfd3227d
secret
:
da8a0b08436dd3ce560be429f14e768a
secret
:
da8a0b08436dd3ce560be429f14e768a
mchid
:
16
25511257
mchid
:
16
35472416
key
:
WcCsQZXavaPXQEKuTGJlGOkzzTPxTPsr
key
:
GlW0vXx44Z1P9ZwEjJ7i0aMSRbAreaQa
notify-url
:
https://hooloo-dev-api.gdatac.com/weixin/native/notify
notify-url
:
https://hooloo-dev-api.gdatac.com/weixin/native/notify
trade-type
:
JSAPI
trade-type
:
JSAPI
url
:
https://api.mch.weixin.qq.com/pay/unifiedorder
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 {
...
@@ -14,9 +14,6 @@ public class WeChatPayConfig {
@Value
(
"${weixin.appid}"
)
@Value
(
"${weixin.appid}"
)
private
String
appid
;
private
String
appid
;
@Value
(
"${weixin.secret}"
)
private
String
secret
;
@Value
(
"${weixin.mchid}"
)
@Value
(
"${weixin.mchid}"
)
private
String
mchId
;
private
String
mchId
;
@Value
(
"${weixin.key}"
)
@Value
(
"${weixin.key}"
)
...
...
soss-system/src/main/resources/mapper/system/CustomerMapper.xml
View file @
09788544
...
@@ -26,19 +26,19 @@
...
@@ -26,19 +26,19 @@
<select
id=
"selectCustomerList"
parameterType=
"Customer"
resultMap=
"CustomerResult"
>
<select
id=
"selectCustomerList"
parameterType=
"Customer"
resultMap=
"CustomerResult"
>
<include
refid=
"selectCustomerVo"
/>
<include
refid=
"selectCustomerVo"
/>
<where>
<where>
<if
test=
"userName != null and userName != ''"
>
and user_name like concat('%', #{userName}, '%')
</if>
<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=
"phone != null and phone != ''"
>
and phone = #{phone}
</if>
<if
test=
"avatarUrl != null and avatarUrl != ''"
>
and avatar_url = #{avatarUrl}
</if>
<if
test=
"avatarUrl != null and avatarUrl != ''"
>
and avatar_url = #{avatarUrl}
</if>
<if
test=
"soucre != null and soucre != ''"
>
and soucre = #{soucre}
</if>
<if
test=
"soucre != null and soucre != ''"
>
and soucre = #{soucre}
</if>
</where>
</where>
</select>
</select>
<select
id=
"selectCustomerById"
resultMap=
"CustomerResult"
>
<select
id=
"selectCustomerById"
resultMap=
"CustomerResult"
>
<include
refid=
"selectCustomerVo"
/>
<include
refid=
"selectCustomerVo"
/>
where id = #{id}
where id = #{id}
</select>
</select>
<insert
id=
"insertCustomer"
parameterType=
"Customer"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertCustomer"
parameterType=
"Customer"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into customer
insert into customer
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -107,46 +107,46 @@
...
@@ -107,46 +107,46 @@
#{id}
#{id}
</foreach>
</foreach>
</delete>
</delete>
<select
id=
"selectCustomerByQuery"
resultType=
"com.soss.system.domain.vo.customer.CustomerResultVo"
>
<select
id=
"selectCustomerByQuery"
resultType=
"com.soss.system.domain.vo.customer.CustomerResultVo"
>
select * from (select
SELECT
c.id ,
c.id,
c.user_name as userName,
c.user_name AS userName,
c.phone as phoneNumber,
c.phone AS phoneNumber,
(select count(*) from `order` o where o.user_id = c.id) as orderCount,
count( o.id ) orderCount,
(select sum(o.amount) from `order` o where o.user_id = c.id) as amount,
sum( o.paid_amount ) amount,
(select count(*) from `order` o where o.user_id = c.id and o.state in ('8','9','10','11')) as cancelCount,
count( CASE WHEN o.state IN ( '8', '9', '10', '11' ) THEN 1 END ) cancelCount,
(select sum(o.amount) from `order` o where o.user_id = c.id and o.state in ('8','9','10','11')) as cancelAmount,
sum( CASE WHEN o.state IN ( '8', '9', '10', '11' ) THEN o.paid_amount END ) cancelAmount,
(select count(*) from `order` o where o.user_id = c.id and o.state in ('12','14','15')) as refundCount,
count( CASE WHEN o.state IN ( '12', '14', '15' ) THEN 1 END ) refundCount,
(select sum(o.amount) from `order` o where o.user_id = c.id and o.state in ('12','14','15')) as refundAmount,
sum( CASE WHEN o.state IN ( '12', '14', '15' ) THEN o.paid_amount END ) refundAmount,
(select o.created_at from `order` o where o.user_id = c.id order by o.created_at desc limit 1) as lastOrderDate,
max( o.created_at ) lastOrderDate,
c.create_time as createDate,
c.create_time AS createDate,
c.soucre as source
c.soucre AS source
from
FROM
customer c ) a
customer c
LEFT JOIN `order` o ON c.id = o.user_id
<where>
<where>
<if
test=
"userInfo != null and userInfo != ''"
>
<if
test=
"userInfo != null and userInfo != ''"
>
and ((a.userName like concat('%', #{userInfo}, '%')) or (a.phoneNumber like concat('%', #{userInfo}, '%') ))
and (c.user_name like concat('%', #{userInfo}, '%') or c.phone 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>
</if>
</if>
<if
test=
"createAtStart !='' and createAtStart!=null"
>
<if
test=
"createAtStart != '' and createAtStart != null"
>
and createDate
>
=#{createAtStart}
and c.create_time
>
= #{createAtStart}
</if>
</if>
<if
test=
"createAtEnd !='' and createAtEnd!=null"
>
<if
test=
"createAtEnd != '' and createAtEnd != null"
>
and createDate
<
=#{createAtEnd}
and c.create_time
<
= #{createAtEnd}
</if>
</if>
</where>
</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>
</select>
</mapper>
</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