| | |
| | | on |
| | | si.jurisdiction = sj.id |
| | | where 1=1 |
| | | and (stats = 2 or stats = 4) |
| | | and (stats = 0 or stats = 1 or stats = 2 or stats = 4) |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!=''"> |
| | | and sj.id = #{information.jurisdiction} |
| | | and (sj.id = #{information.jurisdiction} or sj.parent_id = #{information.jurisdiction}) |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | where 1=1 |
| | | and (si.stats = 2 or si.stats = 4) |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!=''"> |
| | | and sj.id = #{information.jurisdiction} |
| | | and (sj.id = #{information.jurisdiction} or sj.parent_id = #{information.jurisdiction}) |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | and (c.stats = 2 or c.stats = 4) |
| | | and pnum < #{information.proportion} |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1372091709474910209'"> |
| | | and sj.id = #{information.jurisdiction} |
| | | and (sj.id = #{information.jurisdiction} or sj.parent_id = #{information.jurisdiction}) |
| | | </if> |
| | | <if test="information.departmentid!=null and information.departmentid!=''"> |
| | | and c.departmentid = #{information.departmentid} |
| | |
| | | and (d.stats = 2 or d.stats = 4) |
| | | and pnum < #{information.proportion} |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1372091709474910209'"> |
| | | and sj.id = #{information.jurisdiction} |
| | | and (sj.id = #{information.jurisdiction} or sj.parent_id = #{information.jurisdiction}) |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | a.dept_id = si.departmentid |
| | | where 1=1 |
| | | <if test="information.jurisdiction!=null and information.jurisdiction!='' and information.jurisdiction!='1372091709474910209'"> |
| | | and sj.id = #{information.jurisdiction} |
| | | and (sj.id = #{information.jurisdiction} or sj.parent_id = #{information.jurisdiction}) |
| | | </if> |
| | | ) b |
| | | where b.znum < 2 |