| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
- "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
-
- <mapper namespace="PSAMKSL">
- <select id="RSPSAMYWXXSQB_CNT" resultType="long" parameterType="hashmap">
- SELECT COUNT(1) CNT FROM rs_psam_ywxx_sqb WHERE SLLSH=#{SLLSH}
- </select>
- <insert id="RSPSAMYWXXSQB_I" parameterType="hashmap">
- insert into rs_psam_ywxx_sqb(RS_PSAM_YWXX_SQB_LSH, SLLSH, RS_PSAM_AZJGXX_LSH,
- PSAMBH, JGLX, SHLX, BGDH, SQYT, SQSL, SHBH, CJR, CJSJ, ZHXGR, ZHXGSJ, ZTID)
- values(sys_guid(),#{SLLSH},#{RS_PSAM_AZJGXX_LSH},#{PSAMBH},#{JGLX},#{SHLX},#{BGDH},#{SQYT},
- #{SQSL},#{SHBH},#{CJR},to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
- #{ZHXGR},to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),#{ZTID})
- </insert>
- <update id="RSPSAMYWXXSQB_U" parameterType="hashmap">
- UPDATE rs_psam_ywxx_sqb
- <set>
- <if test='SSJG != null'>SSJG =#{SSJG} ,</if>
- <if test='RS_PSAM_AZJGXX_LSH != null'>RS_PSAM_AZJGXX_LSH =#{RS_PSAM_AZJGXX_LSH} ,</if>
- <if test='PSAMBH != null'>PSAMBH =#{PSAMBH} ,</if>
- <if test='JGLX != null'>JGLX =#{JGLX} ,</if>
- <if test='SHLX != null'>SHLX =#{SHLX} ,</if>
- <if test='BGDH != null'>BGDH =#{BGDH} ,</if>
- <if test='SQYT != null'>SQYT =#{SQYT} ,</if>
- <if test='SQSL != null'>SQSL =#{SQSL} ,</if>
- <if test='SHBH != null'>SHBH =#{SHBH} ,</if>
- <if test='ZHXGR != null'>ZHXGR =#{ZHXGR} ,</if>
- ZHXGSJ = to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
- <if test='ZTID != null'>ZTID =#{ZTID} ,</if>
- <if test='BJSJ != null'>BJSJ =#{BJSJ} ,</if>
- </set>
- WHERE SLLSH=#{SLLSH}
- </update>
-
- <select id="PSAMKZT_S" resultType="hashmap" parameterType="String">
- select KZT from rs_psam_rkxxb where PSAMBH=#{PSAMBH}
- </select>
-
- <select id="PSAMBH_S" resultType="hashmap" parameterType="String">
- select PSAMBH,SQSL from rs_psam_ywxx_sqb where sllsh=#{SLLSH}
- </select>
- <select id="PSAMBHBYYWLSH_S" resultType="hashmap" parameterType="String">
- select RS_PSAM_YWXX_SQB_LSH,PSAMBH,SLLSH from rs_psam_ywxx_sqb where sllsh in(select sllsh from v_appcomm_slxx where ywlsh=#{YWLSH})
- </select>
- <update id="RSPSAMYWXXSQB_U2" parameterType="hashmap">
- UPDATE rs_psam_ywxx_sqb
- <set>
- <if test='ZHXGR != null'>ZHXGR =#{ZHXGR} ,</if>
- ZHXGSJ = to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
- BJSJ =to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')
- </set>
- WHERE SLLSH=#{SLLSH}
- </update>
-
- <update id="RSPSAMRKXXB_U" parameterType="hashmap">
- UPDATE rs_psam_rkxxb
- <set>
- KZT='1',
- <if test='ZHXGR != null'>ZHXGR =#{ZHXGR} ,</if>
- ZHXGSJ = to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
- <if test='RS_PSAM_YWXX_SQB_LSH != null'>RS_PSAM_YWXX_SQB_LSH =#{RS_PSAM_YWXX_SQB_LSH} ,</if>
- </set>
- WHERE PSAMBH=#{PSAMBH}
- </update>
- <insert id="RSPSAMAZFKXXB_I" parameterType="hashmap">
- insert into rs_psam_azfkxxb(RS_PSAM_AZFKXXB_LSH, RS_PSAM_YWXX_SQB_LSH, RS_PSAM_RKXXB_LSH, SFTJ, CJR, CJSJ, ZHXGR, ZHXGSJ)
- values(sys_guid(),#{RS_PSAM_YWXX_SQB_LSH},(select RS_PSAM_RKXXB_LSH from rs_psam_rkxxb where PSAMBH = #{PSAMBH} and rownum='1'),
- '0',#{CJR},to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),#{ZHXGR},to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'))
- </insert>
- <insert id="RSPSAMLOG_I" parameterType="hashmap">
- insert into rs_psam_log(RS_PSAM_LOG_LSH, RS_PSAM_RKXXB_LSH, CZLX, CZYY, YKZT, KZT, CJR, CJSJ)
- values(sys_guid(),(select RS_PSAM_RKXXB_LSH from rs_psam_rkxxb where PSAMBH = #{PSAMBH} and rownum='1'),
- '5','发放','4','1',#{CJR},to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'))
- </insert>
- <select id="GETPRINTDATA_S" resultType="hashmap" parameterType="hashmap">
- SELECT A.SLLSH,
- F_AA10_GET_AAA103('RS_PSAM_YWXX_JGLX', A.JGLX) JGLX,
- C.AAB004 DWMC,
- C.AAE006 DWDZ,
- B.SBRXM,
- B.SBRSJ,
- F_AA10_GET_AAA103('RS_PSAM_YWXX_SQYT', A.SQYT) SQYT,
- A.SQSL
- FROM RS_PSAM_YWXX_SQB A, V_APPCOMM_SLXX B, AB01 C
- WHERE A.SLLSH = B.SLLSH
- AND A.ZTID = C.ZTID
- AND A.SLLSH =#{SLLSH}
- </select>
- <select id="GETRSPSAMYWXXSQBLSH_S" resultType="String" parameterType="String">
- SELECT RS_PSAM_YWXX_SQB_LSH LSH FROM rs_psam_ywxx_sqb WHERE SLLSH=#{SLLSH}
- </select>
- </mapper>
|