|
@@ -3,6 +3,7 @@ package com.qmth.sop.server.api;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
+import com.qmth.sop.business.bean.params.DeviceDeliveryParam;
|
|
|
import com.qmth.sop.business.bean.params.TBDeviceDeliveryParam;
|
|
|
import com.qmth.sop.business.bean.result.ProjectExchangeResult;
|
|
|
import com.qmth.sop.business.entity.SysUser;
|
|
@@ -71,11 +72,12 @@ public class TBDeviceDeliveryController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = Object.class)})
|
|
|
@OperationLog(logType = LogTypeEnum.UPDATE)
|
|
|
@Transactional
|
|
|
- public Result save(@Valid @ApiParam(value = "设备发货修改信息", required = true) @RequestBody TBDeviceDelivery tbDeviceDelivery, BindingResult bindingResult) throws Exception {
|
|
|
+ public Result save(@Valid @ApiParam(value = "设备发货修改信息", required = true) @RequestBody DeviceDeliveryParam deviceDeliveryParam, BindingResult bindingResult) throws Exception {
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return ResultUtil.error(bindingResult.getAllErrors().get(0).getDefaultMessage());
|
|
|
}
|
|
|
- return ResultUtil.ok(tbDeviceDeliveryService.saveOrUpdate(tbDeviceDelivery));
|
|
|
+ tbDeviceDeliveryService.editDeviceDelivery(deviceDeliveryParam);
|
|
|
+ return ResultUtil.ok();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "设备发货修改接口")
|