Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
aa654b08
提交
aa654b08
authored
8月 01, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增:用户删除时对应把商品也删除
上级
6a501d5f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
24 行增加
和
0 行删除
+24
-0
MallGoodsController.java
...java/com/mmc/pms/controller/mall/MallGoodsController.java
+7
-0
MallGoodsDao.java
src/main/java/com/mmc/pms/dao/mall/MallGoodsDao.java
+2
-0
MallGoodsService.java
src/main/java/com/mmc/pms/service/mall/MallGoodsService.java
+2
-0
MallGoodsServiceImpl.java
...a/com/mmc/pms/service/mall/impl/MallGoodsServiceImpl.java
+6
-0
MallGoodsDao.xml
src/main/resources/mapper/mall/MallGoodsDao.xml
+5
-0
not-check.yml
src/main/resources/not-check.yml
+2
-0
没有找到文件。
src/main/java/com/mmc/pms/controller/mall/MallGoodsController.java
浏览文件 @
aa654b08
...
@@ -80,4 +80,11 @@ public class MallGoodsController extends BaseController {
...
@@ -80,4 +80,11 @@ public class MallGoodsController extends BaseController {
public
ResultBody
removeMallGoods
(
@ApiParam
(
value
=
"商品id"
,
required
=
true
)
@RequestParam
(
value
=
"id"
)
Integer
id
)
{
public
ResultBody
removeMallGoods
(
@ApiParam
(
value
=
"商品id"
,
required
=
true
)
@RequestParam
(
value
=
"id"
)
Integer
id
)
{
return
mallGoodsService
.
removeMallGoods
(
id
);
return
mallGoodsService
.
removeMallGoods
(
id
);
}
}
@ApiOperation
(
value
=
"删除用户时对应的商品也删除"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"feignRemoveGoodsByBackUserAccountId"
)
public
ResultBody
feignRemoveGoodsByUserAccountId
(
@RequestParam
(
value
=
"id"
)
Integer
id
)
{
return
mallGoodsService
.
feignRemoveGoodsByBackUserAccountId
(
id
);
}
}
}
src/main/java/com/mmc/pms/dao/mall/MallGoodsDao.java
浏览文件 @
aa654b08
...
@@ -61,4 +61,6 @@ public interface MallGoodsDao {
...
@@ -61,4 +61,6 @@ public interface MallGoodsDao {
void
updateMallGoodsByShelf
(
Integer
id
,
Integer
status
);
void
updateMallGoodsByShelf
(
Integer
id
,
Integer
status
);
void
removeMallGoods
(
Integer
id
);
void
removeMallGoods
(
Integer
id
);
void
feignRemoveGoodsByBackUserAccountId
(
Integer
id
);
}
}
src/main/java/com/mmc/pms/service/mall/MallGoodsService.java
浏览文件 @
aa654b08
...
@@ -26,4 +26,6 @@ public interface MallGoodsService {
...
@@ -26,4 +26,6 @@ public interface MallGoodsService {
ResultBody
upOrDownShelf
(
Integer
id
,
Integer
status
);
ResultBody
upOrDownShelf
(
Integer
id
,
Integer
status
);
ResultBody
removeMallGoods
(
Integer
id
);
ResultBody
removeMallGoods
(
Integer
id
);
ResultBody
feignRemoveGoodsByBackUserAccountId
(
Integer
id
);
}
}
src/main/java/com/mmc/pms/service/mall/impl/MallGoodsServiceImpl.java
浏览文件 @
aa654b08
...
@@ -250,4 +250,10 @@ public class MallGoodsServiceImpl implements MallGoodsService {
...
@@ -250,4 +250,10 @@ public class MallGoodsServiceImpl implements MallGoodsService {
mallGoodsDao
.
removeMallGoods
(
id
);
mallGoodsDao
.
removeMallGoods
(
id
);
return
ResultBody
.
success
();
return
ResultBody
.
success
();
}
}
@Override
public
ResultBody
feignRemoveGoodsByBackUserAccountId
(
Integer
id
)
{
mallGoodsDao
.
feignRemoveGoodsByBackUserAccountId
(
id
);
return
ResultBody
.
success
();
}
}
}
src/main/resources/mapper/mall/MallGoodsDao.xml
浏览文件 @
aa654b08
...
@@ -100,6 +100,11 @@
...
@@ -100,6 +100,11 @@
set is_deleted = 1
set is_deleted = 1
where id = #{id}
where id = #{id}
</update>
</update>
<update
id=
"feignRemoveGoodsByBackUserAccountId"
>
update mall_goods
set is_deleted = 1
where user_account_id = #{id}
</update>
<delete
id=
"deleteMallGoodsResources"
>
<delete
id=
"deleteMallGoodsResources"
>
delete
delete
from mall_goods_resources
from mall_goods_resources
...
...
src/main/resources/not-check.yml
浏览文件 @
aa654b08
...
@@ -22,3 +22,4 @@ data-filter:
...
@@ -22,3 +22,4 @@ data-filter:
-
/pms/category/appCategoryInfo
-
/pms/category/appCategoryInfo
-
/pms/app/goods/queryBrandGoods
-
/pms/app/goods/queryBrandGoods
-
/pms/app/goods/queryGoodsInfoByCategorySub
-
/pms/app/goods/queryGoodsInfoByCategorySub
-
/pms/mall/goods/feignRemoveGoodsByBackUserAccountId
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论