Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
23ebe719
提交
23ebe719
authored
10月 21, 2024
作者:
马路路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
配置中心—配置管理—问卷配置WEB端接口--启用/禁用接口更新
上级
7d324914
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
131 行增加
和
17 行删除
+131
-17
CarrierDriverCollectTransportIntentionController.java
...ect/CarrierDriverCollectTransportIntentionController.java
+3
-6
CollectDriverTransportIntentionService.java
...rvice/collect/CollectDriverTransportIntentionService.java
+2
-2
CollectDriverTransportIntentionServiceImpl.java
...l/collect/CollectDriverTransportIntentionServiceImpl.java
+6
-7
CarrierDriverCollectTransportIntentionAddParam.java
...llect/CarrierDriverCollectTransportIntentionAddParam.java
+59
-0
CarrierDriverCollectTransportIntentionDetailParam.java
...ct/CarrierDriverCollectTransportIntentionDetailParam.java
+1
-1
CarrierDriverCollectTransportIntentionEditParam.java
...lect/CarrierDriverCollectTransportIntentionEditParam.java
+59
-0
CarrierDriverCollectTransportIntentionEnableParam.java
...ct/CarrierDriverCollectTransportIntentionEnableParam.java
+1
-1
没有找到文件。
clx-performance-web/src/main/java/com/clx/performance/controller/pc/collect/CarrierDriverCollectTransportIntentionController.java
浏览文件 @
23ebe719
package
com
.
clx
.
performance
.
controller
.
pc
.
collect
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.param.app.collect.CarrierDriverCollectTransportIntentionDetailParam
;
import
com.clx.performance.param.app.collect.CarrierDriverCollectTransportIntentionEnableParam
;
import
com.clx.performance.param.app.collect.CarrierDriverCollectTransportIntentionListParam
;
import
com.clx.performance.param.app.collect.CarrierDriverCollectTransportIntentionParam
;
import
com.clx.performance.param.app.collect.*
;
import
com.clx.performance.service.collect.CollectDriverTransportIntentionService
;
import
com.clx.performance.vo.pc.collect.CarrierDriverCollectTransportIntentionRecordVO
;
import
com.clx.performance.vo.pc.collect.CarrierDriverCollectTransportIntentionVO
;
...
...
@@ -31,14 +28,14 @@ public class CarrierDriverCollectTransportIntentionController {
@Operation
(
summary
=
"新增"
,
description
=
"<br>By:马路路"
)
@PostMapping
(
"/add"
)
public
Result
<
Object
>
saveCarrierDriverCollectTransportIntention
(
@RequestBody
@Validated
CarrierDriverCollectTransportIntentionParam
param
)
{
public
Result
<
Object
>
saveCarrierDriverCollectTransportIntention
(
@RequestBody
@Validated
CarrierDriverCollectTransportIntention
Add
Param
param
)
{
collectDriverTransportIntentionService
.
saveCarrierDriverCollectTransportIntention
(
param
);
return
Result
.
ok
();
}
@Operation
(
summary
=
"编辑更新"
,
description
=
"<br>By:马路路"
)
@PostMapping
(
"/update"
)
public
Result
<
Object
>
updateCarrierDriverCollectTransportIntention
(
@RequestBody
@Validated
CarrierDriverCollectTransportIntentionParam
param
)
{
public
Result
<
Object
>
updateCarrierDriverCollectTransportIntention
(
@RequestBody
@Validated
CarrierDriverCollectTransportIntention
Edit
Param
param
)
{
collectDriverTransportIntentionService
.
updateCarrierDriverCollectTransportIntention
(
param
);
return
Result
.
ok
();
}
...
...
clx-performance-web/src/main/java/com/clx/performance/service/collect/CollectDriverTransportIntentionService.java
浏览文件 @
23ebe719
...
...
@@ -13,9 +13,9 @@ import java.util.List;
* Time 16:26
*/
public
interface
CollectDriverTransportIntentionService
{
Integer
saveCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntentionParam
param
);
Integer
saveCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntention
Add
Param
param
);
Integer
updateCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntentionParam
param
);
Integer
updateCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntention
Edit
Param
param
);
Integer
enableCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntentionEnableParam
param
);
...
...
clx-performance-web/src/main/java/com/clx/performance/service/impl/collect/CollectDriverTransportIntentionServiceImpl.java
浏览文件 @
23ebe719
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.performance.dao.collect.CollectDriverTransportIntentionDao
;
import
com.clx.performance.dao.collect.CollectDriverTransportIntentionRecordDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.ResultEnum
;
import
com.clx.performance.enums.collect.CollectDriverTransportIntentionEnum
;
import
com.clx.performance.model.collect.CollectDriverTransportIntention
;
...
...
@@ -44,11 +45,10 @@ public class CollectDriverTransportIntentionServiceImpl implements CollectDriver
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Integer
saveCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntentionParam
param
)
{
public
Integer
saveCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntention
Add
Param
param
)
{
if
(
Objects
.
isNull
(
param
)
||
param
.
getCollectIntentionRecordList
().
isEmpty
())
{
// Todo 提示信息
return
0
;
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
}
CollectDriverTransportIntention
collectDriverTransportIntention
=
new
CollectDriverTransportIntention
();
...
...
@@ -97,10 +97,9 @@ public class CollectDriverTransportIntentionServiceImpl implements CollectDriver
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Integer
updateCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntentionParam
param
)
{
public
Integer
updateCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntention
Edit
Param
param
)
{
if
(
Objects
.
isNull
(
param
)
||
param
.
getCollectIntentionRecordList
().
isEmpty
())
{
// Todo 提示信息
return
0
;
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
}
// 1.修改主表信息
CollectDriverTransportIntention
updateCollectDriverTransportIntention
=
new
CollectDriverTransportIntention
();
...
...
@@ -150,7 +149,7 @@ public class CollectDriverTransportIntentionServiceImpl implements CollectDriver
// todo
}
Set
<
Integer
>
paramsIds
=
param
.
stream
()
.
map
(
CarrierDriverCollectTransportIntentionDetailParam:
:
get
CollectDriverTransportIntention
Id
)
.
map
(
CarrierDriverCollectTransportIntentionDetailParam:
:
getId
)
.
collect
(
Collectors
.
toSet
());
// 1.删除主表信息
...
...
performance-api/src/main/java/com/clx/performance/param/app/collect/CarrierDriverCollectTransportIntentionAddParam.java
0 → 100644
浏览文件 @
23ebe719
package
com
.
clx
.
performance
.
param
.
app
.
collect
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.constraints.NotBlank
;
import
jakarta.validation.constraints.Size
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@Getter
@Setter
@NoArgsConstructor
public
class
CarrierDriverCollectTransportIntentionAddParam
{
@Schema
(
description
=
"id"
,
example
=
"123"
)
private
Integer
id
;
@Schema
(
description
=
"排序编号"
)
private
Integer
sortNo
;
@Schema
(
description
=
"问题名称"
)
@Size
(
max
=
10
,
message
=
"问题名称长度不能超过10"
)
private
String
collectName
;
@Size
(
max
=
20
,
message
=
"问题描述长度不能超过20"
)
@Schema
(
description
=
"问题描述"
)
private
String
collectDescribe
;
@NotBlank
(
message
=
"选择设置不能为空"
)
@Schema
(
description
=
"状态:1单选 2多选"
)
private
Integer
collectCheckType
;
@NotBlank
(
message
=
"类型:1拉运意向 2拒绝拉运原因,类型不能为空"
)
@Schema
(
description
=
"状态:1拉运意向 2拒绝拉运"
)
private
Integer
collectType
;
@Schema
(
description
=
"操作人编码"
)
private
Long
createUserNo
;
@Schema
(
description
=
"操作人"
)
private
String
createUserName
;
@Schema
(
description
=
"删除状态: 0-否;1-是"
)
private
Integer
deleteStatus
;
@Schema
(
description
=
"状态:1启用 2禁用"
)
private
Integer
status
;
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
@Schema
(
description
=
"修改时间"
)
private
LocalDateTime
modifiedTime
;
@Schema
(
description
=
"选项列表"
)
private
List
<
CarrierDriverCollectTransportIntentionRecordParam
>
collectIntentionRecordList
;
}
performance-api/src/main/java/com/clx/performance/param/app/collect/CarrierDriverCollectTransportIntentionDetailParam.java
浏览文件 @
23ebe719
...
...
@@ -11,5 +11,5 @@ import lombok.Setter;
public
class
CarrierDriverCollectTransportIntentionDetailParam
{
@Schema
(
description
=
"收集司机拉运意向id"
)
private
Integer
collectDriverTransportIntentionI
d
;
private
Integer
i
d
;
}
performance-api/src/main/java/com/clx/performance/param/app/collect/CarrierDriverCollectTransportIntentionEditParam.java
0 → 100644
浏览文件 @
23ebe719
package
com
.
clx
.
performance
.
param
.
app
.
collect
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
jakarta.validation.constraints.NotBlank
;
import
jakarta.validation.constraints.Size
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@Getter
@Setter
@NoArgsConstructor
public
class
CarrierDriverCollectTransportIntentionEditParam
{
@Schema
(
description
=
"id"
,
example
=
"123"
)
private
Integer
id
;
@Schema
(
description
=
"排序编号"
)
private
Integer
sortNo
;
@Schema
(
description
=
"问题名称"
)
@Size
(
max
=
10
,
message
=
"问题名称长度不能超过10"
)
private
String
collectName
;
@Size
(
max
=
20
,
message
=
"问题描述长度不能超过20"
)
@Schema
(
description
=
"问题描述"
)
private
String
collectDescribe
;
@NotBlank
(
message
=
"选择设置不能为空"
)
@Schema
(
description
=
"状态:1单选 2多选"
)
private
Integer
collectCheckType
;
@NotBlank
(
message
=
"类型:1拉运意向 2拒绝拉运原因,类型不能为空"
)
@Schema
(
description
=
"状态:1拉运意向 2拒绝拉运"
)
private
Integer
collectType
;
@Schema
(
description
=
"操作人编码"
)
private
Long
createUserNo
;
@Schema
(
description
=
"操作人"
)
private
String
createUserName
;
@Schema
(
description
=
"删除状态: 0-否;1-是"
)
private
Integer
deleteStatus
;
@Schema
(
description
=
"状态:1启用 2禁用"
)
private
Integer
status
;
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
@Schema
(
description
=
"修改时间"
)
private
LocalDateTime
modifiedTime
;
@Schema
(
description
=
"选项列表"
)
private
List
<
CarrierDriverCollectTransportIntentionRecordParam
>
collectIntentionRecordList
;
}
performance-api/src/main/java/com/clx/performance/param/app/collect/CarrierDriverCollectTransportIntentionEnableParam.java
浏览文件 @
23ebe719
...
...
@@ -9,7 +9,7 @@ import lombok.Setter;
@Setter
@NoArgsConstructor
public
class
CarrierDriverCollectTransportIntentionEnableParam
{
@Schema
(
description
=
"id"
,
example
=
"123"
)
@Schema
(
description
=
"
收集司机拉运意向
id"
,
example
=
"123"
)
private
Integer
id
;
@Schema
(
description
=
"状态:1启用 2禁用"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论