Browse Source

编辑原始记录定尺和备注

qiangxuan 3 weeks ago
parent
commit
3293abc18f

+ 19 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/billetHotsendChangeShift/controller/BilletHotsendChangeShiftController.java

@@ -173,6 +173,25 @@ public class BilletHotsendChangeShiftController extends JeecgController<BilletHo
 		billetHotsendChangeShiftService.updateById(billetHotsendChangeShift);
 		return Result.OK("编辑成功!");
 	}
+
+	@ApiOperation(value="钢坯交班记录-编辑钢坯原始记录定尺和备注", notes="钢坯交班记录-编辑钢坯原始记录定尺和备注")
+	@RequestMapping(value = "/editOriginalProductRecord", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> editOriginalProductRecord(@RequestParam(name="id", required = true) String id,
+													@RequestParam(name="sizeInfo", required = false) String sizeInfo,
+													@RequestParam(name="content", required = false) String content) {
+		BilletHotsendChangeShift billetHotsendChangeShift = billetHotsendChangeShiftService.getById(id);
+		if(billetHotsendChangeShift==null) {
+			return Result.error("未找到对应数据");
+		}
+		if (sizeInfo != null && !sizeInfo.isEmpty()){
+			billetHotsendChangeShift.setSizeInfo(sizeInfo);
+		}
+		if (content != null && !content.isEmpty()){
+			billetHotsendChangeShift.setContent(content);
+		}
+		billetHotsendChangeShiftService.updateById(billetHotsendChangeShift);
+		return Result.OK("编辑成功!");
+	}
 	
 	/**
 	 *   通过id删除