Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
f4ff121e
提交
f4ff121e
authored
11月 09, 2023
作者:
aiqingguo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
车辆层级配置
上级
34ab3c4b
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
4 行删除
+30
-4
CollectLineReportEnum.java
.../clx/performance/enums/collect/CollectLineReportEnum.java
+14
-0
CarrierPageCollectSendAddressReportParam.java
.../pc/carrier/CarrierPageCollectSendAddressReportParam.java
+1
-1
CollectLineReportVO.java
...om/clx/performance/vo/pc/collect/CollectLineReportVO.java
+4
-1
CollectLineReportServiceImpl.java
...ce/service/impl/collect/CollectLineReportServiceImpl.java
+11
-2
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/collect/CollectLineReportEnum.java
浏览文件 @
f4ff121e
...
@@ -59,6 +59,20 @@ public enum CollectLineReportEnum {
...
@@ -59,6 +59,20 @@ public enum CollectLineReportEnum {
}
}
}
}
@Getter
@AllArgsConstructor
public
enum
CoalStatus
{
NO
(
1
,
"否"
),
EXIST
(
2
,
"有存煤"
),
PRODUCTION
(
3
,
"现产现装"
);
private
final
Integer
code
;
private
final
String
msg
;
public
static
Optional
<
CoalStatus
>
getByCode
(
int
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
==
code
).
findFirst
();
}
}
@Getter
@Getter
@AllArgsConstructor
@AllArgsConstructor
public
enum
AuditStatus
{
public
enum
AuditStatus
{
...
...
performance-api/src/main/java/com/clx/performance/param/pc/carrier/CarrierPageCollectSendAddressReportParam.java
浏览文件 @
f4ff121e
...
@@ -18,7 +18,7 @@ public class CarrierPageCollectSendAddressReportParam extends PageParam {
...
@@ -18,7 +18,7 @@ public class CarrierPageCollectSendAddressReportParam extends PageParam {
private
String
mobile
;
private
String
mobile
;
@ApiModelProperty
(
value
=
"车牌号"
,
example
=
""
)
@ApiModelProperty
(
value
=
"车牌号"
,
example
=
""
)
private
String
truckNo
;
private
String
truckNo
;
@ApiModelProperty
(
value
=
"是否可拉运:1
可以拉运 2不可用拉运
"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"是否可拉运:1
否 2有存煤 3现产现装
"
,
example
=
"1"
)
private
Integer
reportStatus
;
private
Integer
reportStatus
;
@ApiModelProperty
(
value
=
"货源地"
,
example
=
""
)
@ApiModelProperty
(
value
=
"货源地"
,
example
=
""
)
private
String
sendAddress
;
private
String
sendAddress
;
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/collect/CollectLineReportVO.java
浏览文件 @
f4ff121e
...
@@ -12,6 +12,7 @@ import org.springframework.util.StringUtils;
...
@@ -12,6 +12,7 @@ import org.springframework.util.StringUtils;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Objects
;
/**
/**
* @Author: aiqinguo
* @Author: aiqinguo
...
@@ -66,7 +67,9 @@ public class CollectLineReportVO {
...
@@ -66,7 +67,9 @@ public class CollectLineReportVO {
@ApiModelProperty
(
value
=
"拉运状态 1: 正常 2:异常"
,
example
=
""
)
@ApiModelProperty
(
value
=
"拉运状态 1: 正常 2:异常"
,
example
=
""
)
private
String
reportStatusMsg
;
private
String
reportStatusMsg
;
public
String
getReportStatusMsg
()
{
public
String
getReportStatusMsg
()
{
return
CollectLineReportEnum
.
ReportStatus
.
getByCode
(
reportStatus
).
get
().
getMsg
();
return
Objects
.
equals
(
CollectLineReportEnum
.
ReportType
.
SEND_ADDRESS
.
getCode
(),
reportType
)?
CollectLineReportEnum
.
CoalStatus
.
getByCode
(
reportStatus
).
get
().
getMsg
()
:
CollectLineReportEnum
.
ReportStatus
.
getByCode
(
reportStatus
).
get
().
getMsg
();
}
}
@ApiModelProperty
(
value
=
"状态描述"
,
example
=
""
)
@ApiModelProperty
(
value
=
"状态描述"
,
example
=
""
)
...
...
performance-web/src/main/java/com/clx/performance/service/impl/collect/CollectLineReportServiceImpl.java
浏览文件 @
f4ff121e
...
@@ -65,8 +65,17 @@ public class CollectLineReportServiceImpl implements CollectLineReportService {
...
@@ -65,8 +65,17 @@ public class CollectLineReportServiceImpl implements CollectLineReportService {
collectLineReport
.
setType
(
CollectLineReport
.
Type
.
SEND
.
getCode
());
collectLineReport
.
setType
(
CollectLineReport
.
Type
.
SEND
.
getCode
());
collectLineReport
.
setReportType
(
CollectLineReport
.
ReportType
.
SEND_ADDRESS
.
getCode
());
collectLineReport
.
setReportType
(
CollectLineReport
.
ReportType
.
SEND_ADDRESS
.
getCode
());
collectLineReport
.
setReportStatus
(
param
.
getReportStatus
());
Integer
reportStatus
;
collectLineReport
.
setRemark
(
param
.
getStatus
()==
1
?
"有存煤"
:
"现产现装"
);
if
(
param
.
getReportStatus
()
==
2
){
reportStatus
=
1
;
}
else
{
if
(
param
.
getStatus
()
==
1
){
reportStatus
=
2
;}
else
{
reportStatus
=
3
;}
}
collectLineReport
.
setReportStatus
(
reportStatus
);
collectLineReport
.
setRemark
(
reportStatus
==
1
?
"否"
:
(
reportStatus
==
2
?
"有存煤"
:
"现产现装"
));
collectLineReport
.
setReportTime
(
LocalDateTime
.
now
());
collectLineReport
.
setReportTime
(
LocalDateTime
.
now
());
collectLineReport
.
setCreateTime
(
collectLineReport
.
getReportTime
());
collectLineReport
.
setCreateTime
(
collectLineReport
.
getReportTime
());
collectLineReportDao
.
saveEntity
(
collectLineReport
);
collectLineReportDao
.
saveEntity
(
collectLineReport
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论