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
e77d1763
Commit
e77d1763
authored
2 years ago
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
0c232214
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
6 deletions
+16
-6
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderController.java
+1
-1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderRefundController.java
+2
-2
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
+1
-1
ruoyi-system/src/main/java/com/ruoyi/system/mapper/ShopGoodsMapper.java
+3
-0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopServiceImpl.java
+1
-1
ruoyi-system/src/main/resources/mapper/system/GoodsMapper.xml
+0
-1
ruoyi-system/src/main/resources/mapper/system/ShopGoodsMapper.xml
+8
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderController.java
View file @
e77d1763
...
...
@@ -88,7 +88,7 @@ public class OrderController extends BaseController
return
ajaxResult
;
}
int
amount
=
order
.
getAmount
().
movePointRight
(
2
).
intValue
();
Map
payInfo
=
weixinService
.
pay
(
request
,
"hooloo"
,
order
.
getOrderNo
(),
order
.
getUserId
(),
amount
);
Map
payInfo
=
weixinService
.
pay
(
request
,
"hooloo"
,
order
.
getOrderNo
(),
order
.
getUserId
(),
1
);
if
(
payInfo
!=
null
){
return
AjaxResult
.
success
(
payInfo
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/coffee/OrderRefundController.java
View file @
e77d1763
...
...
@@ -73,7 +73,7 @@ public class OrderRefundController extends BaseController
OrderRefund
orderRefund1
=
(
OrderRefund
)
obejct
;
int
totalFee
=
orderRefund1
.
getTotalFee
().
movePointRight
(
2
).
intValue
();
int
refundAmount
=
orderRefund1
.
getRefundAmount
().
movePointRight
(
2
).
intValue
();
weixinService
.
refund
(
orderRefund1
.
getRefundNo
(),
orderRefund1
.
getOrderNo
(),
totalFee
,
refundAmount
);
weixinService
.
refund
(
orderRefund1
.
getRefundNo
(),
orderRefund1
.
getOrderNo
(),
1
,
1
);
orderRefund1
.
setState
(
"1"
);
orderRefundService
.
updateOrderRefund
(
orderRefund1
);
}
...
...
@@ -86,7 +86,7 @@ public class OrderRefundController extends BaseController
int
totalFee
=
orderRefund
.
getTotalFee
().
movePointRight
(
2
).
intValue
();
int
refundAmount
=
orderRefund
.
getRefundAmount
().
movePointRight
(
2
).
intValue
();
orderRefund
.
setState
(
"1"
);
weixinService
.
refund
(
orderRefund
.
getRefundNo
(),
orderRefund
.
getOrderNo
(),
totalFee
,
refundAmount
);
weixinService
.
refund
(
orderRefund
.
getRefundNo
(),
orderRefund
.
getOrderNo
(),
1
,
1
);
return
AjaxResult
.
success
(
orderRefundService
.
updateOrderRefund
(
orderRefund
));
}
...
...
This diff is collapsed.
Click to expand it.
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
View file @
e77d1763
...
...
@@ -101,7 +101,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 过滤请求
.
authorizeRequests
()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
,
"/weixin/**"
,
"/application/**"
,
"/v1/**"
,
"/tool/**"
,
"/system/**"
).
anonymous
()
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
,
"/weixin/**"
,
"/application/**"
,
"/v1/**"
,
"/tool/**"
).
anonymous
()
.
antMatchers
(
HttpMethod
.
GET
,
"/"
,
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/mapper/ShopGoodsMapper.java
View file @
e77d1763
...
...
@@ -5,6 +5,7 @@ import java.util.List;
import
com.ruoyi.system.domain.Goods
;
import
com.ruoyi.system.domain.ShopGoods
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.security.core.parameters.P
;
/**
* 店铺和商品关联Mapper接口
...
...
@@ -70,4 +71,6 @@ public interface ShopGoodsMapper
List
<
Goods
>
selectShopNoAddGoods
(
@Param
(
"goodsName"
)
String
goodsName
,
@Param
(
"category"
)
String
category
,
@Param
(
"shopId"
)
Long
shopId
);
void
deleteByShopIdGoods
(
@Param
(
"shopId"
)
Long
shopId
,
@Param
(
"goodsIds"
)
List
<
String
>
goodsIds
);
}
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ShopServiceImpl.java
View file @
e77d1763
...
...
@@ -252,7 +252,7 @@ public class ShopServiceImpl implements IShopService
String
string
=
body
.
getString
(
"goodsIds"
);
List
<
String
>
goodsIds
=
JSONObject
.
parseArray
(
string
,
String
.
class
);
shopGoodsSkuMapper
.
deleteByGoodsIds
(
shopId
,
goodsIds
);
shopGoodsMapper
.
deleteByShopIdGoods
(
shopId
,
goodsIds
);
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/mapper/system/GoodsMapper.xml
View file @
e77d1763
...
...
@@ -44,7 +44,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createdAt != null "
>
and created_at = #{createdAt}
</if>
<if
test=
"updatedAt != null "
>
and updated_at = #{updatedAt}
</if>
<if
test=
"code != null and code != ''"
>
and code = #{code}
</if>
<if
test=
"shelfAt != null shelfAt code != ''"
>
and shelf_at = #{shelfAt}
</if>
</where>
</select>
...
...
This diff is collapsed.
Click to expand it.
ruoyi-system/src/main/resources/mapper/system/ShopGoodsMapper.xml
View file @
e77d1763
...
...
@@ -114,6 +114,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and category like concat('%', #{category}, '%')
</if>
</select>
<delete
id=
"deleteByShopIdGoods"
>
delete from shop_goods where shop_id =#{shopId}
and goods_id in
<foreach
collection=
"goodsIds"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</delete>
</mapper>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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