44509 查询条码状态

tags/yfai-pcn-ext-v2.75
臧学普 6 months ago
parent e992c4de6d
commit c69884d16a

@ -1,9 +1,7 @@
package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.busi; package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.busi;
import cn.estsh.i3plus.ext.mes.pcn.api.base.IMesEnumExtService;
import cn.estsh.i3plus.ext.mes.pcn.api.busi.IMesEnumDetailService; import cn.estsh.i3plus.ext.mes.pcn.api.busi.IMesEnumDetailService;
import cn.estsh.i3plus.ext.mes.pcn.pojo.constant.MesCommonConstant; import cn.estsh.i3plus.ext.mes.pcn.pojo.constant.MesCommonConstant;
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
import cn.estsh.i3plus.pojo.mes.bean.MesEnumDetail; import cn.estsh.i3plus.pojo.mes.bean.MesEnumDetail;
import cn.estsh.impp.framework.boot.auth.AuthUtil; import cn.estsh.impp.framework.boot.auth.AuthUtil;
import cn.estsh.impp.framework.boot.exception.ImppBusiException; import cn.estsh.impp.framework.boot.exception.ImppBusiException;
@ -15,11 +13,9 @@ import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @Description : * @Description :
@ -31,8 +27,8 @@ import java.util.Map;
@RestController @RestController
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesEnumDetail") @RequestMapping(MesCommonConstant.MES_YANFEN + "/mesEnumDetail")
public class MesEnumDetailController { public class MesEnumDetailController {
@Autowired // @Autowired
private IMesEnumExtService enumService; // private IMesEnumExtService enumService;
@Autowired @Autowired
private IMesEnumDetailService mesEnumDetailService; private IMesEnumDetailService mesEnumDetailService;
@ -52,19 +48,19 @@ public class MesEnumDetailController {
} }
} }
@GetMapping(value = "/enumlist") // @GetMapping(value = "/enumlist")
@ApiOperation(value = "获取MES系统枚举") // @ApiOperation(value = "获取MES系统枚举")
public ResultBean enumlistByOrg(@RequestParam(name = "enumName") String enumName, @RequestParam(name = "organizeCode", required = false) String organizeCode) { // public ResultBean enumlistByOrg(@RequestParam(name = "enumName") String enumName, @RequestParam(name = "organizeCode", required = false) String organizeCode) {
try { // try {
organizeCode = org.springframework.util.StringUtils.isEmpty(organizeCode) ? AuthUtil.getOrganize().getOrganizeCode() : organizeCode; // organizeCode = org.springframework.util.StringUtils.isEmpty(organizeCode) ? AuthUtil.getOrganize().getOrganizeCode() : organizeCode;
Map<String, Object> map = enumService.doGetMesEnumByEnumName(organizeCode, enumName); // Map<String, Object> map = enumService.doGetMesEnumByEnumName(organizeCode, enumName);
return ResultBean.success("查询成功") // return ResultBean.success("查询成功")
.setResultObject(map) // .setResultObject(map)
.setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()); // .setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
} catch (ImppBusiException busExcep) { // } catch (ImppBusiException busExcep) {
return ResultBean.fail(busExcep); // return ResultBean.fail(busExcep);
} catch (Exception e) { // } catch (Exception e) {
return ImppExceptionBuilder.newInstance().buildExceptionResult(e); // return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
} // }
} // }
} }

Loading…
Cancel
Save