Compare commits

..

No commits in common. "689951e79c11dfb510de11ad1f93d36e9884d5c49597887cbcb98a45b80e063f" and "a8b24cf4e345a8ca58605ce4f4112a39d91a3b7b99438bfb79994e5de28f8289" have entirely different histories.

3 changed files with 10 additions and 6 deletions

View File

@ -350,7 +350,7 @@ public class EbikeBikeOrderController {
*
* @return 操作结果
*/
@PostMapping("batchFinishDispatch")
@GetMapping("batchFinishDispatch")
public JsonResult<?> batchFinishDispatch(@RequestBody @Validated EbikeBatchDispatchVo dispatchVo) {
ebikeBikeOrderService.batchFinishDispatch(dispatchVo);
return JsonResult.success();

View File

@ -28,8 +28,5 @@ public class DoneInspectionVo {
@NotNull(message = "是否上报故障不能为空")
private Boolean isFault;
@NotNull(message = "巡检目标不能为空")
private List<Integer> parts;
private String remarks;
}

View File

@ -43,6 +43,7 @@ import static com.cdzy.operations.model.entity.table.EbikeBikeOrderTableDef.EBIK
import static com.cdzy.operations.model.entity.table.EbikeBorrowBatteryRecordTableDef.EBIKE_BORROW_BATTERY_RECORD;
import static com.cdzy.operations.model.entity.table.EbikeEcuInfoTableDef.EBIKE_ECU_INFO;
import static com.cdzy.operations.model.entity.table.EbikeOrderFileTableDef.EBIKE_ORDER_FILE;
import static com.cdzy.operations.model.entity.table.EbikeOrderPartTableDef.EBIKE_ORDER_PART;
import static com.cdzy.operations.model.entity.table.EbikeSiteTableDef.EBIKE_SITE;
/**
@ -101,6 +102,9 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
@Resource
private EbikeOrderFileMapper ebikeOrderFileMapper;
@Resource
private EbikeOrderPartMapper ebikeOrderPartMapper;
@Resource
private EbikeDispatchConfigurationMapper ebikeDispatchConfigurationMapper;
@ -666,7 +670,10 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
.where(EBIKE_ORDER_FILE.ORDER_ID.eq(bikeOrder.getOrderId()));
List<String> list = ebikeOrderFileMapper.selectListByQueryAs(queryWrapper, String.class);
List<Integer> parts = inspectionVo.getParts();
queryWrapper.clear();
queryWrapper.select(EBIKE_ORDER_PART.ORDER_PART)
.where(EBIKE_ORDER_PART.ORDER_ID.eq(bikeOrder.getOrderId()));
List<Integer> parts = ebikeOrderPartMapper.selectListByQueryAs(queryWrapper, Integer.class);
EbikeBikeOrder ebikeBikeOrder = EbikeBikeOrder.builder()
.bikeCode(bikeInfo.getBikeCode())