|
@@ -1209,7 +1209,7 @@ public class BilletOriginalProductRecordController extends JeecgController<Bille
|
|
|
@ApiOperation(value="修改部分质检信息", notes="修改部分质检信息")
|
|
|
@PutMapping(value = "/updateInfo")
|
|
|
public Result<String> updateInfo(@RequestBody BilletOriginalProductRecordEditDTO editDTO) {
|
|
|
- BilletOriginalProductRecord byId = billetOriginalProductRecordService.getById(editDTO.getOriginalProductRecordId());
|
|
|
+ SampleCardDeliveryRecord byId = sampleCardDeliveryRecordService.getById(editDTO.getOriginalProductRecordId());
|
|
|
if (byId == null) {
|
|
|
return Result.error("未找到对应数据,编辑失败!");
|
|
|
}
|
|
@@ -1219,7 +1219,7 @@ public class BilletOriginalProductRecordController extends JeecgController<Bille
|
|
|
}
|
|
|
|
|
|
// 使用 UpdateWrapper 只更新指定字段
|
|
|
- UpdateWrapper<BilletOriginalProductRecord> updateWrapper = new UpdateWrapper<>();
|
|
|
+ UpdateWrapper<SampleCardDeliveryRecord> updateWrapper = new UpdateWrapper<>();
|
|
|
updateWrapper.eq("id", editDTO.getOriginalProductRecordId());
|
|
|
|
|
|
if (StringUtils.isNotBlank(editDTO.getBrandNum())) {
|
|
@@ -1232,7 +1232,7 @@ public class BilletOriginalProductRecordController extends JeecgController<Bille
|
|
|
updateWrapper.set("notes", editDTO.getNotes());
|
|
|
}
|
|
|
|
|
|
- billetOriginalProductRecordService.update(updateWrapper);
|
|
|
+ sampleCardDeliveryRecordService.update(updateWrapper);
|
|
|
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|