|
|
@ -12,10 +12,7 @@ import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description: 裁片原材料防错
|
|
|
|
* @Description: 裁片原材料防错
|
|
|
@ -32,7 +29,8 @@ public class MesCutRawErrorProofingController {
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/scan-sn")
|
|
|
|
@PostMapping("/scan-sn")
|
|
|
|
@ApiOperation(value = "扫描裁片工单/原材料条码")
|
|
|
|
@ApiOperation(value = "扫描裁片工单/原材料条码")
|
|
|
|
public ResultBean doScanSn(MesCutRawErrorProofingModel model) {
|
|
|
|
public ResultBean doScanSn(@RequestBody MesCutRawErrorProofingModel model) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
MesCutRawErrorProofingModel result = cutRawErrorProofingService.doScanSn(model);
|
|
|
|
MesCutRawErrorProofingModel result = cutRawErrorProofingService.doScanSn(model);
|
|
|
|
return ResultBean.success(StringUtils.isEmpty(result.getShowInfo()) ? "扫描成功" : result.getShowInfo()).setResultObject(result);
|
|
|
|
return ResultBean.success(StringUtils.isEmpty(result.getShowInfo()) ? "扫描成功" : result.getShowInfo()).setResultObject(result);
|
|
|
@ -74,7 +72,7 @@ public class MesCutRawErrorProofingController {
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/update-raw-length")
|
|
|
|
@PostMapping("/update-raw-length")
|
|
|
|
@ApiOperation(value = "修改原材料条码长度")
|
|
|
|
@ApiOperation(value = "修改原材料条码长度")
|
|
|
|
public ResultBean doUpdateLengthByScanSn(MesCutUpdateRawLengthModel model) {
|
|
|
|
public ResultBean doUpdateLengthByScanSn(@RequestBody MesCutUpdateRawLengthModel model) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
cutRawErrorProofingService.doUpdateLengthByScanSn(model);
|
|
|
|
cutRawErrorProofingService.doUpdateLengthByScanSn(model);
|
|
|
|