Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-module-operation
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-module-operation
Commits
444ead24
提交
444ead24
authored
9月 18, 2025
作者:
000516
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
档期计划分页查询、计划
上级
7866e345
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
181 行增加
和
3 行删除
+181
-3
ApPromotionCoreController.java
...tion/controller/sales/core/ApPromotionCoreController.java
+7
-3
ISalesApPromotionDao.java
.../sfa/operation/domain/sales/dao/ISalesApPromotionDao.java
+3
-0
SalesApPromotionImplDao.java
...ration/domain/sales/dao/impl/SalesApPromotionImplDao.java
+10
-0
SalesApRequest.java
.../com/sfa/operation/pojo/sales/request/SalesApRequest.java
+68
-0
SalesApPromotionDto.java
...fa/operation/pojo/sales/response/SalesApPromotionDto.java
+76
-0
IApPromotionCoreService.java
.../sfa/operation/service/sales/IApPromotionCoreService.java
+3
-0
ApPromotionCoreServiceImpl.java
...ration/service/sales/impl/ApPromotionCoreServiceImpl.java
+14
-0
没有找到文件。
src/main/java/com/sfa/operation/controller/sales/core/ApPromotionCoreController.java
浏览文件 @
444ead24
package
com
.
sfa
.
operation
.
controller
.
sales
.
core
;
package
com
.
sfa
.
operation
.
controller
.
sales
.
core
;
import
com.sfa.operation.pojo.sales.request.SalesApRequest
;
import
com.sfa.operation.service.sales.IApPromotionCoreService
;
import
com.sfa.operation.service.sales.IApPromotionCoreService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* @author : liqiulin
* @author : liqiulin
...
@@ -15,5 +15,9 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -15,5 +15,9 @@ import org.springframework.web.bind.annotation.RestController;
public
class
ApPromotionCoreController
{
public
class
ApPromotionCoreController
{
@Autowired
@Autowired
private
IApPromotionCoreService
apPromotionCoreService
;
private
IApPromotionCoreService
apPromotionCoreService
;
@PutMapping
(
"/{id}"
)
public
void
putDetail
(
@PathVariable
(
"id"
)
Long
sapId
,
@RequestBody
SalesApRequest
request
){
request
.
setSapId
(
sapId
);
apPromotionCoreService
.
updateDetail
(
request
);
}
}
}
src/main/java/com/sfa/operation/domain/sales/dao/ISalesApPromotionDao.java
浏览文件 @
444ead24
...
@@ -2,6 +2,7 @@ package com.sfa.operation.domain.sales.dao;
...
@@ -2,6 +2,7 @@ package com.sfa.operation.domain.sales.dao;
import
com.sfa.common.core.web.domain.PageInfo
;
import
com.sfa.common.core.web.domain.PageInfo
;
import
com.sfa.operation.domain.sales.wq.SalesApWq
;
import
com.sfa.operation.domain.sales.wq.SalesApWq
;
import
com.sfa.operation.pojo.sales.response.SalesApPromotionDto
;
/**
/**
* @author : liqiulin
* @author : liqiulin
...
@@ -10,4 +11,6 @@ import com.sfa.operation.domain.sales.wq.SalesApWq;
...
@@ -10,4 +11,6 @@ import com.sfa.operation.domain.sales.wq.SalesApWq;
*/
*/
public
interface
ISalesApPromotionDao
{
public
interface
ISalesApPromotionDao
{
PageInfo
page
(
SalesApWq
salesApWq
);
PageInfo
page
(
SalesApWq
salesApWq
);
void
updateById
(
SalesApPromotionDto
dto
);
}
}
src/main/java/com/sfa/operation/domain/sales/dao/impl/SalesApPromotionImplDao.java
浏览文件 @
444ead24
...
@@ -10,6 +10,8 @@ import com.sfa.operation.domain.sales.dao.ISalesApPromotionDao;
...
@@ -10,6 +10,8 @@ import com.sfa.operation.domain.sales.dao.ISalesApPromotionDao;
import
com.sfa.operation.domain.sales.entity.SalesApPromotion
;
import
com.sfa.operation.domain.sales.entity.SalesApPromotion
;
import
com.sfa.operation.domain.sales.mapper.SalesApPromotionMapper
;
import
com.sfa.operation.domain.sales.mapper.SalesApPromotionMapper
;
import
com.sfa.operation.domain.sales.wq.SalesApWq
;
import
com.sfa.operation.domain.sales.wq.SalesApWq
;
import
com.sfa.operation.pojo.sales.response.SalesApPromotionDto
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -33,6 +35,14 @@ public class SalesApPromotionImplDao implements ISalesApPromotionDao {
...
@@ -33,6 +35,14 @@ public class SalesApPromotionImplDao implements ISalesApPromotionDao {
PageInfo
pageInfo
=
new
PageInfo
(
salesApDisplayPage
);
PageInfo
pageInfo
=
new
PageInfo
(
salesApDisplayPage
);
return
pageInfo
;
return
pageInfo
;
}
}
@Override
public
void
updateById
(
SalesApPromotionDto
dto
)
{
SalesApPromotion
salesApPromotion
=
new
SalesApPromotion
();
BeanUtils
.
copyProperties
(
dto
,
salesApPromotion
);
salesApPromotionMapper
.
updateById
(
salesApPromotion
);
}
private
LambdaQueryWrapper
<
SalesApPromotion
>
buildWq
(
SalesApWq
salesApWq
)
{
private
LambdaQueryWrapper
<
SalesApPromotion
>
buildWq
(
SalesApWq
salesApWq
)
{
LambdaQueryWrapper
<
SalesApPromotion
>
qw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SalesApPromotion
>
qw
=
new
LambdaQueryWrapper
<>();
if
(
StringUtils
.
isNotBlank
(
salesApWq
.
getDealerCode
()))
{
if
(
StringUtils
.
isNotBlank
(
salesApWq
.
getDealerCode
()))
{
...
...
src/main/java/com/sfa/operation/pojo/sales/request/SalesApRequest.java
浏览文件 @
444ead24
...
@@ -2,6 +2,9 @@ package com.sfa.operation.pojo.sales.request;
...
@@ -2,6 +2,9 @@ package com.sfa.operation.pojo.sales.request;
import
lombok.Data
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
/**
* @author : liqiulin
* @author : liqiulin
* @date : 2025-09-16 14
* @date : 2025-09-16 14
...
@@ -14,8 +17,10 @@ public class SalesApRequest {
...
@@ -14,8 +17,10 @@ public class SalesApRequest {
private
String
cityManager
;
private
String
cityManager
;
private
Long
sadId
;
private
Long
sadId
;
private
Long
sapId
;
private
Display
display
;
private
Display
display
;
private
Promotion
promotion
;
@Data
@Data
public
static
class
Display
{
public
static
class
Display
{
...
@@ -82,6 +87,69 @@ public class SalesApRequest {
...
@@ -82,6 +87,69 @@ public class SalesApRequest {
*/
*/
private
String
regularDisplayExecuted
;
private
String
regularDisplayExecuted
;
}
}
@Data
public
static
class
Promotion
{
/**
* 档期执行-促销规格
*/
private
String
actualPromotionSpec
;
/**
* 档期执行-促销口味
*/
private
String
actualPromotionFlavor
;
/**
* 档期规格是否执行
*/
private
String
specExecutionStatus
;
/**
* 实际-档期开始时间
*/
private
Date
actualPromotionStartDate
;
/**
* 计划-档期结束时间
*/
private
Date
plannedPromotionEndDate
;
/**
* 档期是否开展
*/
private
String
promotionImplementationStatus
;
/**
* 时间是否执行
*/
private
String
timeExecutionStatus
;
/**
* 实际促销机制
*/
private
String
actualPromotionMechanism
;
/**
* 促销机制是否执行
*/
private
String
promotionMechanismExecutionStatus
;
/**
* 档期备货量(袋)
*/
private
Integer
promotionStockQuantity
;
/**
* 实际促销售价(单包)
*/
private
BigDecimal
actualPromotionPrice
;
/**
* 促销价是否执行
*/
private
String
promotionPriceExecutionStatus
;
/**
* 档期是否执行
*/
private
String
promotionExecutionStatus
;
/**
* 实际-海报形式
*/
private
String
actualPosterFormat
;
/**
* 海报是否执行
*/
private
String
posterExecutionStatus
;
}
}
}
...
...
src/main/java/com/sfa/operation/pojo/sales/response/SalesApPromotionDto.java
0 → 100644
浏览文件 @
444ead24
package
com
.
sfa
.
operation
.
pojo
.
sales
.
response
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @author : liqiulin
* @date : 2025-09-17 18
* @describe :
*/
@Data
public
class
SalesApPromotionDto
{
private
Long
sapId
;
/**
* 档期执行-促销规格
*/
private
String
actualPromotionSpec
;
/**
* 档期执行-促销口味
*/
private
String
actualPromotionFlavor
;
/**
* 档期规格是否执行
*/
private
String
specExecutionStatus
;
/**
* 实际-档期开始时间
*/
private
Date
actualPromotionStartDate
;
/**
* 计划-档期结束时间
*/
private
Date
plannedPromotionEndDate
;
/**
* 档期是否开展
*/
private
String
promotionImplementationStatus
;
/**
* 时间是否执行
*/
private
String
timeExecutionStatus
;
/**
* 实际促销机制
*/
private
String
actualPromotionMechanism
;
/**
* 促销机制是否执行
*/
private
String
promotionMechanismExecutionStatus
;
/**
* 档期备货量(袋)
*/
private
Integer
promotionStockQuantity
;
/**
* 实际促销售价(单包)
*/
private
BigDecimal
actualPromotionPrice
;
/**
* 促销价是否执行
*/
private
String
promotionPriceExecutionStatus
;
/**
* 档期是否执行
*/
private
String
promotionExecutionStatus
;
/**
* 实际-海报形式
*/
private
String
actualPosterFormat
;
/**
* 海报是否执行
*/
private
String
posterExecutionStatus
;
}
src/main/java/com/sfa/operation/service/sales/IApPromotionCoreService.java
浏览文件 @
444ead24
package
com
.
sfa
.
operation
.
service
.
sales
;
package
com
.
sfa
.
operation
.
service
.
sales
;
import
com.sfa.operation.pojo.sales.request.SalesApRequest
;
/**
/**
* @author : liqiulin
* @author : liqiulin
* @date : 2025-09-17 15
* @date : 2025-09-17 15
* @describe :
* @describe :
*/
*/
public
interface
IApPromotionCoreService
{
public
interface
IApPromotionCoreService
{
void
updateDetail
(
SalesApRequest
request
);
}
}
src/main/java/com/sfa/operation/service/sales/impl/ApPromotionCoreServiceImpl.java
浏览文件 @
444ead24
package
com
.
sfa
.
operation
.
service
.
sales
.
impl
;
package
com
.
sfa
.
operation
.
service
.
sales
.
impl
;
import
com.sfa.operation.domain.sales.dao.ISalesApPromotionDao
;
import
com.sfa.operation.pojo.sales.request.SalesApRequest
;
import
com.sfa.operation.pojo.sales.response.SalesApPromotionDto
;
import
com.sfa.operation.service.sales.IApPromotionCoreService
;
import
com.sfa.operation.service.sales.IApPromotionCoreService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
/**
/**
...
@@ -10,4 +15,13 @@ import org.springframework.stereotype.Service;
...
@@ -10,4 +15,13 @@ import org.springframework.stereotype.Service;
*/
*/
@Service
@Service
public
class
ApPromotionCoreServiceImpl
implements
IApPromotionCoreService
{
public
class
ApPromotionCoreServiceImpl
implements
IApPromotionCoreService
{
@Autowired
private
ISalesApPromotionDao
salesApPromotionDao
;
@Override
public
void
updateDetail
(
SalesApRequest
request
)
{
SalesApPromotionDto
dto
=
new
SalesApPromotionDto
();
BeanUtils
.
copyProperties
(
request
.
getPromotion
(),
dto
);
dto
.
setSapId
(
request
.
getSapId
());
salesApPromotionDao
.
updateById
(
dto
);
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论