提交 18b7c56b 作者: 恶龙咆哮

飞手被拒绝查看详情状态有问题修改

上级 eca53fc2
......@@ -289,4 +289,12 @@ public interface RequirementsDao {
* @return {@link Integer}
*/
Integer updateRequirementsService(Integer requireInfoId,Integer pilotUserId);
/**
* 根据订单id和飞手用户id查询该飞手是被拒绝还是同意
* @param requirementsId 订单id 对应requirement_info表的id
* @param userAccountId 用户的id
* @return {@link Integer} 2 就是同意 11 是拒绝
*/
Integer selectServiceIdByRequireIdAndUserId(Integer requirementsId,Integer userAccountId);
}
......@@ -221,6 +221,12 @@ public class RequirementsServiceImpl implements RequirementsService {
if (requirementsInfoVO.getPublish() == 0) {
requirementsInfoVO.setPublishPhone("");
}
//如果该飞手被拒绝 需要修改当前订单的状态
if(requirementsDao.selectServiceIdByRequireIdAndUserId(id,userAccountId) == 11) {
requirementsInfoVO.setOrderStatus("170");
}
return ResultBody.success(requirementsInfoVO);
}
......@@ -2862,6 +2868,7 @@ public class RequirementsServiceImpl implements RequirementsService {
}
// TODO 一人订单被拒绝也不能再次抢单
//飞手
PilotCertificationInteriorDTO pilot = feignInteriorDetailPilot(grabTheOrderVO.getUserAccountId(), request);
if (pilot == null) {
......
......@@ -1680,4 +1680,9 @@
insert into agree_pilot_order(require_info_id, service_flow_id, pilot_certification_user_id, create_time)
values(#{requireInfoId},#{serviceFlowId},#{pilotCertificationUserId},NOW())
</insert>
<select id="selectServiceIdByRequireIdAndUserId" resultType="java.lang.Integer">
select service_flow_id from agree_pilot_order
where require_info_id = #{requirementsId} and pilot_certification_user_id = #{userAccountId}
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论