Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
edb49ea1
Commit
edb49ea1
authored
Jun 05, 2026
by
pfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom商品关联表迁移
parent
9c58e54c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
custom-server-app/src/main/java/com/jomalls/custom/app/service/impl/product/CustomProductFactoryPriceIntervalRelServiceImpl.java
+1
-0
custom-server-app/src/main/java/com/jomalls/custom/app/service/product/CustomProductFactoryPriceIntervalRelService.java
+9
-0
custom-server-app/src/main/java/com/jomalls/custom/app/service/product/CustomProductWarehouseRelService.java
+1
-0
No files found.
custom-server-app/src/main/java/com/jomalls/custom/app/service/impl/product/CustomProductFactoryPriceIntervalRelServiceImpl.java
View file @
edb49ea1
...
...
@@ -102,6 +102,7 @@ public class CustomProductFactoryPriceIntervalRelServiceImpl implements CustomPr
* @param productId 产品ID
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
void
saveBatch
(
List
<
CustomProductFactoryPriceIntervalRelEntity
>
data
,
Integer
productId
)
{
customProductFactoryPriceIntervalRelDomainService
.
remove
(
new
LambdaQueryWrapper
<
CustomProductFactoryPriceIntervalRelEntity
>()
.
eq
(
CustomProductFactoryPriceIntervalRelEntity:
:
getProductId
,
productId
));
...
...
custom-server-app/src/main/java/com/jomalls/custom/app/service/product/CustomProductFactoryPriceIntervalRelService.java
View file @
edb49ea1
...
...
@@ -3,6 +3,7 @@ package com.jomalls.custom.app.service.product;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelPageVO
;
import
com.jomalls.custom.app.vo.product.CustomProductFactoryPriceIntervalRelVO
;
import
com.jomalls.custom.dal.entity.product.CustomProductFactoryPriceIntervalRelEntity
;
import
java.util.List
;
...
...
@@ -59,5 +60,13 @@ public interface CustomProductFactoryPriceIntervalRelService {
*/
void
deleteById
(
Integer
id
);
/**
* 批量保存工厂价格区间关联
* 逻辑:先删除该产品下的所有旧数据,再批量插入新数据
* @param data 待保存的数据列表
* @param productId 产品ID
*/
void
saveBatch
(
List
<
CustomProductFactoryPriceIntervalRelEntity
>
data
,
Integer
productId
);
}
custom-server-app/src/main/java/com/jomalls/custom/app/service/product/CustomProductWarehouseRelService.java
View file @
edb49ea1
...
...
@@ -3,6 +3,7 @@ package com.jomalls.custom.app.service.product;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jomalls.custom.app.vo.product.CustomProductWarehouseRelPageVO
;
import
com.jomalls.custom.app.vo.product.CustomProductWarehouseRelVO
;
import
com.jomalls.custom.dal.entity.product.CustomProductWarehouseRelEntity
;
import
java.util.List
;
...
...
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