Commit 3cdefb57 by mayunfei

侦查指令单位判断

parent 9772077e
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
select * from TB_YW_ZCZL_LLY where unitcode= #{unitcode, jdbcType=VARCHAR} and xxscpdbz='0' select * from TB_YW_ZCZL_LLY where unitcode= #{unitcode, jdbcType=VARCHAR} and xxscpdbz='0'
UNION UNION
select * from TB_YW_ZCZL_LLY where unitcode like #{unitcodegrade, jdbcType=VARCHAR}||'%' select * from TB_YW_ZCZL_LLY where unitcode like #{unitcodegrade, jdbcType=VARCHAR}||'%'
and grade=#{grade, jdbcType=VARCHAR} and xxscpdbz='0' and (select GRADE from SYS_USER us where lly.userid = us.id)= #{grade, jdbcType=VARCHAR}
and xxscpdbz='0'
</select> </select>
<!-- 拿到本单位类型联络员 --> <!-- 拿到本单位类型联络员 -->
...@@ -18,10 +19,10 @@ ...@@ -18,10 +19,10 @@
and instr(ywlx,#{ywlx, jdbcType=VARCHAR}) > 0 and instr(ywlx,#{ywlx, jdbcType=VARCHAR}) > 0
and xxscpdbz='0' and xxscpdbz='0'
union union
select * from TB_YW_ZCZL_LLY select * from TB_YW_ZCZL_LLY lly
where where
unitcode like #{unitcodegrade, jdbcType=VARCHAR}||'%' unitcode like #{unitcodegrade, jdbcType=VARCHAR}||'%'
and grade=#{grade, jdbcType=VARCHAR} and (select GRADE from SYS_USER us where lly.userid = us.id)= #{grade, jdbcType=VARCHAR}
and instr(ywlx,#{ywlx, jdbcType=VARCHAR}) > 0 and instr(ywlx,#{ywlx, jdbcType=VARCHAR}) > 0
and xxscpdbz='0' and xxscpdbz='0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment