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
41ef2769
Commit
41ef2769
authored
Jun 09, 2022
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码永远再路上
parent
2608aa50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
soss-system/src/main/java/com/soss/system/service/impl/GoodsServiceImpl.java
+5
-4
soss-system/src/main/java/com/soss/system/service/impl/ShopServiceImpl.java
+0
-1
soss-system/src/main/resources/mapper/system/GoodsMapper.xml
+1
-0
soss-system/src/main/resources/mapper/system/GoodsSkuMapper.xml
+4
-1
No files found.
soss-system/src/main/java/com/soss/system/service/impl/GoodsServiceImpl.java
View file @
41ef2769
package
com
.
soss
.
system
.
service
.
impl
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONArray
;
...
...
@@ -46,6 +43,8 @@ public class GoodsServiceImpl implements IGoodsService
private
OrderMapper
orderMapper
;
@Autowired
private
GoodsCategoryMapper
goodsCategoryMapper
;
@Autowired
private
ShopRecommendMapper
shopRecommendMapper
;
/**
...
...
@@ -305,6 +304,8 @@ public class GoodsServiceImpl implements IGoodsService
for
(
ShopGoods
shopGoods1
:
shopGoodsList
)
{
shopGoodsMapper
.
deleteShopGoodsById
(
shopGoods1
.
getId
());
shopGoodsSkuMapper
.
deleteShopGoodsSkuByGoodsId
(
shopGoods1
.
getGoodsId
());
List
<
String
>
goodsIds
=
Arrays
.
asList
(
String
.
valueOf
(
shopGoods1
.
getGoodsId
()));
shopRecommendMapper
.
deleteByShopIdGoods
(
shopGoods1
.
getShopId
(),
goodsIds
);
}
return
i
+
""
;
...
...
soss-system/src/main/java/com/soss/system/service/impl/ShopServiceImpl.java
View file @
41ef2769
...
...
@@ -128,7 +128,6 @@ public class ShopServiceImpl implements IShopService
for
(
String
id
:
ids
)
{
Shop
shop
=
new
Shop
();
shop
.
setId
(
Long
.
parseLong
(
id
));
shop
.
setIsDefault
(
1L
);
shop
.
setState
(
"3"
);
shopMapper
.
updateShop
(
shop
);
}
...
...
soss-system/src/main/resources/mapper/system/GoodsMapper.xml
View file @
41ef2769
...
...
@@ -47,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"code != null and code != ''"
>
and code = #{code}
</if>
</where>
order by created_at desc
</select>
<select
id=
"selectGoodsById"
parameterType=
"String"
resultMap=
"GoodsResult"
>
...
...
soss-system/src/main/resources/mapper/system/GoodsSkuMapper.xml
View file @
41ef2769
...
...
@@ -88,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<select
id=
"selectSpec"
resultMap=
"GoodsSkuResult"
>
<include
refid=
"selectGoodsSkuVo"
/>
where rule_list like concat('%',#{query},'%')
where
is_deleted ='0' and
rule_list like concat('%',#{query},'%')
</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