| | |
| | | <result column="departmentid" property="departmentid"/> |
| | | <result column="stats" property="stats"/> |
| | | <result column="jurisdiction" property="jurisdiction"/> |
| | | <result column="representativecell" property="representativecell"/> |
| | | <result column="contacts" property="contacts"/> |
| | | <result column="contactscell" property="contactscell"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | and representative like concat(concat('%', #{information.representative}),'%') |
| | | </if> |
| | | <if test="information.stats!=null and information.stats!=''"> |
| | | and stats=#{stats} |
| | | and stats=#{information.stats} |
| | | </if> |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!=''"> |
| | | and jurisdiction=#{jurisdiction} |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1123598813738675201'"> |
| | | and jurisdiction=#{information.jurisdiction} |
| | | </if> |
| | | <if test="information.departmentid!=null and information.departmentid!=''"> |
| | | and departmentid=#{departmentid} |
| | | and departmentid=#{information.departmentid} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | ) B ON A.dept_id = B.dept_id |
| | | WHERE A.dept_id = #{deptid} |
| | | </select> |
| | | |
| | | |
| | | <!--保安员持证和未持证数量--> |
| | | <select id="selectHold" resultType="java.util.HashMap"> |
| | | SELECT IFNULL(A.thisnum, 0) AS cz, |
| | |
| | | blade_dept bd |
| | | on |
| | | si.departmentid = bd.id |
| | | left join |
| | | sys_train_exam ste |
| | | on |
| | | ste.dept_id = bd.id |
| | | where 1=1 |
| | | and ste.audit_status = 1 |
| | | and bd.dept_category = 3 |
| | | <if test="information.deptName!=null and information.deptName!=''"> |
| | | and bd.dept_name like concat(concat('%', #{information.deptName}),'%') |
| | | </if> |
| | | <if test="information.representative!=null and information.representative!=''"> |
| | | and representative like concat(concat('%', #{information.representative}),'%') |
| | | </if> |
| | | <if test="information.stats!=null and information.stats!=''"> |
| | | and stats=#{stats} |
| | | </if> |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!=''"> |
| | | and si.jurisdiction=#{jurisdiction} |