SDZLMX_CNT_Mapper.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- 核三框架升级自动生成mapper文件 -->
  3. <!-- SDZLMX表牵涉到的sql文件 -->
  4. <!DOCTYPE mapper
  5. PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
  6. "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
  7. <mapper namespace="SDZLMX_CNT">
  8. <!-- SDZLMX 取需要转换的记录,WJNR不为空的(未办结的) -->
  9. <select id="SDZLMX_WJNR_WBJ_S" resultType="cn.sinobest.shoudan.entity.Sdzlmx" >
  10. select SDZLMXID,WJNR,YWJM,WJLX from SDZL a ,sdzlmx b where a.SDZLID=b.SDZLID and tyccid is null and WJNR is not null and YXBZ ='1'
  11. and a.SDJLID in(select CAZ675 from rs_slxx a ,wf_process_instance b where a.ywlsh=b.bae007 and b.status='2') and rownum &lt; 101
  12. </select>
  13. <!-- SDZLMX 取需要转换的记录,WJNR不为空的 -->
  14. <select id="SDZLMX_WJNR_S" resultType="cn.sinobest.shoudan.entity.Sdzlmx" >
  15. select SDZLMXID,WJNR,YWJM,WJLX from sdzlmx where WJNR is not null and TYCCID is null and YXBZ ='1' and rownum &lt; 101
  16. </select>
  17. <!-- SDZLMX 取需要转换的记录,WJLJ不为空的 -->
  18. <select id="SDZLMX_WJLJ_S" resultType="cn.sinobest.shoudan.entity.Sdzlmx" >
  19. select SDZLMXID,WJLJ,YWJM,WJLX from sdzlmx where WJNR is null and TYCCID is null and WJLJ is not null and YXBZ ='1' and rownum &lt; 101
  20. </select>
  21. <!-- SDZLMX 回写统一存储ID -->
  22. <update id="SDZLMX_U" parameterType="cn.sinobest.shoudan.entity.Sdzlmx">
  23. update SDZLMX
  24. set TYCCID=#{tyccid}
  25. where SDZLMXID=#{sdzlmxid}
  26. </update>
  27. <!-- RS_SLXX_RXCJ 照片采集取需要转换的记录 -->
  28. <select id="RS_SLXX_RXCJ_S" resultType="hashmap" >
  29. select RS_SLXX_RXCJ_LSH, SLLSH,RXZP from V_RS_SLXX_RXCJ where TYCCID is null and rownum &lt; 101
  30. </select>
  31. <!-- RS_SLXX_RXCJ 照片采集回写统一存储ID -->
  32. <update id="RS_SLXX_RXCJ_U" parameterType="hashmap">
  33. update V_RS_SLXX_RXCJ
  34. set TYCCID=#{TYCCID}
  35. where RS_SLXX_RXCJ_LSH=#{RS_SLXX_RXCJ_LSH}
  36. </update>
  37. </mapper>