src/main/java/org/springblade/modules/honor/entity/Honor.java
@@ -73,5 +73,8 @@ @DateTimeFormat(pattern = "yyyy-MM-dd") private Date honortime; @TableField("paper_unit") private String paperUnit; } src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -395,7 +395,26 @@ <select id="selectId" resultType="java.util.HashMap"> SELECT id FROM blade_dept WHERE parent_id =#{id} and is_deleted = 0 </select> <!--查询保安公司树数据--> <select id="securityLazyTree" resultMap="treeNodeResultMap"> ( SELECT id, parent_id, dept_name AS title, id AS "value", id AS "key", 0 AS "has_children" FROM blade_dept where is_deleted = 0 and (id = 1413470343230877697 or id = 1425366663452196865 or id = 1418458374477549569 or id = 1420222768149966850) ) union ( SELECT DISTINCT dept.id, @@ -419,12 +438,16 @@ si.departmentid = dept.id WHERE 1=1 and dept_category = 1 and si.stats != 4 AND dept.is_deleted = 0 and dept.id !=1420222961377357825 and dept.parent_id!=1420222961377357825 <if test="param1!=null and param1!='' and param1!='1123598813738675201'"> and dept.parent_id!=1425365577303621633 and dept.id != 1425365577303621633 and dept.id != 1432625856013971457 <if test="param1!=null and param1!='' and param1!='1372091709474910209'"> and si.jurisdiction = #{param1} </if> ) </select> </mapper> src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -92,7 +92,8 @@ </resultMap> <select id="selectUserPage" resultMap="userResultMap"> select * from blade_user where is_deleted = 0 select * from blade_user where is_deleted = 0 <if test="user.tenantId!=null and user.tenantId != ''"> and tenant_id = #{user.tenantId} </if> @@ -157,6 +158,9 @@ si.departmentid = bu.dept_id where is_deleted = 0 and status = 1 and bd.parent_id!=1425365577303621633 and bd.id != 1425365577303621633 and bd.id != 1432625856013971457 <if test="user.realName!=null and user.realName != ''"> and bu.real_name like concat(concat('%', #{user.realName}),'%') </if> @@ -200,12 +204,19 @@ blade_dept bd on bu.dept_id = bd.id left join blade_role br on br.id = bu.role_id where bu.is_deleted = 0 and bd.dept_category = 1 br.role_alias = '安保人员' and bu.status = 1 and bd.parent_id!=1425365577303621633 and bd.id != 1425365577303621633 and bd.id != 1432625856013971457 <if test="user.cardid!=null and user.cardid != ''"> and bu.cardid like concat(concat('%', #{user.cardid}),'%') </if>