Commit 09788544 by caiyt

修改支付商户

parent c8166fe9
......@@ -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
-----BEGIN CERTIFICATE-----
MIID6TCCAtGgAwIBAgIUY1A0gVLJqFAXYGiYwe6SS717wxMwDQYJKoZIhvcNAQEL
MIID6TCCAtGgAwIBAgIUaGmhkcyIbVybvLR8joPoRCP03swwDQYJKoZIhvcNAQEL
BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT
FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDVQQDExJUZW5wYXkuY29tIFJvb3Qg
Q0EwHhcNMjIwNTA3MDY1NDAzWhcNMjcwNTA2MDY1NDAzWjB7MRMwEQYDVQQDDAox
NjI1NTExMjU3MRswGQYDVQQKDBLlvq7kv6HllYbmiLfns7vnu58xJzAlBgNVBAsM
HuWMl+S6rOWlvemlruenkeaKgOaciemZkOWFrOWPuDELMAkGA1UEBgwCQ04xETAP
Q0EwHhcNMjIxMjEyMDcxOTAzWhcNMjcxMjExMDcxOTAzWjB7MRMwEQYDVQQDDAox
NjM1NDcyNDE2MRswGQYDVQQKDBLlvq7kv6HllYbmiLfns7vnu58xJzAlBgNVBAsM
Hua3seWcs+WlvemlruenkeaKgOaciemZkOWFrOWPuDELMAkGA1UEBgwCQ04xETAP
BgNVBAcMCFNoZW5aaGVuMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
7pKD1B7URk6wzW06tWdtKynjuDF8GB+Q6DWUygziXONpjL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cPIlHTafTJRxHuvvAJ+uLCKNkUMCgYEA2cpVIDKSnyWeyAZgpOg9vrvEKytuyiOt
73lNHEaZmbHWsuI+ucDHSkT4nag7U+6QAMDcNUOKcUHMKpcWamp+GDsAZFpKW4Y3
/iUr2Y6hr/iSAPkwUaQy0+kqwVSDgU1Dy1+6l0W+lXHzuWOBt99L43iFb4Y7iaTb
kcLmb2Qn0mkCgYAYlThW4X1V0V1nfwSfyfaEBbBdGSFv9PS7kFqkl8YCRXY0r8l+
qh/+cApteuyTqn5+ghqf89n7HxCfEg8ZRUz20qIUwZDCtHrM/t+HUDsnE39nPzLi
M5AK0dqm2Xz/0rH6s1VhgYEwi/ZxTW9/eDev5KvlHfLuf6ScfkOb6nLnnQKBgQCZ
JeuoYYezO9wk4j8xl1Jb/mOay8bzhBV6sXzk5kx6xJCqZ+gd7Q73DfsZukRF6BsB
PJ1dIyqGK/Oq+2W63TngRhUnfEqPg5l6MJ9eNCtEt/HLl28/6cwIMg1rt8dltHR4
3c8zMssrAd+WPP/p0a7mvUhvvR++0dvI6xnpuK88CQKBgBuQvTO6IdbZuP2meu6R
gVs55z4IHv2OCbsrnutrOvn7k3yRXzWrUdLIXMFT2So9lEQt3W45lPRL3lPO4PFy
Kbevr23OjFYYnWS+Qac5O6Nu48y46b9WBiEX3zMFEqxG9DHuBBeF6hABIYanO7i8
v0eamA1hA3wVfjd+axYKtPx2
-----END PRIVATE KEY-----
......@@ -80,8 +80,8 @@ oss:
weixin:
appid: wx71aa3662dfd3227d
secret: da8a0b08436dd3ce560be429f14e768a
mchid: 1625511257
key: WcCsQZXavaPXQEKuTGJlGOkzzTPxTPsr
mchid: 1635472416
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
......
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
......@@ -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}")
......
......@@ -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}, '%') ))
and (c.user_name like concat('%', #{userInfo}, '%') or c.phone like concat('%', #{userInfo}, '%') )
</if>
<if test="createAtStart != '' and createAtStart != null">
and c.create_time &gt;= #{createAtStart}
</if>
<if test="createAtEnd != '' and createAtEnd != null">
and c.create_time &lt;= #{createAtEnd}
</if>
</where>
GROUP BY c.id
<if test="buyRecords != null and buyRecords != ''">
and
<if test='buyRecords == "1"'>
a.orderCount >0
HAVING count(o.id) > 0
</if>
<if test='buyRecords == "2"'>
a.orderCount =0
HAVING count(o.id) = 0
</if>
<if test='buyRecords == "3"'>
a.orderCount >1
HAVING count(o.id) > 1
</if>
</if>
<if test="createAtStart !='' and createAtStart!=null">
and createDate &gt;=#{createAtStart}
</if>
<if test="createAtEnd !='' and createAtEnd!=null">
and createDate &lt;=#{createAtEnd}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment