|
@@ -1,5 +1,8 @@
|
|
|
package thyyxxk.webserver.dao.his.settings;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
|
import org.apache.ibatis.annotations.*;
|
|
|
import thyyxxk.webserver.entity.dictionary.PureCodeName;
|
|
|
import thyyxxk.webserver.entity.login.UserInfo;
|
|
@@ -8,8 +11,6 @@ import thyyxxk.webserver.entity.settings.deptphones.DeptPhones;
|
|
|
import thyyxxk.webserver.entity.settings.permissions.MenuItem;
|
|
|
import thyyxxk.webserver.entity.settings.permissions.Role;
|
|
|
import thyyxxk.webserver.entity.settings.users.WorkIntegrationPlatformAdvice;
|
|
|
-import thyyxxk.webserver.entity.socketmessage.SocketMessage;
|
|
|
-import thyyxxk.webserver.entity.socketmessage.SystemMessage;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -45,12 +46,41 @@ public interface SettingsDao {
|
|
|
"select rtrim(dept_code) from a_employee_mi where code=#{code})")
|
|
|
List<PureCodeName> selectDeptsByUserCode(@Param("code") String code);
|
|
|
|
|
|
- @Select("select rtrim(code) as code, rtrim(code_rs) as codeRs, rtrim(name) as name, " +
|
|
|
- "rtrim(dept_code) as deptCode, deptName=(select rtrim(name) from zd_unit_code where code=dept_code), " +
|
|
|
- "title=(select rtrim(name) from zd_emp_title where code=emp_tit_code), " +
|
|
|
- "position=(select rtrim(name) from zd_emp_position where code=emp_po_code) " +
|
|
|
- "from a_employee_mi where isnull(del_flag,0)!=1 and isnull(dept_code,'')!=''")
|
|
|
- List<UserInfo> selectAllUsers();
|
|
|
+ @Select("select rtrim(code) as code, " +
|
|
|
+ " rtrim(code_rs) as codeRs, " +
|
|
|
+ " rtrim(name) as name, " +
|
|
|
+ " rtrim(isnull(dept_code,'')) as deptCode, " +
|
|
|
+ " deptName=(select rtrim(name) " +
|
|
|
+ " from zd_unit_code " +
|
|
|
+ " where code = dept_code), " +
|
|
|
+ " rtrim(emp_po_code) as emp_po_code, " +
|
|
|
+ " position=(select rtrim(name) " +
|
|
|
+ " from zd_emp_position " +
|
|
|
+ " where code = emp_po_code), " +
|
|
|
+ " rtrim(mark) as mark, " +
|
|
|
+ " mark_name = (select rtrim(name) from zd_emp_inmark b where b.code = a.mark), " +
|
|
|
+ " rtrim(ifcadre) as ifcadre, " +
|
|
|
+ " ifcadre_name = (select rtrim(name) from zd_ifcadre b where a.ifcadre = b.code), " +
|
|
|
+ " rtrim(py_code) as py_code, " +
|
|
|
+ " rtrim(d_code) as d_code, " +
|
|
|
+ " rtrim(order_yn) as order_yn /*医生处方权 1 普通处方权 2 毒麻药处方权*/, " +
|
|
|
+ " rtrim(ysjb) as ysjb, " +
|
|
|
+ " rtrim(emp_tit_code) as emp_tit_code, " +
|
|
|
+ " title=(select rtrim(name) " +
|
|
|
+ " from zd_emp_title " +
|
|
|
+ " where code = emp_tit_code), " +
|
|
|
+ " rtrim(gh_charge_type) as gh_charge_type, " +
|
|
|
+ " gh_charge_type_name = (select rtrim(name) from mzy_zd_charge_type b where b.code = gh_charge_type), " +
|
|
|
+ " rtrim(doctor_xz_yp) as doctor_xz_yp /* 0 非限制使用药品 1 限制使用药品 2 特殊使用药品 */, " +
|
|
|
+ " rtrim(login_flag) as login_flag /*病区允许就诊 1 允许 2 不允许*/, " +
|
|
|
+ " isnull(del_flag, 0) as del_flag, " +
|
|
|
+ " rtrim(social_no) as social_no /*身份证*/, " +
|
|
|
+ " rtrim(phone_no) as phone_no /* 手机 号码*/," +
|
|
|
+ " rtrim(yb_code) as yb_code " +
|
|
|
+ "from a_employee_mi a " +
|
|
|
+ " ${ew.customSqlSegment} ")
|
|
|
+ IPage<UserInfo> selectAllUsers(IPage<UserInfo> page,
|
|
|
+ @Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
|
|
|
|
|
|
@Select("select rtrim(code) as code, rtrim(code_rs) as codeRs, rtrim(name) as name, " +
|
|
|
"rtrim(dept_code) as deptCode, deptName=(select rtrim(name) from zd_unit_code where code=dept_code), " +
|