|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.webserver.dao_his;
|
|
package thyyxxk.webserver.dao_his;
|
|
|
|
|
|
|
|
|
|
+import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
import org.apache.ibatis.annotations.Select;
|
|
@@ -14,7 +15,15 @@ public interface LoginDao {
|
|
|
"deptCode=(select dept_code from a_employee_mi where code=a.code) " +
|
|
"deptCode=(select dept_code from a_employee_mi where code=a.code) " +
|
|
|
"from dj_user_base a " +
|
|
"from dj_user_base a " +
|
|
|
"where code_rs=#{codeRs} and del_flag=0")
|
|
"where code_rs=#{codeRs} and del_flag=0")
|
|
|
- UserPojo findUserByCodeRs(@Param("codeRs") String codeRs);
|
|
|
|
|
|
|
+ UserPojo findUserByCodeRsFromDjUserBase(@Param("codeRs") String codeRs);
|
|
|
|
|
+
|
|
|
|
|
+ @Select("select code, name, code_rs, password='123456' " +
|
|
|
|
|
+ "from a_employee_mi where code_rs=#{codeRs} and del_flag=0")
|
|
|
|
|
+ UserPojo findUserByCodeRsFromAEmployeeMi(@Param("codeRs") String codeRs);
|
|
|
|
|
+
|
|
|
|
|
+ @Insert("insert into dj_user_base (code, code_rs, name, password, del_flag) " +
|
|
|
|
|
+ "values (#{code}, #{codeRs}, #{name}, '123456', 0)")
|
|
|
|
|
+ void insertNewUserToDjUserBase(UserPojo user);
|
|
|
|
|
|
|
|
@Select("select code, name, password, code_rs, " +
|
|
@Select("select code, name, password, code_rs, " +
|
|
|
"deptCode=(select dept_code from a_employee_mi where code=#{code}) " +
|
|
"deptCode=(select dept_code from a_employee_mi where code=#{code}) " +
|