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 操作结果 * @return 操作结果
*/ */
@PostMapping("batchFinishDispatch") @GetMapping("batchFinishDispatch")
public JsonResult<?> batchFinishDispatch(@RequestBody @Validated EbikeBatchDispatchVo dispatchVo) { public JsonResult<?> batchFinishDispatch(@RequestBody @Validated EbikeBatchDispatchVo dispatchVo) {
ebikeBikeOrderService.batchFinishDispatch(dispatchVo); ebikeBikeOrderService.batchFinishDispatch(dispatchVo);
return JsonResult.success(); return JsonResult.success();

View File

@ -28,8 +28,5 @@ public class DoneInspectionVo {
@NotNull(message = "是否上报故障不能为空") @NotNull(message = "是否上报故障不能为空")
private Boolean isFault; private Boolean isFault;
@NotNull(message = "巡检目标不能为空")
private List<Integer> parts;
private String remarks; 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.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.EbikeEcuInfoTableDef.EBIKE_ECU_INFO;
import static com.cdzy.operations.model.entity.table.EbikeOrderFileTableDef.EBIKE_ORDER_FILE; 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; import static com.cdzy.operations.model.entity.table.EbikeSiteTableDef.EBIKE_SITE;
/** /**
@ -101,6 +102,9 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
@Resource @Resource
private EbikeOrderFileMapper ebikeOrderFileMapper; private EbikeOrderFileMapper ebikeOrderFileMapper;
@Resource
private EbikeOrderPartMapper ebikeOrderPartMapper;
@Resource @Resource
private EbikeDispatchConfigurationMapper ebikeDispatchConfigurationMapper; private EbikeDispatchConfigurationMapper ebikeDispatchConfigurationMapper;
@ -665,8 +669,11 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
queryWrapper.select(EBIKE_ORDER_FILE.FILE_URL) queryWrapper.select(EBIKE_ORDER_FILE.FILE_URL)
.where(EBIKE_ORDER_FILE.ORDER_ID.eq(bikeOrder.getOrderId())); .where(EBIKE_ORDER_FILE.ORDER_ID.eq(bikeOrder.getOrderId()));
List<String> list = ebikeOrderFileMapper.selectListByQueryAs(queryWrapper, String.class); 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() EbikeBikeOrder ebikeBikeOrder = EbikeBikeOrder.builder()
.bikeCode(bikeInfo.getBikeCode()) .bikeCode(bikeInfo.getBikeCode())