Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
44036e92
提交
44036e92
authored
7月 16, 2024
作者:
刘海泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增履约进度表相关接口
上级
a5e86c2f
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
182 行增加
和
13 行删除
+182
-13
PerformanceProgressEnum.java
...va/com/clx/performance/enums/PerformanceProgressEnum.java
+30
-4
UpdatePerformanceProgressParam.java
...ance/param/pc/carrier/UpdatePerformanceProgressParam.java
+48
-0
PerformanceProgressOperationLogVO.java
.../performance/vo/pc/PerformanceProgressOperationLogVO.java
+30
-0
CarrierPerformanceProgressController.java
...ller/pc/carrier/CarrierPerformanceProgressController.java
+31
-0
PerformanceProgress.java
...n/java/com/clx/performance/model/PerformanceProgress.java
+1
-1
PerformanceProgressLog.java
...ava/com/clx/performance/model/PerformanceProgressLog.java
+12
-3
PerformanceProgressService.java
...m/clx/performance/service/PerformanceProgressService.java
+8
-0
PerformanceProgressServiceImpl.java
...formance/service/impl/PerformanceProgressServiceImpl.java
+22
-5
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/PerformanceProgress
Tab
Enum.java
→
performance-api/src/main/java/com/clx/performance/enums/PerformanceProgressEnum.java
浏览文件 @
44036e92
...
@@ -6,14 +6,14 @@ import lombok.Getter;
...
@@ -6,14 +6,14 @@ import lombok.Getter;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Optional
;
import
java.util.Optional
;
public
enum
PerformanceProgress
Tab
Enum
{
public
enum
PerformanceProgressEnum
{
;
;
//1:进行中的线路(不分页) 2:已结束线路 3:全部线路
//1:进行中的线路(不分页) 2:已结束线路 3:全部线路
@Getter
@Getter
@AllArgsConstructor
@AllArgsConstructor
public
enum
T
ype
{
public
enum
T
ab
{
IN_PROCESS
(
1
,
"进行中的线路"
),
IN_PROCESS
(
1
,
"进行中的线路"
),
...
@@ -26,12 +26,38 @@ public enum PerformanceProgressTabEnum {
...
@@ -26,12 +26,38 @@ public enum PerformanceProgressTabEnum {
private
final
Integer
code
;
private
final
Integer
code
;
private
final
String
name
;
private
final
String
name
;
public
static
Optional
<
T
ype
>
getByCode
(
Integer
code
)
{
public
static
Optional
<
T
ab
>
getByCode
(
Integer
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
.
equals
(
code
)).
findFirst
();
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
.
equals
(
code
)).
findFirst
();
}
}
public
static
String
getMsgByCode
(
int
code
)
{
public
static
String
getMsgByCode
(
int
code
)
{
return
getByCode
(
code
).
map
(
Type:
:
getName
).
orElse
(
null
);
return
getByCode
(
code
).
map
(
Tab:
:
getName
).
orElse
(
null
);
}
}
@Getter
@AllArgsConstructor
public
enum
LogType
{
TODAY_EXPECT_COMPLETE
(
1
,
"今日预计完成吨数"
),
TRADE_REQUIRE_ARRIVE_STATION_TIME
(
2
,
"交易要求到站时间"
),
TRANSPORT_EXPECT_ARRIVE_STATION_TIME
(
3
,
"调度备注/跟进措施"
),
ABNORMAL_REMARK
(
4
,
"异常备注"
),
PERFORMANCE_ABNORMAL_REASON
(
5
,
"履约异常原因"
),
DISPATCH_FOLLOW
(
6
,
"物流预计到站时间"
),
;
private
final
Integer
code
;
private
final
String
name
;
public
static
Optional
<
LogType
>
getByCode
(
Integer
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
.
equals
(
code
)).
findFirst
();
}
public
static
String
getMsgByCode
(
int
code
)
{
return
getByCode
(
code
).
map
(
LogType:
:
getName
).
orElse
(
null
);
}
}
}
}
...
...
performance-api/src/main/java/com/clx/performance/param/pc/carrier/UpdatePerformanceProgressParam.java
0 → 100644
浏览文件 @
44036e92
package
com
.
clx
.
performance
.
param
.
pc
.
carrier
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
/**
* @ClassName UpdatePerformanceProgressParam
* @Description
* @Author kavin
* @Date 2024/7/16 10:29
* @Version 1.0
*/
@Getter
@Setter
public
class
UpdatePerformanceProgressParam
{
@NotNull
(
message
=
"id不能为空"
)
@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-api/src/main/java/com/clx/performance/vo/pc/PerformanceProgressOperationLogVO.java
0 → 100644
浏览文件 @
44036e92
package
com
.
clx
.
performance
.
vo
.
pc
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* @ClassName PerformanceProgressOperationLog
* @Description
* @Author kavin
* @Date 2024/7/16 11:07
* @Version 1.0
*/
@Getter
@Setter
public
class
PerformanceProgressOperationLogVO
{
@ApiModelProperty
(
"操作时间"
)
private
String
createTime
;
@ApiModelProperty
(
"操作人"
)
private
String
createName
;
@ApiModelProperty
(
"操作内容"
)
private
String
operateContent
;
}
performance-web/src/main/java/com/clx/performance/controller/pc/carrier/CarrierPerformanceProgressController.java
浏览文件 @
44036e92
...
@@ -2,11 +2,15 @@ package com.clx.performance.controller.pc.carrier;
...
@@ -2,11 +2,15 @@ package com.clx.performance.controller.pc.carrier;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
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.service.PerformanceProgressService
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
com.msl.user.data.UserSessionData
;
import
com.msl.user.utils.TokenUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -15,6 +19,8 @@ import org.springframework.validation.annotation.Validated;
...
@@ -15,6 +19,8 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Slf4j
@Slf4j
@RestController
@RestController
...
@@ -48,4 +54,29 @@ public class CarrierPerformanceProgressController {
...
@@ -48,4 +54,29 @@ public class CarrierPerformanceProgressController {
}
}
@ApiOperation
(
value
=
"编辑履约进度"
,
notes
=
"<br>By:刘海泉"
)
@PostMapping
(
"/updatePerformanceProgress"
)
public
Result
<
Object
>
updatePerformanceProgress
(
@RequestBody
@Validated
UpdatePerformanceProgressParam
param
)
{
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
performanceProgressService
.
updatePerformanceProgress
(
param
,
loginUserInfo
.
getUserNo
(),
loginUserInfo
.
getUserName
());
return
Result
.
ok
();
}
@ApiOperation
(
value
=
"编辑履约进度"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getPerformanceProgressDetail"
)
public
Result
<
Object
>
getPerformanceProgressDetail
(
@RequestParam
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
performanceProgressService
.
getPerformanceProgressDetail
(
id
);
return
Result
.
ok
();
}
@ApiOperation
(
value
=
"编辑履约进度"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getOperationLog"
)
public
Result
<
List
<
PerformanceProgressOperationLogVO
>>
getOperationLog
(
@RequestParam
(
"orderNo"
)
@NotBlank
(
message
=
"订单编号不能为空"
)
String
orderNo
)
{
List
<
PerformanceProgressOperationLogVO
>
list
=
performanceProgressService
.
getOperationLog
(
orderNo
);
return
Result
.
ok
(
list
);
}
}
}
performance-web/src/main/java/com/clx/performance/model/PerformanceProgress.java
浏览文件 @
44036e92
...
@@ -173,7 +173,7 @@ public class PerformanceProgress implements HasKey<Integer> {
...
@@ -173,7 +173,7 @@ public class PerformanceProgress implements HasKey<Integer> {
private
String
tradeRequireArriveStationTime
;
private
String
tradeRequireArriveStationTime
;
@TableField
(
"transport_expect_arrive_station_time"
)
@TableField
(
"transport_expect_arrive_station_time"
)
@ApiModelProperty
(
"
交易要求
到站时间"
)
@ApiModelProperty
(
"
物流预计
到站时间"
)
private
String
transportExpectArriveStationTime
;
private
String
transportExpectArriveStationTime
;
@TableField
(
"prediction_freight_price"
)
@TableField
(
"prediction_freight_price"
)
...
...
performance-web/src/main/java/com/clx/performance/model/PerformanceProgressLog.java
浏览文件 @
44036e92
package
com
.
clx
.
performance
.
model
;
package
com
.
clx
.
performance
.
model
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.msl.common.config.KeyColumn
;
import
com.msl.common.config.KeyColumn
;
import
com.msl.common.model.HasKey
;
import
com.msl.common.model.HasKey
;
...
@@ -8,10 +10,8 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -8,10 +10,8 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
/**
/**
* @author kavin
* @author kavin
...
@@ -35,6 +35,15 @@ public class PerformanceProgressLog implements HasKey<Integer> {
...
@@ -35,6 +35,15 @@ public class PerformanceProgressLog implements HasKey<Integer> {
@ApiModelProperty
(
"操作内容"
)
@ApiModelProperty
(
"操作内容"
)
private
String
operateContent
;
private
String
operateContent
;
@TableField
(
"create_by"
)
@ApiModelProperty
(
"操作人编号"
)
private
Long
createBy
;
@TableField
(
"create_name"
)
@ApiModelProperty
(
"操作人名称"
)
private
String
createName
;
@TableField
(
"create_time"
)
@TableField
(
"create_time"
)
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
;
...
...
performance-web/src/main/java/com/clx/performance/service/PerformanceProgressService.java
浏览文件 @
44036e92
...
@@ -3,8 +3,12 @@ package com.clx.performance.service;
...
@@ -3,8 +3,12 @@ package com.clx.performance.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
import
com.clx.performance.param.pc.carrier.UpdatePerformanceProgressParam
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
java.util.List
;
/**
/**
* @author kavin
* @author kavin
* Date 2024-07-12
* Date 2024-07-12
...
@@ -18,5 +22,9 @@ public interface PerformanceProgressService {
...
@@ -18,5 +22,9 @@ public interface PerformanceProgressService {
void
saveOrUpdatePerformanceProgress
(
PerformanceProgress
item
);
void
saveOrUpdatePerformanceProgress
(
PerformanceProgress
item
);
void
updatePerformanceProgress
(
UpdatePerformanceProgressParam
param
,
Long
userNo
,
String
userName
);
void
getPerformanceProgressDetail
(
Integer
id
);
List
<
PerformanceProgressOperationLogVO
>
getOperationLog
(
String
orderNo
);
}
}
performance-web/src/main/java/com/clx/performance/service/impl/PerformanceProgressServiceImpl.java
浏览文件 @
44036e92
...
@@ -4,12 +4,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -4,12 +4,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.performance.dao.PerformanceProgressDao
;
import
com.clx.performance.dao.PerformanceProgressDao
;
import
com.clx.performance.enums.OrderEnum
;
import
com.clx.performance.enums.OrderEnum
;
import
com.clx.performance.enums.PerformanceProgress
Tab
Enum
;
import
com.clx.performance.enums.PerformanceProgressEnum
;
import
com.clx.performance.enums.ResultEnum
;
import
com.clx.performance.enums.ResultEnum
;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.model.PerformanceProgress
;
import
com.clx.performance.param.pc.carrier.PagePerformanceProgress
;
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.service.PerformanceProgressService
;
import
com.clx.performance.struct.PerformanceProgressStruct
;
import
com.clx.performance.struct.PerformanceProgressStruct
;
import
com.clx.performance.vo.pc.PerformanceProgressOperationLogVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.msl.common.base.Optional
;
import
com.msl.common.base.Optional
;
import
com.msl.common.exception.ServiceSystemException
;
import
com.msl.common.exception.ServiceSystemException
;
...
@@ -72,15 +74,15 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
...
@@ -72,15 +74,15 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
IPage
<
PerformanceProgressVO
>
returnPage
=
new
Page
<>();
IPage
<
PerformanceProgressVO
>
returnPage
=
new
Page
<>();
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
TabEnum
.
Type
.
IN_PROCESS
.
getCode
())){
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
Enum
.
Tab
.
IN_PROCESS
.
getCode
())){
param
.
setPage
(
1
);
param
.
setPage
(
1
);
param
.
setPageSize
(
10000
);
param
.
setPageSize
(
10000
);
page
=
performanceProgressDao
.
pagePerformanceProgress
(
inProcessStatusList
,
param
);
page
=
performanceProgressDao
.
pagePerformanceProgress
(
inProcessStatusList
,
param
);
}
else
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
TabEnum
.
Type
.
END
.
getCode
())){
}
else
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
Enum
.
Tab
.
END
.
getCode
())){
page
=
performanceProgressDao
.
pagePerformanceProgress
(
endStatusList
,
param
);
page
=
performanceProgressDao
.
pagePerformanceProgress
(
endStatusList
,
param
);
}
else
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
TabEnum
.
Type
.
ALL
.
getCode
())){
}
else
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
Enum
.
Tab
.
ALL
.
getCode
())){
page
=
performanceProgressDao
.
pagePerformanceProgress
(
allStatusList
,
param
);
page
=
performanceProgressDao
.
pagePerformanceProgress
(
allStatusList
,
param
);
}
}
...
@@ -96,7 +98,7 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
...
@@ -96,7 +98,7 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
//如果查询的是 已结束线路,则不需要计算,直接返回
//如果查询的是 已结束线路,则不需要计算,直接返回
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
TabEnum
.
Type
.
END
.
getCode
())){
if
(
Objects
.
equals
(
param
.
getTab
(),
PerformanceProgress
Enum
.
Tab
.
END
.
getCode
())){
return
returnPage
;
return
returnPage
;
}
}
...
@@ -146,4 +148,19 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
...
@@ -146,4 +148,19 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
performanceProgressDao
.
saveEntity
(
item
);
performanceProgressDao
.
saveEntity
(
item
);
}
}
}
}
@Override
public
void
updatePerformanceProgress
(
UpdatePerformanceProgressParam
param
,
Long
userNo
,
String
userName
)
{
}
@Override
public
void
getPerformanceProgressDetail
(
Integer
id
)
{
}
@Override
public
List
<
PerformanceProgressOperationLogVO
>
getOperationLog
(
String
orderNo
)
{
return
null
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论