Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
pms
Commits
8934dd8a
提交
8934dd8a
authored
6月 13, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
19f4699e
4f4b315d
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
37 行增加
和
10 行删除
+37
-10
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
GoodsInfoDao.java
src/main/java/com/mmc/pms/dao/GoodsInfoDao.java
+3
-1
ServiceQO.java
src/main/java/com/mmc/pms/model/qo/ServiceQO.java
+3
-0
GoodsInfoServiceImpl.java
...n/java/com/mmc/pms/service/Impl/GoodsInfoServiceImpl.java
+8
-2
GoodsInfoDao.xml
src/main/resources/mapper/GoodsInfoDao.xml
+14
-4
BackstageTaskServiceDao.xml
src/main/resources/mapper/work/BackstageTaskServiceDao.xml
+8
-2
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
8934dd8a
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newTag
:
085325ec9d91bf422bd2e4ad311d7e4f5ef70cb
3
newTag
:
b49c7ce0b60324d1d5a345e231054c299249060
3
src/main/java/com/mmc/pms/dao/GoodsInfoDao.java
浏览文件 @
8934dd8a
...
@@ -54,7 +54,7 @@ public interface GoodsInfoDao {
...
@@ -54,7 +54,7 @@ public interface GoodsInfoDao {
void
batchUpdateMallProductSku
(
List
<
Integer
>
delIds
);
void
batchUpdateMallProductSku
(
List
<
Integer
>
delIds
);
void
batchUpdateMallProdSkuInfo
(
List
<
MallProdInfoDO
>
mallProdSkuInfoL
ist
);
void
batchUpdateMallProdSkuInfo
(
List
<
MallProdInfoDO
>
l
ist
);
List
<
MallIndustrySkuInfoDO
>
getMallIndustrySkuInfo
(
Integer
id
);
List
<
MallIndustrySkuInfoDO
>
getMallIndustrySkuInfo
(
Integer
id
);
...
@@ -110,4 +110,6 @@ public interface GoodsInfoDao {
...
@@ -110,4 +110,6 @@ public interface GoodsInfoDao {
List
<
SpecPriceVO
>
getPriceBySpecId
(
Integer
productSpecId
,
Integer
leaseTerm
);
List
<
SpecPriceVO
>
getPriceBySpecId
(
Integer
productSpecId
,
Integer
leaseTerm
);
int
countGoodsInfoByCategoryId
(
Integer
id
);
int
countGoodsInfoByCategoryId
(
Integer
id
);
void
updateMallProdSkuInfo
(
MallProdInfoDO
mallProdInfoDO
);
}
}
src/main/java/com/mmc/pms/model/qo/ServiceQO.java
浏览文件 @
8934dd8a
...
@@ -45,6 +45,9 @@ public class ServiceQO implements Serializable {
...
@@ -45,6 +45,9 @@ public class ServiceQO implements Serializable {
@ApiModelProperty
(
value
=
"省份编码"
,
example
=
"440000"
)
@ApiModelProperty
(
value
=
"省份编码"
,
example
=
"440000"
)
private
Integer
provinceId
;
private
Integer
provinceId
;
@ApiModelProperty
(
value
=
"展示状态"
)
private
Integer
displayState
;
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
)
@NotNull
(
@NotNull
(
message
=
"页码不能为空"
,
message
=
"页码不能为空"
,
...
...
src/main/java/com/mmc/pms/service/Impl/GoodsInfoServiceImpl.java
浏览文件 @
8934dd8a
...
@@ -424,7 +424,10 @@ public class GoodsInfoServiceImpl implements GoodsInfoService {
...
@@ -424,7 +424,10 @@ public class GoodsInfoServiceImpl implements GoodsInfoService {
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// 1.3批量修改sku的信息
// 1.3批量修改sku的信息
goodsInfoDao
.
batchUpdateMallProdSkuInfo
(
mallProdSkuInfoList
);
for
(
MallProdInfoDO
mallProdInfoDO
:
mallProdSkuInfoList
)
{
goodsInfoDao
.
updateMallProdSkuInfo
(
mallProdInfoDO
);
}
// goodsInfoDao.batchUpdateMallProdSkuInfo(mallProdSkuInfoList);
// 1.4对新的sku进行操作
// 1.4对新的sku进行操作
List
<
GoodsProdSpecVO
>
list
=
List
<
GoodsProdSpecVO
>
list
=
specInfo
.
stream
().
filter
(
d
->
d
.
getId
()
==
null
).
collect
(
Collectors
.
toList
());
specInfo
.
stream
().
filter
(
d
->
d
.
getId
()
==
null
).
collect
(
Collectors
.
toList
());
...
@@ -508,7 +511,10 @@ public class GoodsInfoServiceImpl implements GoodsInfoService {
...
@@ -508,7 +511,10 @@ public class GoodsInfoServiceImpl implements GoodsInfoService {
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// 批量修改sku的信息
// 批量修改sku的信息
goodsInfoDao
.
batchUpdateMallProdSkuInfo
(
zdySpecList
);
for
(
MallProdInfoDO
mallProdInfoDO
:
zdySpecList
)
{
goodsInfoDao
.
updateMallProdSkuInfo
(
mallProdInfoDO
);
}
// goodsInfoDao.batchUpdateMallProdSkuInfo(zdySpecList);
}
}
for
(
GoodsProdSpecVO
goodsSpecVO
:
zdySpec
)
{
for
(
GoodsProdSpecVO
goodsSpecVO
:
zdySpec
)
{
// 【1】获取输入的自定义规格信息// id不为空则修改
// 【1】获取输入的自定义规格信息// id不为空则修改
...
...
src/main/resources/mapper/GoodsInfoDao.xml
浏览文件 @
8934dd8a
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
where goods_info_id = #{goodsId}
where goods_info_id = #{goodsId}
</update>
</update>
<update
id=
"batchUpdateMallProductSku"
>
<update
id=
"batchUpdateMallProductSku"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
index=
"index"
>
update mall_prod_info
update mall_prod_info
set is_deleted = 1
set is_deleted = 1
where id = #{d}
where id = #{d}
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</foreach>
</foreach>
</update>
</update>
<update
id=
"batchUpdateMallProdSkuInfo"
>
<update
id=
"batchUpdateMallProdSkuInfo"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
index=
"index"
>
update mall_prod_info
update mall_prod_info
<set>
<set>
product_id = #{d.prodSkuId},
product_id = #{d.prodSkuId},
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
</foreach>
</foreach>
</update>
</update>
<update
id=
"batchUpdateMallProSpec"
>
<update
id=
"batchUpdateMallProSpec"
>
<foreach
collection=
"list"
separator=
";"
item=
"d"
>
<foreach
collection=
"list"
separator=
";"
item=
"d"
index=
"index"
>
update mall_prod_info_spec
update mall_prod_info_spec
set is_deleted = 1
set is_deleted = 1
where mall_prod_info_id = #{d}
where mall_prod_info_id = #{d}
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
</foreach>
</foreach>
</update>
</update>
<update
id=
"batchUpdateMallProdSpec"
>
<update
id=
"batchUpdateMallProdSpec"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
index=
"index"
>
update mall_prod_info_spec
update mall_prod_info_spec
set is_deleted = 1
set is_deleted = 1
where id = #{d}
where id = #{d}
...
@@ -161,6 +161,16 @@
...
@@ -161,6 +161,16 @@
#{item}
#{item}
</foreach>
</foreach>
</update>
</update>
<update
id=
"updateMallProdSkuInfo"
>
update mall_prod_info
set product_id = #{prodSkuId},
categories_id = #{categoriesId},
prod_spec_name = #{prodSkuSpecName},
choose_type = #{chooseType},
sku_unit_id = #{skuUnitId},
is_must = #{must}
where id = #{id}
</update>
<delete
id=
"deleteGoodsServiceByGoodsId"
>
<delete
id=
"deleteGoodsServiceByGoodsId"
>
delete
delete
from goods_service
from goods_service
...
...
src/main/resources/mapper/work/BackstageTaskServiceDao.xml
浏览文件 @
8934dd8a
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
service_introduction, create_time, update_time, account_id
service_introduction, create_time, update_time, account_id
from service
from service
<where>
<where>
is_deleted = 0
and display_state = 0
is_deleted = 0
<if
test=
"serviceName != null and serviceName != ''"
>
<if
test=
"serviceName != null and serviceName != ''"
>
and service_name LIKE CONCAT('%',#{serviceName},'%')
and service_name LIKE CONCAT('%',#{serviceName},'%')
</if>
</if>
...
@@ -74,6 +74,9 @@
...
@@ -74,6 +74,9 @@
<if
test=
"industryId != null"
>
<if
test=
"industryId != null"
>
and industry_id = #{industryId}
and industry_id = #{industryId}
</if>
</if>
<if
test=
"displayState != null"
>
and display_state = #{displayState}
</if>
</where>
</where>
order by create_time desc
order by create_time desc
limit #{pageNo}, #{pageSize}
limit #{pageNo}, #{pageSize}
...
@@ -84,7 +87,7 @@
...
@@ -84,7 +87,7 @@
select count(*)
select count(*)
from service
from service
<where>
<where>
is_deleted = 0
and display_state = 0
is_deleted = 0
<if
test=
"serviceName != null and serviceName != ''"
>
<if
test=
"serviceName != null and serviceName != ''"
>
and service_name LIKE CONCAT('%',#{serviceName},'%')
and service_name LIKE CONCAT('%',#{serviceName},'%')
</if>
</if>
...
@@ -94,6 +97,9 @@
...
@@ -94,6 +97,9 @@
<if
test=
"industryId != null"
>
<if
test=
"industryId != null"
>
and industry_id = #{industryId}
and industry_id = #{industryId}
</if>
</if>
<if
test=
"displayState != null"
>
and display_state = #{displayState}
</if>
</where>
</where>
</select>
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论