pms-parent/pms-global/src/main/resources/mapper/PltStationMapper.xml
@@ -96,7 +96,7 @@ name like concat('%', #{name}, '%') </if> </trim> order by id desc order by line_id ASC, id ASC <trim prefix="limit " > <if test="start != null and count != null"> #{start}, #{count} @@ -151,7 +151,9 @@ <select id="selectAll" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from plt_station where deleted!=1 from plt_station where deleted!=1 order by line_id ASC, id ASC </select> <select id="selectMaxCode" resultType="java.lang.String"> select max(code) from plt_station pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationCtrl.java
@@ -17,6 +17,7 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import io.netty.channel.EventLoopGroup ; import java.io.IOException; import java.util.ArrayList; pms-parent/pms-web-sso/src/main/java/com/dy/sso/busi/SsoCtrl.java
@@ -30,6 +30,8 @@ @RequestMapping(path="sso") @SuppressWarnings("unchecked")//java版本越高,对泛型约束越严,所以配置SuppressWarnings("unchecked") public class SsoCtrl { //万用token private static final String UniversalUserToken = "0000-0000-1234-9876-5"; //在属性上注解@Autowired时,会警告 Field injection is not recommended(不再推荐使用字段注入) private SsoSv sv ; @@ -121,7 +123,13 @@ */ @GetMapping(path = "ssoCheck") public SsoVo ssoCheck(String token){ BaUser userPo = this.sv.getByUuid(token) ; BaUser userPo = null ; if(token.equals(UniversalUserToken)){ //调试阶段,用的万用token userPo = new BaUser() ; }else{ userPo = this.sv.getByUuid(token) ; } SsoVo vo = new SsoVo(); if(userPo != null){ vo.logined = true ; @@ -143,7 +151,14 @@ */ @GetMapping(path = "ssoPowerCheck") public SsoVo ssoPowerCheck(String token, String privilege, String[] allPrivilege, String[] anyPrivilege){ BaUser userPo = this.sv.getByUuid(token) ; BaUser userPo = null ; if(token.equals(UniversalUserToken)){ //调试阶段,用的万用token userPo = new BaUser() ; userPo.supperAdmin = 1 ; }else{ userPo = this.sv.getByUuid(token) ; } SsoVo vo = new SsoVo(); if(userPo != null){ vo.logined = true ;