提交 e3eef4e3 作者: 刘明祎-运维用途

修改小程序大厅展示订单

上级 f0752fd0
流水线 #7091 已通过 于阶段
in 2 分 55 秒
...@@ -355,4 +355,11 @@ public interface RequirementsDao { ...@@ -355,4 +355,11 @@ public interface RequirementsDao {
Integer selectServiceFlowIdFromAgreePilot(Integer requireId,Integer userAccountId); Integer selectServiceFlowIdFromAgreePilot(Integer requireId,Integer userAccountId);
RequirementsServicePilotInfoDO selectPilotInfoByRequireId(Integer requireId); RequirementsServicePilotInfoDO selectPilotInfoByRequireId(Integer requireId);
/**
* 根据流程id查询订单所处状态
* @param serviceFlowId
* @return {@link String}
*/
String selectOrderStatusByServiceFlowId(Integer serviceFlowId);
} }
...@@ -211,6 +211,7 @@ public class RequirementsInfoDO implements Serializable { ...@@ -211,6 +211,7 @@ public class RequirementsInfoDO implements Serializable {
.updateOrderAmount(this.updateOrderAmount) .updateOrderAmount(this.updateOrderAmount)
.reason(this.reason) .reason(this.reason)
.url(this.url) .url(this.url)
.orderStatus(this.orderStatus)
.afterModificationReason(this.afterModificationReason) .afterModificationReason(this.afterModificationReason)
.afterModificationUrl(this.afterModificationUrl) .afterModificationUrl(this.afterModificationUrl)
.pilotCertificationUserId(this.pilotCertificationUserId) .pilotCertificationUserId(this.pilotCertificationUserId)
......
...@@ -197,7 +197,10 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -197,7 +197,10 @@ public class RequirementsServiceImpl implements RequirementsService {
//远程调用服务一级分类 //远程调用服务一级分类
// List<IndustryTypeDTO> industryTypeDTOS = listIndustry(); // 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 (RequirementsInfoVO requirementsInfoVO : collect) {
for (IndustryTypeDTO industryTypeDTO : industryTypeDTOS) { for (IndustryTypeDTO industryTypeDTO : industryTypeDTOS) {
if (requirementsInfoVO.getServiceId() != null && requirementsInfoVO.getServiceId().equals(industryTypeDTO.getId())) { if (requirementsInfoVO.getServiceId() != null && requirementsInfoVO.getServiceId().equals(industryTypeDTO.getId())) {
...@@ -205,6 +208,7 @@ public class RequirementsServiceImpl implements RequirementsService { ...@@ -205,6 +208,7 @@ public class RequirementsServiceImpl implements RequirementsService {
} }
} }
}*/ }*/
return ResultBody.success(collect); return ResultBody.success(collect);
} }
......
...@@ -1818,6 +1818,9 @@ ...@@ -1818,6 +1818,9 @@
,ra.order_amount DESC ,ra.order_amount DESC
</if> </if>
</select> </select>
<select id="selectOrderStatusByServiceFlowId" resultType="java.lang.String">
select order_status from service_flow where id = #{serviceFlowId}
</select>
<delete id="deleteRequirementsServiceInfo"> <delete id="deleteRequirementsServiceInfo">
delete from requirements_service where requirements_info_id = #{requireId} and pilot_certification_user_id = #{userAccountId} delete from requirements_service where requirements_info_id = #{requireId} and pilot_certification_user_id = #{userAccountId}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论