|
|
@ -28,6 +28,7 @@
|
|
|
|
<result property="CDC_JYM" column="CDC_JYM" jdbcType="VARCHAR"/>
|
|
|
|
<result property="CDC_JYM" column="CDC_JYM" jdbcType="VARCHAR"/>
|
|
|
|
<result property="YSBZK_RKSJ" column="YSBZK_RKSJ" jdbcType="VARCHAR"/>
|
|
|
|
<result property="YSBZK_RKSJ" column="YSBZK_RKSJ" jdbcType="VARCHAR"/>
|
|
|
|
<result property="YSBZK_GXSJ" column="YSBZK_GXSJ" jdbcType="VARCHAR"/>
|
|
|
|
<result property="YSBZK_GXSJ" column="YSBZK_GXSJ" jdbcType="VARCHAR"/>
|
|
|
|
|
|
|
|
<result property="STATUS" column="STATUS" jdbcType="VARCHAR"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectVSySydwByZJLID" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
<select id="selectVSySydwByZJLID" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
@ -41,29 +42,31 @@
|
|
|
|
keyProperty="id">
|
|
|
|
keyProperty="id">
|
|
|
|
insert into v_sy_sydw
|
|
|
|
insert into v_sy_sydw
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test=" ZJLID != null and ZJLID != '' "> ZJLID ,</if>
|
|
|
|
<if test=" ZJLID != null and ZJLID != '' ">ZJLID ,</if>
|
|
|
|
<if test=" YSXTJRZJ != null and YSXTJRZJ != '' "> YSXTJRZJ ,</if>
|
|
|
|
<if test=" YSXTJRZJ != null and YSXTJRZJ != '' ">YSXTJRZJ ,</if>
|
|
|
|
<if test=" XXSC_PDBZ != null and XXSC_PDBZ != '' "> XXSC_PDBZ ,</if>
|
|
|
|
<if test=" XXSC_PDBZ != null and XXSC_PDBZ != '' ">XXSC_PDBZ ,</if>
|
|
|
|
<if test=" ID != null and ID != '' "> ID ,</if>
|
|
|
|
<if test=" ID != null and ID != '' ">ID ,</if>
|
|
|
|
<if test=" DWMC != null and DWMC != '' "> DWMC ,</if>
|
|
|
|
<if test=" DWMC != null and DWMC != '' ">DWMC ,</if>
|
|
|
|
<if test=" DZ != null and DZ != '' "> DZ ,</if>
|
|
|
|
<if test=" DZ != null and DZ != '' ">DZ ,</if>
|
|
|
|
<if test=" LXDH != null and LXDH != '' "> LXDH ,</if>
|
|
|
|
<if test=" LXDH != null and LXDH != '' ">LXDH ,</if>
|
|
|
|
<if test=" FJBM != null and FJBM != '' "> FJBM ,</if>
|
|
|
|
<if test=" FJBM != null and FJBM != '' ">FJBM ,</if>
|
|
|
|
<if test=" FJMC != null and FJMC != '' "> FJMC ,</if>
|
|
|
|
<if test=" FJMC != null and FJMC != '' ">FJMC ,</if>
|
|
|
|
<if test=" PCSBM != null and PCSBM != '' "> PCSBM ,</if>
|
|
|
|
<if test=" PCSBM != null and PCSBM != '' ">PCSBM ,</if>
|
|
|
|
<if test=" PCSMC != null and PCSMC != '' "> PCSMC ,</if>
|
|
|
|
<if test=" PCSMC != null and PCSMC != '' ">PCSMC ,</if>
|
|
|
|
<if test=" JWQBM != null and JWQBM != '' "> JWQBM ,</if>
|
|
|
|
<if test=" JWQBM != null and JWQBM != '' ">JWQBM ,</if>
|
|
|
|
<if test=" JWQMC != null and JWQMC != '' "> JWQMC ,</if>
|
|
|
|
<if test=" JWQMC != null and JWQMC != '' ">JWQMC ,</if>
|
|
|
|
<if test=" SZQY != null and SZQY != '' "> SZQY ,</if>
|
|
|
|
<if test=" SZQY != null and SZQY != '' ">SZQY ,</if>
|
|
|
|
<if test=" DWZT != null and DWZT != '' "> DWZT ,</if>
|
|
|
|
<if test=" DWZT != null and DWZT != '' ">DWZT ,</if>
|
|
|
|
<if test=" X != null and X != '' "> X ,</if>
|
|
|
|
<if test=" X != null and X != '' ">X ,</if>
|
|
|
|
<if test=" Y != null and Y != '' "> Y ,</if>
|
|
|
|
<if test=" Y != null and Y != '' ">Y ,</if>
|
|
|
|
<if test=" DWLXMC != null and DWLXMC != '' "> DWLXMC ,</if>
|
|
|
|
<if test=" DWLXMC != null and DWLXMC != '' ">DWLXMC ,</if>
|
|
|
|
<if test=" FRZJHM != null and FRZJHM != '' "> FRZJHM ,</if>
|
|
|
|
<if test=" FRZJHM != null and FRZJHM != '' ">FRZJHM ,</if>
|
|
|
|
<if test=" FRXM != null and FRXM != '' "> FRXM ,</if>
|
|
|
|
<if test=" FRXM != null and FRXM != '' ">FRXM ,</if>
|
|
|
|
<if test=" CDC_JYM != null and CDC_JYM != '' "> CDC_JYM ,</if>
|
|
|
|
<if test=" CDC_JYM != null and CDC_JYM != '' ">CDC_JYM ,</if>
|
|
|
|
<if test=" YSBZK_RKSJ != null and YSBZK_RKSJ != '' "> YSBZK_RKSJ,</if>
|
|
|
|
<if test=" YSBZK_RKSJ != null and YSBZK_RKSJ != '' ">YSBZK_RKSJ,</if>
|
|
|
|
<if test=" YSBZK_GXSJ != null and YSBZK_GXSJ != '' "> YSBZK_GXSJ,</if>
|
|
|
|
<if test=" YSBZK_GXSJ != null and YSBZK_GXSJ != '' ">YSBZK_GXSJ,</if>
|
|
|
|
|
|
|
|
<if test=" STATUS != null and STATUS != '' ">STATUS,</if>
|
|
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="ZJLID != null and ZJLID != '' ">#{ZJLID },</if>
|
|
|
|
<if test="ZJLID != null and ZJLID != '' ">#{ZJLID },</if>
|
|
|
@ -89,37 +92,43 @@
|
|
|
|
<if test="CDC_JYM != null and CDC_JYM != '' ">#{CDC_JYM },</if>
|
|
|
|
<if test="CDC_JYM != null and CDC_JYM != '' ">#{CDC_JYM },</if>
|
|
|
|
<if test="YSBZK_RKSJ != null and YSBZK_RKSJ != '' ">#{YSBZK_RKSJ},</if>
|
|
|
|
<if test="YSBZK_RKSJ != null and YSBZK_RKSJ != '' ">#{YSBZK_RKSJ},</if>
|
|
|
|
<if test="YSBZK_GXSJ != null and YSBZK_GXSJ != '' ">#{YSBZK_GXSJ},</if>
|
|
|
|
<if test="YSBZK_GXSJ != null and YSBZK_GXSJ != '' ">#{YSBZK_GXSJ},</if>
|
|
|
|
|
|
|
|
<if test="STATUS != null and STATUS != '' ">#{STATUS},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateVSySydwById" parameterType="com.ssf.mysqloracletest.domain.VSySydwmMysql">
|
|
|
|
<update id="updateVSySydwById" parameterType="com.ssf.mysqloracletest.domain.VSySydwmMysql">
|
|
|
|
update v_sy_sydw
|
|
|
|
update v_sy_sydw
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="ZJLID != null and ZJLID != '' ">ZJLID = #{ZJLID },</if>
|
|
|
|
<if test="ZJLID != null and ZJLID != '' ">ZJLID = #{ZJLID },</if>
|
|
|
|
<if test="YSXTJRZJ != null and YSXTJRZJ != '' ">YSXTJRZJ = #{YSXTJRZJ },</if>
|
|
|
|
<if test="YSXTJRZJ != null and YSXTJRZJ != '' ">YSXTJRZJ = #{YSXTJRZJ },</if>
|
|
|
|
<if test="XXSC_PDBZ != null and XXSC_PDBZ != '' ">XXSC_PDBZ = #{XXSC_PDBZ },</if>
|
|
|
|
<if test="XXSC_PDBZ != null and XXSC_PDBZ != '' ">XXSC_PDBZ = #{XXSC_PDBZ },</if>
|
|
|
|
<if test="ID != null and ID != '' ">ID = #{ID },</if>
|
|
|
|
<if test="ID != null and ID != '' ">ID = #{ID },</if>
|
|
|
|
<if test="DWMC != null and DWMC != '' ">DWMC = #{DWMC },</if>
|
|
|
|
<if test="DWMC != null and DWMC != '' ">DWMC = #{DWMC },</if>
|
|
|
|
<if test="DZ != null and DZ != '' ">DZ = #{DZ },</if>
|
|
|
|
<if test="DZ != null and DZ != '' ">DZ = #{DZ },</if>
|
|
|
|
<if test="LXDH != null and LXDH != '' ">LXDH = #{LXDH },</if>
|
|
|
|
<if test="LXDH != null and LXDH != '' ">LXDH = #{LXDH },</if>
|
|
|
|
<if test="FJBM != null and FJBM != '' ">FJBM = #{FJBM },</if>
|
|
|
|
<if test="FJBM != null and FJBM != '' ">FJBM = #{FJBM },</if>
|
|
|
|
<if test="FJMC != null and FJMC != '' ">FJMC = #{FJMC },</if>
|
|
|
|
<if test="FJMC != null and FJMC != '' ">FJMC = #{FJMC },</if>
|
|
|
|
<if test="PCSBM != null and PCSBM != '' ">PCSBM = #{PCSBM },</if>
|
|
|
|
<if test="PCSBM != null and PCSBM != '' ">PCSBM = #{PCSBM },</if>
|
|
|
|
<if test="PCSMC != null and PCSMC != '' ">PCSMC = #{PCSMC },</if>
|
|
|
|
<if test="PCSMC != null and PCSMC != '' ">PCSMC = #{PCSMC },</if>
|
|
|
|
<if test="JWQBM != null and JWQBM != '' ">JWQBM = #{JWQBM },</if>
|
|
|
|
<if test="JWQBM != null and JWQBM != '' ">JWQBM = #{JWQBM },</if>
|
|
|
|
<if test="JWQMC != null and JWQMC != '' ">JWQMC = #{JWQMC },</if>
|
|
|
|
<if test="JWQMC != null and JWQMC != '' ">JWQMC = #{JWQMC },</if>
|
|
|
|
<if test="SZQY != null and SZQY != '' ">SZQY = #{SZQY },</if>
|
|
|
|
<if test="SZQY != null and SZQY != '' ">SZQY = #{SZQY },</if>
|
|
|
|
<if test="DWZT != null and DWZT != '' ">DWZT = #{DWZT },</if>
|
|
|
|
<if test="DWZT != null and DWZT != '' ">DWZT = #{DWZT },</if>
|
|
|
|
<if test="X != null and X != '' ">X = #{X },</if>
|
|
|
|
<if test="X != null and X != '' ">X = #{X },</if>
|
|
|
|
<if test="Y != null and Y != '' ">Y = #{Y },</if>
|
|
|
|
<if test="Y != null and Y != '' ">Y = #{Y },</if>
|
|
|
|
<if test="DWLXMC != null and DWLXMC != '' ">DWLXMC = #{DWLXMC },</if>
|
|
|
|
<if test="DWLXMC != null and DWLXMC != '' ">DWLXMC = #{DWLXMC },</if>
|
|
|
|
<if test="FRZJHM != null and FRZJHM != '' ">FRZJHM = #{FRZJHM },</if>
|
|
|
|
<if test="FRZJHM != null and FRZJHM != '' ">FRZJHM = #{FRZJHM },</if>
|
|
|
|
<if test="FRXM != null and FRXM != '' ">FRXM = #{FRXM },</if>
|
|
|
|
<if test="FRXM != null and FRXM != '' ">FRXM = #{FRXM },</if>
|
|
|
|
<if test="CDC_JYM != null and CDC_JYM != '' ">CDC_JYM = #{CDC_JYM },</if>
|
|
|
|
<if test="CDC_JYM != null and CDC_JYM != '' ">CDC_JYM = #{CDC_JYM },</if>
|
|
|
|
<if test="YSBZK_RKSJ != null and YSBZK_RKSJ != '' ">YSBZK_RKSJ = #{YSBZK_RKSJ},</if>
|
|
|
|
<if test="YSBZK_RKSJ != null and YSBZK_RKSJ != '' ">YSBZK_RKSJ = #{YSBZK_RKSJ},</if>
|
|
|
|
<if test="YSBZK_GXSJ != null and YSBZK_GXSJ != '' ">YSBZK_GXSJ = #{YSBZK_GXSJ},</if>
|
|
|
|
<if test="YSBZK_GXSJ != null and YSBZK_GXSJ != '' ">YSBZK_GXSJ = #{YSBZK_GXSJ},</if>
|
|
|
|
|
|
|
|
<if test="STATUS != null and STATUS != '' ">STATUS = #{STATUS},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where ZJLID = #{ZJLID}
|
|
|
|
where ZJLID = #{ZJLID}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="countSydw" resultType="int">
|
|
|
|
|
|
|
|
select count(*)
|
|
|
|
|
|
|
|
from v_sy_sydw limit 1
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|