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
cb21d696
Commit
cb21d696
authored
Jun 26, 2022
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前进前进,继续上代码
parent
3a6a9b53
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
9 deletions
+34
-9
soss-admin/src/main/java/com/soss/web/controller/coffee/WeixinController.java
+6
-1
soss-system/src/main/java/com/soss/system/service/impl/GoodsServiceImpl.java
+0
-1
soss-system/src/main/java/com/soss/system/service/impl/OrderServiceImpl.java
+1
-1
soss-system/src/main/resources/mapper/system/OrderMapper.xml
+26
-5
soss-system/src/main/resources/mapper/system/SpecMapper.xml
+1
-1
No files found.
soss-admin/src/main/java/com/soss/web/controller/coffee/WeixinController.java
View file @
cb21d696
...
@@ -113,6 +113,11 @@ public class WeixinController {
...
@@ -113,6 +113,11 @@ public class WeixinController {
return
weixinService
.
refundNotify
(
xmlData
);
return
weixinService
.
refundNotify
(
xmlData
);
}
}
@Autowired
private
SendSmsUtil
sendSmsUtil
;
@RequestMapping
(
"/test"
)
public
void
test
(){
sendSmsUtil
.
sendSms
(
"15726637040"
,
"SMS_243650242"
,
null
);
}
}
}
soss-system/src/main/java/com/soss/system/service/impl/GoodsServiceImpl.java
View file @
cb21d696
...
@@ -281,7 +281,6 @@ public class GoodsServiceImpl implements IGoodsService
...
@@ -281,7 +281,6 @@ public class GoodsServiceImpl implements IGoodsService
int
i
=
goodsMapper
.
updateGoods
(
goods
);
int
i
=
goodsMapper
.
updateGoods
(
goods
);
if
(
boo
&&
i
>
0
){
if
(
boo
&&
i
>
0
){
Shop
shop
=
new
Shop
();
Shop
shop
=
new
Shop
();
shop
.
setIsDefault
(
0L
);
List
<
Shop
>
shops
=
shopService
.
selectShopList
(
shop
);
List
<
Shop
>
shops
=
shopService
.
selectShopList
(
shop
);
for
(
Shop
shop1
:
shops
)
{
for
(
Shop
shop1
:
shops
)
{
if
(!
"3"
.
equals
(
shop1
.
getState
())){
if
(!
"3"
.
equals
(
shop1
.
getState
())){
...
...
soss-system/src/main/java/com/soss/system/service/impl/OrderServiceImpl.java
View file @
cb21d696
...
@@ -478,7 +478,7 @@ public class OrderServiceImpl implements IOrderService
...
@@ -478,7 +478,7 @@ public class OrderServiceImpl implements IOrderService
public
List
<
JSONObject
>
getOrderInfo
(
String
machineCode
)
{
public
List
<
JSONObject
>
getOrderInfo
(
String
machineCode
)
{
Machine
machine
=
machineMapper
.
selectMachineByCode
(
machineCode
);
Machine
machine
=
machineMapper
.
selectMachineByCode
(
machineCode
);
List
<
String
>
status
=
Arrays
.
asList
(
"2"
,
"
4"
,
"5
"
);
List
<
String
>
status
=
Arrays
.
asList
(
"2"
,
"
3"
,
"4
"
);
List
<
Order
>
orders
=
orderMapper
.
selectOrder
(
status
,
machine
.
getId
());
List
<
Order
>
orders
=
orderMapper
.
selectOrder
(
status
,
machine
.
getId
());
Map
<
String
,
List
<
Order
>>
collect
=
orders
.
stream
().
collect
(
Collectors
.
groupingBy
(
Order:
:
getState
));
Map
<
String
,
List
<
Order
>>
collect
=
orders
.
stream
().
collect
(
Collectors
.
groupingBy
(
Order:
:
getState
));
List
<
JSONObject
>
objects
=
new
ArrayList
<>();
List
<
JSONObject
>
objects
=
new
ArrayList
<>();
...
...
soss-system/src/main/resources/mapper/system/OrderMapper.xml
View file @
cb21d696
...
@@ -142,12 +142,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -142,12 +142,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"shopId !=null"
>
<if
test=
"shopId !=null"
>
and o.shop_id=#{shopId}
and o.shop_id=#{shopId}
</if>
</if>
and o.state
not in ('1', '8', '9', '10', '11
')) a
and o.state
in ('6','7','12','13','14','15
')) a
</select>
</select>
<select
id=
"selectSalesAmount"
resultType=
"java.math.BigDecimal"
>
<select
id=
"selectSalesAmount"
resultType=
"java.math.BigDecimal"
>
select SUM(o.amount) from `order` o
select
where shop_id =#{shopId}
(
and state not in ('1','8','9','10','11')
select
SUM(o.amount)
from
`order` o
where
o.shop_id =#{shopId} and
state in ('6', '7', '12', '13', '14'))-(
select
SUM(or2.refund_amount)
from
order_refund or2
where
or2 .order_id in (
select
id
from
`order` o
where
o.shop_id =#{shopId} and
o.state = '14'))
from
dual
</select>
</select>
<select
id=
"selectByUserId"
resultMap=
"OrderResult"
>
<select
id=
"selectByUserId"
resultMap=
"OrderResult"
>
<include
refid=
"selectOrderVo"
/>
<include
refid=
"selectOrderVo"
/>
...
@@ -246,7 +267,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -246,7 +267,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</select>
<select
id=
"selectBeforeOrder"
resultType=
"com.soss.system.domain.Order"
>
<select
id=
"selectBeforeOrder"
resultType=
"com.soss.system.domain.Order"
>
select id, order_no, order_num, user_id, user_name, user_phone, pay_time, finish_time, amount, goods_num, pick_code, shop_id, machine_id, source, state, created_at, updated_at
select id, order_no, order_num, user_id, user_name, user_phone, pay_time, finish_time, amount, goods_num, pick_code, shop_id, machine_id, source, state, created_at, updated_at
from `order` o where o.id
<
#{orderId} and o.shop_id =(select DISTINCT a.shop_id from `order` a where a.id=#{orderId})
from `order` o where o.id
<
=
#{orderId} and o.shop_id =(select DISTINCT a.shop_id from `order` a where a.id=#{orderId})
and state in
and state in
<foreach
item=
"item"
index=
"index"
collection=
"status"
<foreach
item=
"item"
index=
"index"
collection=
"status"
...
...
soss-system/src/main/resources/mapper/system/SpecMapper.xml
View file @
cb21d696
...
@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"isNeccessary != null and isNeccessary != ''"
>
is_neccessary = #{isNeccessary},
</if>
<if
test=
"isNeccessary != null and isNeccessary != ''"
>
is_neccessary = #{isNeccessary},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt},
</if>
<if
test=
"code != null"
>
code = #{code},
</if>
<if
test=
"code != null"
>
code = #{code},
</if>
<if
test=
"remark != null"
>
code
= #{remark},
</if>
<if
test=
"remark != null"
>
remark
= #{remark},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
...
...
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