| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?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="PSAMKHS">
- <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,
- PSAMBH, JGLX, BGDH, CJR, CJSJ, ZHXGR, ZHXGSJ, ZTID)
- values(sys_guid(),#{SLLSH},#{PSAMBH},#{JGLX},#{BGDH},
- #{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='4',
- <if test='ZHXGR != null'>ZHXGR =#{ZHXGR} ,</if>
- ZHXGSJ = to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),
- RS_PSAM_YWXX_SQB_LSH='',
- RS_PSAM_FFXXB_LSH=''
- </set>
- WHERE PSAMBH=#{PSAMBH}
- </update>
- <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'),
- '1','回收','1','4',#{CJR},to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'))
- </insert>
-
-
- </mapper>
|