|
|
@ -8,6 +8,7 @@ import cn.estsh.i3plus.pojo.base.common.Pager;
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
|
|
import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
|
|
import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
|
|
|
|
|
|
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;
|
|
|
@ -59,6 +60,10 @@ public class MesCutRawErrorProofingController {
|
|
|
|
@ApiOperation(value = "查询条码长度")
|
|
|
|
@ApiOperation(value = "查询条码长度")
|
|
|
|
public ResultBean queryLengthByScanSn(MesCutRawErrorProofingModel model) {
|
|
|
|
public ResultBean queryLengthByScanSn(MesCutRawErrorProofingModel model) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ValidatorBean.checkNotNull(model.getSn(), "查询条码不能为空");
|
|
|
|
|
|
|
|
ValidatorBean.checkNotNull(model.getOrganizeCode(), "工厂代码不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
return ResultBean.success("查询成功").setResultObject(cutRawErrorProofingService.queryLengthBySn(model));
|
|
|
|
return ResultBean.success("查询成功").setResultObject(cutRawErrorProofingService.queryLengthBySn(model));
|
|
|
|
} catch (ImppBusiException imppException) {
|
|
|
|
} catch (ImppBusiException imppException) {
|
|
|
|
return ResultBean.fail(imppException);
|
|
|
|
return ResultBean.fail(imppException);
|
|
|
|