Commit a2141fda by 刘鑫

DOC: 申请加单为返回单条数据-- 9.26变更

1 parent 008b5b48
...@@ -215,7 +215,7 @@ public class PeaApiController { ...@@ -215,7 +215,7 @@ public class PeaApiController {
* @apiNote 技术员发起申请,根据技术员当前位置和空闲时间段,返回附近的n张尚未分配,且不需要备件的工单,技术员逐条顺序联系客户确认 * @apiNote 技术员发起申请,根据技术员当前位置和空闲时间段,返回附近的n张尚未分配,且不需要备件的工单,技术员逐条顺序联系客户确认
*/ */
@PostMapping("/order/increase/query") @PostMapping("/order/increase/query")
public Result<List<Order>> orderIncrease(@Validated @RequestBody EngineerOrderParam requestParam) { public Result<Order> orderIncrease(@Validated @RequestBody EngineerOrderParam requestParam) {
return Result.success(peaOuterAPIService.orderIncreaseQuery(requestParam.getEngineerCode(), requestParam.getLocation(), return Result.success(peaOuterAPIService.orderIncreaseQuery(requestParam.getEngineerCode(), requestParam.getLocation(),
requestParam.getIdleDuration())); requestParam.getIdleDuration()));
......
...@@ -33,7 +33,7 @@ public interface PeaOuterAPIService { ...@@ -33,7 +33,7 @@ public interface PeaOuterAPIService {
* @param idleDuration 空闲时长 至少空闲多久以上,单位:分钟 * @param idleDuration 空闲时长 至少空闲多久以上,单位:分钟
* @return 不需要的备件且符合条件的多个未分配工单 * @return 不需要的备件且符合条件的多个未分配工单
*/ */
List<Order> orderIncreaseQuery(String engineerCode, Location location, Integer idleDuration); Order orderIncreaseQuery(String engineerCode, Location location, Integer idleDuration);
OrderDTO.AppointResult engineerCode(String engineerCode, LocalDate localDate); OrderDTO.AppointResult engineerCode(String engineerCode, LocalDate localDate);
......
...@@ -59,7 +59,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService { ...@@ -59,7 +59,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
@Override @Override
public List<Order> orderIncreaseQuery(String engineerCode, Location location, Integer idleDuration) { public Order orderIncreaseQuery(String engineerCode, Location location, Integer idleDuration) {
OrderInfoEntity sss = orderInfoDao.findTopBySkillAndAppointmentStatus("标准安装", "INIT"); OrderInfoEntity sss = orderInfoDao.findTopBySkillAndAppointmentStatus("标准安装", "INIT");
...@@ -81,7 +81,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService { ...@@ -81,7 +81,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
orderLocation.setLatitude(Double.parseDouble(sss.getY())); orderLocation.setLatitude(Double.parseDouble(sss.getY()));
order.setLocation(orderLocation); order.setLocation(orderLocation);
return List.of(order); return order;
} }
@Override @Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!