|
|
@@ -375,7 +375,7 @@ public class AppTbIndentController {
|
|
|
@Login
|
|
|
@ApiOperation("批量转单")
|
|
|
@PostMapping("/transferOfOrders")
|
|
|
- public Result transferOfOrders(@RequestAttribute Long userId, @Valid RiderTransferOrdersDTO transferOrderDTO) {
|
|
|
+ public Result transferOfOrders(@RequestAttribute Long userId, @RequestBody RiderTransferOrdersDTO transferOrderDTO) {
|
|
|
if (userId.equals(transferOrderDTO.getRiderId())) {
|
|
|
throw new SqxException("不能转单给自己!");
|
|
|
}
|
|
|
@@ -401,7 +401,7 @@ public class AppTbIndentController {
|
|
|
data.setIsRider(1);
|
|
|
}
|
|
|
|
|
|
- boolean transferOrders = tbIndentService.saveBatch(datas);
|
|
|
+ boolean transferOrders = tbIndentService.updateBatchById(datas);
|
|
|
if(transferOrders){
|
|
|
String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
|
|
List<TransferRecordEntity> trs = new ArrayList<>();
|