|
|
@ -4,6 +4,7 @@ import cn.estsh.i3plus.ext.mes.api.base.IMesConfigService;
|
|
|
|
import cn.estsh.i3plus.ext.mes.api.base.IMesLabelTemplateService;
|
|
|
|
import cn.estsh.i3plus.ext.mes.api.base.IMesLabelTemplateService;
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
|
|
|
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
|
|
|
|
|
|
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
|
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;
|
|
|
@ -33,7 +34,7 @@ public class MesLabelTemplateExtController {
|
|
|
|
@ApiOperation(value = "获取系统配置的模版信息")
|
|
|
|
@ApiOperation(value = "获取系统配置的模版信息")
|
|
|
|
public ResultBean queryMesLabelTemplate(String organizeCode, String moduleCode, String templateCode) {
|
|
|
|
public ResultBean queryMesLabelTemplate(String organizeCode, String moduleCode, String templateCode) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ValidatorBean.checkNotNull(organizeCode, "工厂代码不能为空");
|
|
|
|
if (StringUtils.isEmpty(organizeCode)) organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(moduleCode) && StringUtils.isEmpty(templateCode)) {
|
|
|
|
if (StringUtils.isEmpty(moduleCode) && StringUtils.isEmpty(templateCode)) {
|
|
|
|
ValidatorBean.checkNotNull(moduleCode, "模版配置代码不能为空");
|
|
|
|
ValidatorBean.checkNotNull(moduleCode, "模版配置代码不能为空");
|
|
|
|
}
|
|
|
|
}
|
|
|
|