Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
465ed44f
提交
465ed44f
authored
10月 18, 2024
作者:
马路路
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
配置中心—配置管理—问卷配置App端接口
上级
a4c1e1d4
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
252 行增加
和
0 行删除
+252
-0
CarrierDriverCollectTransportIntentionRecordVO.java
...llect/CarrierDriverCollectTransportIntentionRecordVO.java
+9
-0
CarrierDriverCollectTransportIntentionVO.java
.../pc/collect/CarrierDriverCollectTransportIntentionVO.java
+51
-0
AppCarrierDriverCollectTransportIntentionController.java
.../AppCarrierDriverCollectTransportIntentionController.java
+38
-0
CollectDriverTransportIntentionDao.java
...mance/dao/collect/CollectDriverTransportIntentionDao.java
+2
-0
DriverTransportIntentionInfoDao.java
...formance/dao/collect/DriverTransportIntentionInfoDao.java
+13
-0
CollectDriverTransportIntentionDaoImpl.java
.../impl/collect/CollectDriverTransportIntentionDaoImpl.java
+12
-0
DriverTransportIntentionInfoDaoImpl.java
...dao/impl/collect/DriverTransportIntentionInfoDaoImpl.java
+16
-0
DriverTransportIntentionInfoMapper.java
...ce/mapper/collect/DriverTransportIntentionInfoMapper.java
+12
-0
DriverTransportIntentionInfo.java
...rformance/model/collect/DriverTransportIntentionInfo.java
+58
-0
CollectDriverTransportIntentionService.java
...rvice/collect/CollectDriverTransportIntentionService.java
+2
-0
DriverTransportIntentionInfoService.java
.../service/collect/DriverTransportIntentionInfoService.java
+9
-0
CollectDriverTransportIntentionServiceImpl.java
...l/collect/CollectDriverTransportIntentionServiceImpl.java
+15
-0
DriverTransportIntentionInfoServiceImpl.java
...impl/collect/DriverTransportIntentionInfoServiceImpl.java
+15
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/collect/CarrierDriverCollectTransportIntentionRecordVO.java
浏览文件 @
465ed44f
...
...
@@ -2,9 +2,18 @@ package com.clx.performance.vo.pc.collect;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
import
java.time.LocalDateTime
;
@Schema
(
description
=
"收集司机拉运意向选项"
)
@Getter
@Setter
@ToString
@NoArgsConstructor
public
class
CarrierDriverCollectTransportIntentionRecordVO
{
private
Integer
id
;
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/collect/CarrierDriverCollectTransportIntentionVO.java
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
vo
.
pc
.
collect
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@Schema
(
description
=
"收集司机拉运意向问题"
)
@Getter
@Setter
@ToString
@NoArgsConstructor
public
class
CarrierDriverCollectTransportIntentionVO
{
private
Integer
id
;
@Schema
(
description
=
"排序编号"
)
private
Integer
sortNo
;
@Schema
(
description
=
"问题名称"
)
private
String
collectName
;
@Schema
(
description
=
"问题描述"
)
private
String
collectDescribe
;
@Schema
(
description
=
"状态:1单选 2多选"
)
private
Integer
collectCheckType
;
@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
<
CarrierDriverCollectTransportIntentionRecordVO
>
collectIntentionRecordList
;
}
performance-web/src/main/java/com/clx/performance/controller/app/collect/AppCarrierDriverCollectTransportIntentionController.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
controller
.
app
.
collect
;
import
com.clx.performance.param.app.collect.CarrierDriverCollectTransportIntentionParam
;
import
com.clx.performance.service.collect.CollectDriverTransportIntentionService
;
import
com.clx.performance.service.collect.DriverTransportIntentionInfoService
;
import
com.clx.performance.vo.pc.collect.CarrierDriverCollectTransportIntentionVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.result.Result
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
@Slf4j
@RestController
@RequestMapping
(
value
=
"/app/collect/intention"
)
@Validated
@Tag
(
name
=
"承运司机端-拉运意愿"
)
@AllArgsConstructor
public
class
AppCarrierDriverCollectTransportIntentionController
{
private
final
DriverTransportIntentionInfoService
driverTransportIntentionInfoService
;
private
final
CollectDriverTransportIntentionService
collectDriverTransportIntentionService
;
@Operation
(
summary
=
"获取已配置的拉运意愿列表"
,
description
=
"<br>By:马路路"
)
@PostMapping
(
"/getList"
)
Result
<
PageData
<
CarrierDriverCollectTransportIntentionVO
>>
getList
(
@RequestBody
CarrierDriverCollectTransportIntentionParam
param
)
{
return
Result
.
ok
();
}
@Operation
(
summary
=
"保存已勾选拉运意愿"
,
description
=
"<br>By:马路路"
)
@PostMapping
(
"/getList"
)
Result
<
PageData
<
CarrierDriverCollectTransportIntentionVO
>>
saveCheckedList
(
@RequestBody
CarrierDriverCollectTransportIntentionParam
param
)
{
return
Result
.
ok
();
}
}
performance-web/src/main/java/com/clx/performance/dao/collect/CollectDriverTransportIntentionDao.java
浏览文件 @
465ed44f
...
...
@@ -18,4 +18,6 @@ public interface CollectDriverTransportIntentionDao extends BaseDao<CollectDrive
IPage
<
CollectDriverTransportIntention
>
listByCondition
(
CarrierDriverCollectTransportIntentionParam
param
);
List
<
CollectDriverTransportIntention
>
listEnableInfo
();
}
performance-web/src/main/java/com/clx/performance/dao/collect/DriverTransportIntentionInfoDao.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
dao
.
collect
;
import
com.clx.performance.mapper.collect.DriverTransportIntentionInfoMapper
;
import
com.clx.performance.model.collect.DriverTransportIntentionInfo
;
import
com.msl.common.dao.BaseDao
;
/**
* @author kavin
* Date 2024-10-18
* Time 18:03
*/
public
interface
DriverTransportIntentionInfoDao
extends
BaseDao
<
DriverTransportIntentionInfoMapper
,
DriverTransportIntentionInfo
,
Integer
>
{
}
performance-web/src/main/java/com/clx/performance/dao/impl/collect/CollectDriverTransportIntentionDaoImpl.java
浏览文件 @
465ed44f
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
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.enums.collect.CollectDriverTransportIntentionEnum
;
import
com.clx.performance.mapper.collect.CollectDriverTransportIntentionMapper
;
import
com.clx.performance.model.collect.CollectDriverTransportIntention
;
import
com.clx.performance.model.collect.CollectDriverTransportIntentionRecord
;
...
...
@@ -33,4 +34,15 @@ public class CollectDriverTransportIntentionDaoImpl extends BaseDaoImpl<CollectD
query
.
orderByDesc
(
CollectDriverTransportIntention:
:
getId
);
return
baseMapper
.
selectPage
(
Page
.
of
(
param
.
getPage
(),
param
.
getPageSize
()),
query
);
}
@Override
public
List
<
CollectDriverTransportIntention
>
listEnableInfo
()
{
LambdaQueryWrapper
<
CollectDriverTransportIntention
>
query
=
new
LambdaQueryWrapper
<>();
// 启用状态
query
.
eq
(
CollectDriverTransportIntention:
:
getStatus
,
CollectDriverTransportIntentionEnum
.
StatusType
.
STATUS_ENABLE
.
getCode
());
// 按照排序编号降序
query
.
orderByDesc
(
CollectDriverTransportIntention:
:
getSortNo
);
return
baseMapper
.
selectList
(
query
);
}
}
performance-web/src/main/java/com/clx/performance/dao/impl/collect/DriverTransportIntentionInfoDaoImpl.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
dao
.
impl
.
collect
;
import
com.msl.common.dao.impl.BaseDaoImpl
;
import
com.clx.performance.dao.DriverTransportIntentionInfoDao
;
import
com.clx.performance.mapper.DriverTransportIntentionInfoMapper
;
import
com.clx.performance.model.DriverTransportIntentionInfo
;
import
org.springframework.stereotype.Repository
;
/**
* @author kavin
* Date 2024-10-18
* Time 18:03
*/
@Repository
public
class
DriverTransportIntentionInfoDaoImpl
extends
BaseDaoImpl
<
DriverTransportIntentionInfoMapper
,
DriverTransportIntentionInfo
,
Integer
>
implements
DriverTransportIntentionInfoDao
{
}
performance-web/src/main/java/com/clx/performance/mapper/collect/DriverTransportIntentionInfoMapper.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
mapper
.
collect
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.clx.performance.model.collect.DriverTransportIntentionInfo
;
/**
* @author kavin
* Date 2024-10-18
* Time 18:03
*/
public
interface
DriverTransportIntentionInfoMapper
extends
BaseMapper
<
DriverTransportIntentionInfo
>
{
}
performance-web/src/main/java/com/clx/performance/model/collect/DriverTransportIntentionInfo.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
model
.
collect
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.msl.common.config.KeyColumn
;
import
com.msl.common.model.HasKey
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.experimental.Accessors
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
io.swagger.v3.oas.annotations.media.Schema
;
/**
* @author kavin
* Date 2024-10-18
* Time 18:03
*/
@Getter
@Setter
@Accessors
(
chain
=
true
)
@TableName
(
"driver_transport_intention_info"
)
public
class
DriverTransportIntentionInfo
implements
HasKey
<
Integer
>
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
@TableField
(
"create_user_no"
)
@Schema
(
description
=
"操作人编码"
)
private
Long
createUserNo
;
@TableField
(
"create_user_name"
)
@Schema
(
description
=
"操作人"
)
private
String
createUserName
;
@TableField
(
"collect_transport_intention_id"
)
@Schema
(
description
=
"选项排序编号"
)
private
Integer
collectTransportIntentionId
;
@TableField
(
"collect_transport_intention_record_id"
)
@Schema
(
description
=
"选项名称"
)
private
Integer
collectTransportIntentionRecordId
;
@TableField
(
"create_time"
)
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
@TableField
(
"modified_time"
)
@Schema
(
description
=
"修改时间"
)
private
LocalDateTime
modifiedTime
;
@Override
@KeyColumn
(
"id"
)
public
Integer
gainKey
()
{
return
this
.
id
;
}
}
performance-web/src/main/java/com/clx/performance/service/collect/CollectDriverTransportIntentionService.java
浏览文件 @
465ed44f
...
...
@@ -24,4 +24,6 @@ public interface CollectDriverTransportIntentionService {
IPage
<
CarrierDriverCollectTransportIntentionVO
>
listCarrierDriverCollectTransportIntention
(
CarrierDriverCollectTransportIntentionParam
param
);
List
<
CarrierDriverCollectTransportIntentionRecordVO
>
detailCarrierDriverCollectTransportIntention
(
Integer
param
);
IPage
<
CarrierDriverCollectTransportIntentionVO
>
listCarrierDriverCollectTransportIntentionAll
();
}
performance-web/src/main/java/com/clx/performance/service/collect/DriverTransportIntentionInfoService.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
service
.
collect
;
/**
* @author kavin
* Date 2024-10-18
* Time 18:03
*/
public
interface
DriverTransportIntentionInfoService
{
}
performance-web/src/main/java/com/clx/performance/service/impl/collect/CollectDriverTransportIntentionServiceImpl.java
浏览文件 @
465ed44f
...
...
@@ -25,6 +25,7 @@ import org.springframework.transaction.annotation.Transactional;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* @author kavin
...
...
@@ -166,4 +167,18 @@ public class CollectDriverTransportIntentionServiceImpl implements CollectDriver
List
<
CarrierDriverCollectTransportIntentionRecordVO
>
listVO
=
collectDriverTransportIntentionRecordDaoStruct
.
covertList
(
list
);
return
listVO
;
}
@Override
public
IPage
<
CarrierDriverCollectTransportIntentionVO
>
listCarrierDriverCollectTransportIntentionAll
()
{
// 1.查询所有
List
<
CollectDriverTransportIntention
>
list
=
collectDriverTransportIntentionDao
.
listEnableInfo
();
List
<
CarrierDriverCollectTransportIntentionVO
>
listVO
=
collectDriverTransportIntentionDaoStruct
.
covertList
(
list
);
// 筛选主键id
List
<
Integer
>
ids
=
listVO
.
stream
().
map
(
CarrierDriverCollectTransportIntentionVO:
:
getId
).
toList
();
// 2.关联子表
List
<
CollectDriverTransportIntentionRecord
>
recordList
=
collectDriverTransportIntentionRecordDao
.
listInField
(
CollectDriverTransportIntentionRecord:
:
getCollectDriverTransportIntentionId
,
ids
);
// Todo 遍历主表关联子表
return
null
;
}
}
performance-web/src/main/java/com/clx/performance/service/impl/collect/DriverTransportIntentionInfoServiceImpl.java
0 → 100644
浏览文件 @
465ed44f
package
com
.
clx
.
performance
.
service
.
impl
.
collect
;
import
com.clx.performance.service.collect.DriverTransportIntentionInfoService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* @author kavin
* Date 2024-10-18
* Time 18:03
*/
@Service
@Slf4j
public
class
DriverTransportIntentionInfoServiceImpl
implements
DriverTransportIntentionInfoService
{
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论