Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
efea642a
提交
efea642a
authored
7月 16, 2024
作者:
刘海泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增履约进度表相关接口
上级
44036e92
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
99 行增加
和
9 行删除
+99
-9
PerformanceProgressDetailVO.java
...om/clx/performance/vo/pc/PerformanceProgressDetailVO.java
+46
-0
CarrierPerformanceProgressController.java
...ller/pc/carrier/CarrierPerformanceProgressController.java
+4
-3
PerformanceProgressLogDao.java
...va/com/clx/performance/dao/PerformanceProgressLogDao.java
+4
-1
PerformanceProgressLogDaoImpl.java
...x/performance/dao/impl/PerformanceProgressLogDaoImpl.java
+11
-1
PerformanceProgressLog.java
...ava/com/clx/performance/model/PerformanceProgressLog.java
+4
-0
PerformanceProgressService.java
...m/clx/performance/service/PerformanceProgressService.java
+2
-1
PerformanceProgressServiceImpl.java
...formance/service/impl/PerformanceProgressServiceImpl.java
+11
-3
PerformanceProgressLogStruct.java
.../clx/performance/struct/PerformanceProgressLogStruct.java
+14
-0
PerformanceProgressStruct.java
...com/clx/performance/struct/PerformanceProgressStruct.java
+3
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/PerformanceProgressDetailVO.java
0 → 100644
浏览文件 @
efea642a
package
com
.
clx
.
performance
.
vo
.
pc
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.math.BigDecimal
;
/**
* @ClassName UpdatePerformanceProgressParam
* @Description
* @Author kavin
* @Date 2024/7/16 10:29
* @Version 1.0
*/
@Getter
@Setter
public
class
PerformanceProgressDetailVO
{
@ApiModelProperty
(
"id"
)
private
Integer
id
;
@ApiModelProperty
(
"今日预计完成吨数"
)
private
BigDecimal
todayExpectComplete
;
@ApiModelProperty
(
"交易要求到站时间"
)
private
String
tradeRequireArriveStationTime
;
@ApiModelProperty
(
"物流预计到站时间"
)
private
String
transportExpectArriveStationTime
;
@ApiModelProperty
(
"异常备注"
)
private
String
abnormalRemark
;
@ApiModelProperty
(
"履约异常原因"
)
private
String
performanceAbnormalReason
;
@ApiModelProperty
(
"调度备注/跟进措施"
)
private
String
dispatchFollow
;
}
performance-web/src/main/java/com/clx/performance/controller/pc/carrier/CarrierPerformanceProgressController.java
浏览文件 @
efea642a
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
import
com.clx.performance.param.pc.carrier.UpdatePerformanceProgressParam
;
import
com.clx.performance.service.PerformanceProgressService
;
import
com.clx.performance.vo.pc.PerformanceProgressDetailVO
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.msl.common.base.PageData
;
...
...
@@ -65,9 +66,9 @@ public class CarrierPerformanceProgressController {
@ApiOperation
(
value
=
"编辑履约进度"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getPerformanceProgressDetail"
)
public
Result
<
Object
>
getPerformanceProgressDetail
(
@RequestParam
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
performanceProgressService
.
getPerformanceProgressDetail
(
id
);
return
Result
.
ok
();
public
Result
<
PerformanceProgressDetailVO
>
getPerformanceProgressDetail
(
@RequestParam
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
PerformanceProgressDetailVO
vo
=
performanceProgressService
.
getPerformanceProgressDetail
(
id
);
return
Result
.
ok
(
vo
);
}
...
...
performance-web/src/main/java/com/clx/performance/dao/PerformanceProgressLogDao.java
浏览文件 @
efea642a
package
com
.
clx
.
performance
.
dao
;
import
com.msl.common.dao.BaseDao
;
import
com.clx.performance.mapper.PerformanceProgressLogMapper
;
import
com.clx.performance.model.PerformanceProgressLog
;
import
com.msl.common.dao.BaseDao
;
import
java.util.List
;
/**
* @author kavin
...
...
@@ -10,4 +12,5 @@ import com.clx.performance.model.PerformanceProgressLog;
* Time 16:02
*/
public
interface
PerformanceProgressLogDao
extends
BaseDao
<
PerformanceProgressLogMapper
,
PerformanceProgressLog
,
Integer
>
{
List
<
PerformanceProgressLog
>
getOperationLog
(
String
orderNo
);
}
performance-web/src/main/java/com/clx/performance/dao/impl/PerformanceProgressLogDaoImpl.java
浏览文件 @
efea642a
package
com
.
clx
.
performance
.
dao
.
impl
;
import
com.
msl.common.dao.impl.BaseDaoImpl
;
import
com.
baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.clx.performance.dao.PerformanceProgressLogDao
;
import
com.clx.performance.mapper.PerformanceProgressLogMapper
;
import
com.clx.performance.model.PerformanceProgressLog
;
import
com.msl.common.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author kavin
* Date 2024-07-12
...
...
@@ -13,4 +16,11 @@ import org.springframework.stereotype.Repository;
*/
@Repository
public
class
PerformanceProgressLogDaoImpl
extends
BaseDaoImpl
<
PerformanceProgressLogMapper
,
PerformanceProgressLog
,
Integer
>
implements
PerformanceProgressLogDao
{
@Override
public
List
<
PerformanceProgressLog
>
getOperationLog
(
String
orderNo
)
{
LambdaQueryWrapper
<
PerformanceProgressLog
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
PerformanceProgressLog
::
getOrderNo
,
orderNo
);
query
.
orderByDesc
(
PerformanceProgressLog
::
getId
);
return
baseMapper
.
selectList
(
query
);
}
}
performance-web/src/main/java/com/clx/performance/model/PerformanceProgressLog.java
浏览文件 @
efea642a
...
...
@@ -27,6 +27,10 @@ public class PerformanceProgressLog implements HasKey<Integer> {
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
@TableField
(
"order_no"
)
@ApiModelProperty
(
"订单编号"
)
private
String
orderNo
;
@TableField
(
"operate_type"
)
@ApiModelProperty
(
"操作类型"
)
private
Integer
operateType
;
...
...
performance-web/src/main/java/com/clx/performance/service/PerformanceProgressService.java
浏览文件 @
efea642a
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
import
com.clx.performance.param.pc.carrier.UpdatePerformanceProgressParam
;
import
com.clx.performance.vo.pc.PerformanceProgressDetailVO
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
...
...
@@ -24,7 +25,7 @@ public interface PerformanceProgressService {
void
updatePerformanceProgress
(
UpdatePerformanceProgressParam
param
,
Long
userNo
,
String
userName
);
void
getPerformanceProgressDetail
(
Integer
id
);
PerformanceProgressDetailVO
getPerformanceProgressDetail
(
Integer
id
);
List
<
PerformanceProgressOperationLogVO
>
getOperationLog
(
String
orderNo
);
}
performance-web/src/main/java/com/clx/performance/service/impl/PerformanceProgressServiceImpl.java
浏览文件 @
efea642a
...
...
@@ -3,14 +3,18 @@ package com.clx.performance.service.impl;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.performance.dao.PerformanceProgressDao
;
import
com.clx.performance.dao.PerformanceProgressLogDao
;
import
com.clx.performance.enums.OrderEnum
;
import
com.clx.performance.enums.PerformanceProgressEnum
;
import
com.clx.performance.enums.ResultEnum
;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.model.PerformanceProgressLog
;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
import
com.clx.performance.param.pc.carrier.UpdatePerformanceProgressParam
;
import
com.clx.performance.service.PerformanceProgressService
;
import
com.clx.performance.struct.PerformanceProgressLogStruct
;
import
com.clx.performance.struct.PerformanceProgressStruct
;
import
com.clx.performance.vo.pc.PerformanceProgressDetailVO
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.msl.common.base.Optional
;
...
...
@@ -37,6 +41,8 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
private
final
PerformanceProgressDao
performanceProgressDao
;
private
final
PerformanceProgressStruct
performanceProgressStruct
;
private
final
PerformanceProgressLogDao
performanceProgressLogDao
;
private
final
PerformanceProgressLogStruct
performanceProgressLogStruct
;
public
static
List
<
Integer
>
inProcessStatusList
;
...
...
@@ -155,12 +161,14 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
}
@Override
public
void
getPerformanceProgressDetail
(
Integer
id
)
{
public
PerformanceProgressDetailVO
getPerformanceProgressDetail
(
Integer
id
)
{
PerformanceProgress
item
=
performanceProgressDao
.
getEntityByKey
(
id
).
orElseThrow
(
ResultEnum
.
DATA_NOT_FIND
);
return
performanceProgressStruct
.
convert
(
item
);
}
@Override
public
List
<
PerformanceProgressOperationLogVO
>
getOperationLog
(
String
orderNo
)
{
return
null
;
List
<
PerformanceProgressLog
>
list
=
performanceProgressLogDao
.
getOperationLog
(
orderNo
);
return
performanceProgressLogStruct
.
convertList
(
list
);
}
}
performance-web/src/main/java/com/clx/performance/struct/PerformanceProgressLogStruct.java
0 → 100644
浏览文件 @
efea642a
package
com
.
clx
.
performance
.
struct
;
import
com.clx.performance.model.PerformanceProgressLog
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateUtils
;
import
org.mapstruct.Mapper
;
import
java.util.List
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
DateStructUtil
.
class
,
imports
=
{
DateUtils
.
class
})
public
interface
PerformanceProgressLogStruct
{
List
<
PerformanceProgressOperationLogVO
>
convertList
(
List
<
PerformanceProgressLog
>
list
);
}
performance-web/src/main/java/com/clx/performance/struct/PerformanceProgressStruct.java
浏览文件 @
efea642a
package
com
.
clx
.
performance
.
struct
;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.vo.pc.PerformanceProgressDetailVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateUtils
;
...
...
@@ -11,4 +12,6 @@ import java.util.List;
@Mapper
(
componentModel
=
"spring"
,
uses
=
DateStructUtil
.
class
,
imports
=
{
DateUtils
.
class
})
public
interface
PerformanceProgressStruct
{
List
<
PerformanceProgressVO
>
convertList
(
List
<
PerformanceProgress
>
records
);
PerformanceProgressDetailVO
convert
(
PerformanceProgress
item
);
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论