Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
8c0f4b67
提交
8c0f4b67
authored
11月 20, 2023
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
1c4e4eb5
de6f5ef7
流水线
#7093
已通过 于阶段
in 3 分 6 秒
变更
6
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
83 行增加
和
3 行删除
+83
-3
RequirementsInfoVO.java
...in/java/com/mmc/csf/infomation/vo/RequirementsInfoVO.java
+4
-0
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
RequirementsDao.java
...rc/main/java/com/mmc/csf/release/dao/RequirementsDao.java
+21
-0
RequirementsInfoDO.java
...c/csf/release/entity/requirements/RequirementsInfoDO.java
+2
-0
RequirementsServiceImpl.java
...mmc/csf/release/service/impl/RequirementsServiceImpl.java
+6
-2
RequirementsDao.xml
...rc/main/resources/mapper/requirements/RequirementsDao.xml
+49
-0
没有找到文件。
csf-common/csf-common-model/src/main/java/com/mmc/csf/infomation/vo/RequirementsInfoVO.java
浏览文件 @
8c0f4b67
...
...
@@ -64,6 +64,10 @@ public class RequirementsInfoVO implements Serializable {
@ApiModelProperty
(
value
=
"任务纬度"
,
example
=
"44.344324"
)
private
Double
latitude
;
@ApiModelProperty
(
value
=
"当前订单状态"
)
private
Integer
serviceFlowId
;
@ApiModelProperty
(
value
=
"订单的父订单id"
)
private
Integer
fatherRequireId
;
...
...
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
8c0f4b67
...
...
@@ -18,4 +18,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newTag
:
95b8d8b1a18f2bef7f33b593eb6a595f51c9d735
newTag
:
e3eef4e3db93af56ce838d17bace47d371ff8afe
release-service/src/main/java/com/mmc/csf/release/dao/RequirementsDao.java
浏览文件 @
8c0f4b67
...
...
@@ -79,8 +79,22 @@ public interface RequirementsDao {
void
requirementsDao
(
Integer
id
);
/**
* 取消的订单或者被抢完的订单就不展示
* @param requirementsInfoQO 排序条件
* @return {@link List}<{@link RequirementsInfoDO}>
*/
List
<
RequirementsInfoDO
>
appPublishList
(
RequirementsInfoQO
requirementsInfoQO
);
/**
* 所有的订单全部查出来展示到小程序上,后续运营起来请用上面的
* @param requirementsInfoQO 排序条件
* @return {@link List}<{@link RequirementsInfoDO}>
*/
List
<
RequirementsInfoDO
>
appPublishList1
(
RequirementsInfoQO
requirementsInfoQO
);
RequirementsInfoDO
detailPublish
(
Integer
id
);
/**
...
...
@@ -341,4 +355,11 @@ public interface RequirementsDao {
Integer
selectServiceFlowIdFromAgreePilot
(
Integer
requireId
,
Integer
userAccountId
);
RequirementsServicePilotInfoDO
selectPilotInfoByRequireId
(
Integer
requireId
);
/**
* 根据流程id查询订单所处状态
* @param serviceFlowId
* @return {@link String}
*/
String
selectOrderStatusByServiceFlowId
(
Integer
serviceFlowId
);
}
release-service/src/main/java/com/mmc/csf/release/entity/requirements/RequirementsInfoDO.java
浏览文件 @
8c0f4b67
...
...
@@ -211,6 +211,7 @@ public class RequirementsInfoDO implements Serializable {
.
updateOrderAmount
(
this
.
updateOrderAmount
)
.
reason
(
this
.
reason
)
.
url
(
this
.
url
)
.
orderStatus
(
this
.
orderStatus
)
.
afterModificationReason
(
this
.
afterModificationReason
)
.
afterModificationUrl
(
this
.
afterModificationUrl
)
.
pilotCertificationUserId
(
this
.
pilotCertificationUserId
)
...
...
@@ -219,6 +220,7 @@ public class RequirementsInfoDO implements Serializable {
.
createTime
(
this
.
createTime
)
.
repertory
(
this
.
repertory
)
.
requireNum
(
this
.
requireNum
)
.
serviceFlowId
(
this
.
serviceFlowId
)
.
build
();
}
...
...
release-service/src/main/java/com/mmc/csf/release/service/impl/RequirementsServiceImpl.java
浏览文件 @
8c0f4b67
...
...
@@ -173,7 +173,7 @@ public class RequirementsServiceImpl implements RequirementsService {
@Override
public
ResultBody
appPublishList
(
RequirementsInfoQO
requirementsInfoQO
)
{
List
<
RequirementsInfoDO
>
requirementsInfoDOS
=
requirementsDao
.
appPublishList
(
requirementsInfoQO
);
List
<
RequirementsInfoDO
>
requirementsInfoDOS
=
requirementsDao
.
appPublishList
1
(
requirementsInfoQO
);
Integer
provinceCode
=
requirementsInfoQO
.
getProvinceCode
();
if
(
provinceCode
!=
null
)
{
Integer
districtCode
=
requirementsInfoQO
.
getDistrictCode
();
...
...
@@ -197,7 +197,10 @@ public class RequirementsServiceImpl implements RequirementsService {
//远程调用服务一级分类
// List<IndustryTypeDTO> industryTypeDTOS = listIndustry();
List
<
RequirementsInfoVO
>
collect
=
requirementsInfoDOS
.
stream
().
map
(
RequirementsInfoDO:
:
buildRequirementsInfoVO
).
collect
(
Collectors
.
toList
());
List
<
RequirementsInfoVO
>
collect
=
requirementsInfoDOS
.
stream
().
map
(
requirementsInfoDO
->
{
requirementsInfoDO
.
setOrderStatus
(
requirementsDao
.
selectOrderStatusByServiceFlowId
(
requirementsInfoDO
.
getServiceFlowId
()));
return
requirementsInfoDO
;
}).
map
(
RequirementsInfoDO:
:
buildRequirementsInfoVO
).
collect
(
Collectors
.
toList
());
/* for (RequirementsInfoVO requirementsInfoVO : collect) {
for (IndustryTypeDTO industryTypeDTO : industryTypeDTOS) {
if (requirementsInfoVO.getServiceId() != null && requirementsInfoVO.getServiceId().equals(industryTypeDTO.getId())) {
...
...
@@ -205,6 +208,7 @@ public class RequirementsServiceImpl implements RequirementsService {
}
}
}*/
return
ResultBody
.
success
(
collect
);
}
...
...
release-service/src/main/resources/mapper/requirements/RequirementsDao.xml
浏览文件 @
8c0f4b67
...
...
@@ -1773,6 +1773,55 @@
,ra.order_amount DESC
</if>
</select>
<select
id=
"appPublishList1"
resultType=
"com.mmc.csf.release.entity.requirements.RequirementsInfoDO"
>
SELECT ri.id,
ri.task_title,
ri.task_start_time,
ri.task_end_time,
ri.task_address,
ri.longitude,
ri.latitude,
ri.require_url,
ri.require_description,
ri.requirement_type_id,
ri.user_account_id,
ra.order_level,
ri.service_id,
ra.total_amount,
ra.order_amount,
ra.update_order_amount,
ri.insurance,
ri.publish,
ri.service_name,
ri.create_time,
ri.repertory,
ri.require_num,
ri.province_code,
ri.city_code,
ri.district_code,
ri.service_flow_id
FROM requirements_info ri
left join requirements_amount ra
on ra.requirements_info_id = ri.id and ri.user_account_id = ra.user_account_id
WHERE NOT EXISTS(
SELECT rs.requirements_info_id FROM requirements_service rs WHERE ri.id = rs.requirements_info_id)
AND father_require_id = 0
<if
test=
"provinceCode != null"
>
and ri.province_code = #{provinceCode}
</if>
ORDER BY ri.order_level_amount DESC
<if
test=
"isNewRequirements != null and isNewRequirements"
>
,ri.id DESC
</if>
<if
test=
"isHighCommission != null and isHighCommission"
>
,ra.order_amount DESC
</if>
</select>
<select
id=
"selectOrderStatusByServiceFlowId"
resultType=
"java.lang.String"
>
select order_status from service_flow where id = #{serviceFlowId}
</select>
<delete
id=
"deleteRequirementsServiceInfo"
>
delete from requirements_service where requirements_info_id = #{requireId} and pilot_certification_user_id = #{userAccountId}
</delete>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论