| | |
| | | A.stats, |
| | | j.dept_name AS jurname |
| | | FROM |
| | | ( SELECT jurisdiction, departmentid,enterpriseName,stats FROM sys_information ) A |
| | | ( SELECT jurisdiction, departmentid,enterpriseName,stats,create_time FROM sys_information ) A |
| | | LEFT JOIN ( |
| | | SELECT |
| | | COUNT( * ) AS num, |
| | |
| | | </if> |
| | | <if test="stats!=null and stats!=''"> |
| | | and A.stats =#{stats} |
| | | </if> |
| | | <if test="startTime!=null and startTime!=''"> |
| | | and A.create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and A.create_time <= #{endTime} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | i.departmentid, |
| | | i.stats, |
| | | i.jurisdiction, |
| | | j.dept_name |
| | | j.dept_name, |
| | | i.create_time |
| | | FROM |
| | | sys_information i |
| | | LEFT JOIN sys_jurisdiction j ON i.jurisdiction = j.id |
| | |
| | | <if test="stats!=null and stats!=''"> |
| | | and A.stats=#{stats} |
| | | </if> |
| | | <if test="startTime!=null and startTime!=''"> |
| | | and A.create_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and A.create_time <= #{endTime} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--保安人员详情--> |