Browse Source

消息提示多语言 存储过程 2023年1月29日 sxm

master
[li_she] 3 years ago
parent
commit
fc74b76c35
  1. 6
      src/main/java/com/gaotao/common/exception/XJException.java
  2. 3
      src/main/resources/mapper/shopOrder/ProductionReportMapper.xml

6
src/main/java/com/gaotao/common/exception/XJException.java

@ -3,11 +3,11 @@
package com.gaotao.common.exception;
import com.gaotao.common.constant.SysMsgConstant;
import com.gaotao.common.utils.SpringContextUtils;
import com.gaotao.modules.sys.dao.SysMsgDao;
import com.gaotao.modules.sys.entity.SysUserEntity;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 自定义异常
@ -20,8 +20,8 @@ public class XJException extends RuntimeException {
return (SysUserEntity) SecurityUtils.getSubject().getPrincipal();
}
@Autowired
private SysMsgDao sysMsgDao;
private SysMsgDao sysMsgDao = (SysMsgDao)SpringContextUtils.getBean("sysMsgDao");
private String msg;
private int code = 500;

3
src/main/resources/mapper/shopOrder/ProductionReportMapper.xml

@ -56,7 +56,8 @@
P.GroupID,dbo.Get_PartGroupDesc(P.Site,P.GroupID) as GroupName
from SORouting as T,ShopOrder as D,WorkCenter as W,Part as P
<where>
AND T.Site=D.Site and T.OrderNo=D.OrderNo and T.Site=W.Site and T.WorkCenterNo=W.WorkCenterNo and D.Site=P.Site and D.PartNo=P.PartNo and T.OrderNo='8888' and T.site in (Select Site from AccessSite where upper(UserID)=#{user})
AND T.Site=D.Site and T.OrderNo=D.OrderNo and T.Site=W.Site and T.WorkCenterNo=W.WorkCenterNo and D.Site=P.Site and D.PartNo=P.PartNo and T.site in (Select Site from AccessSite where upper(UserID)=#{user})
<if test=" site != null and site != ''">
AND T.Site = #{site}
</if>

Loading…
Cancel
Save