This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-k18-galaxy-service/src/main/java/com/nis/web/dao/jk/JkLyqDao.xml
zhangdongxu 13acafd43d 上传代码
2017-12-19 14:55:52 +08:00

180 lines
5.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.nis.web.dao.jk.JkLyqDao">
<resultMap id="BaseResultMap" type="com.nis.domain.restful.jk.JkLyq">
<id column="G_ID" jdbcType="BIGINT" property="gId" />
<result column="LYQ_ID" jdbcType="BIGINT" property="lyqId" />
<result column="LYQ_MC" jdbcType="VARCHAR" property="lyqMc" />
<result column="FWQ_ID" jdbcType="BIGINT" property="fwqId" />
<result column="KGFS" jdbcType="BIGINT" property="kgfs" />
<result column="GJ_CK_ID" jdbcType="BIGINT" property="gjCkId" />
<result column="SF_SX" jdbcType="BIGINT" property="sfSx" />
<result column="SX_FW" jdbcType="VARCHAR" property="sxFw" />
<!--
<result column="CZY_ID" jdbcType="BIGINT" property="czyId" />
<result column="CZ_SJ" jdbcType="TIMESTAMP" property="czSj" />
<result column="BZ" jdbcType="VARCHAR" property="bz" />
<result column="YL" jdbcType="VARCHAR" property="yl" /> -->
<result column="FWQ_DK" jdbcType="BIGINT" property="fwqDk" />
</resultMap>
<sql id="Base_Column_List">
G_ID, LYQ_ID,LYQ_MC,FWQ_ID,KGFS,GJ_CK_ID,SF_SX,SX_FW ,<!--CZY_ID,CZ_SJ,BZ,YL, -->FWQ_DK
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from JK_LYQ
where LYQ_ID = #{lyqId,jdbcType=BIGINT}
</select>
<delete id="delete" parameterType="java.lang.Long">
delete from JK_LYQ
where LYQ_ID = #{lyqId,jdbcType=BIGINT}
</delete>
<!--
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkLyq" keyProperty="lyqId">
insert into JK_LYQ (LYQ_ID,LYQ_MC,FWQ_ID,KGFS,GJ_CK_ID,SF_SX,SX_FW,CZY_ID,CZ_SJ,BZ,YL,FWQ_DK
)
values (
#{lyqId,jdbcType=BIGINT},
#{lyqMc,jdbcType=VARCHAR},
#{fwqId,jdbcType=BIGINT},
#{kgfs,jdbcType=BIGINT},
#{gjCkId,jdbcType=BIGINT},
#{sfSx,jdbcType=BIGINT},
#{sxFw,jdbcType=VARCHAR},
#{czyId,jdbcType=BIGINT},
#{czSj,jdbcType=TIMESTAMP},
#{bz,jdbcType=VARCHAR},
#{yl,jdbcType=VARCHAR},
#{fwqDk,jdbcType=BIGINT}
)
</insert>
-->
<!---->
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkLyq">
insert into JK_LYQ
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="lyqId != null">
LYQ_ID ,
</if>
<if test="lyqMc != null">
LYQ_MC ,
</if>
<if test="fwqId != null">
FWQ_ID ,
</if>
<if test="kgfs != null">
KGFS ,
</if>
<if test="gjCkId != null">
GJ_CK_ID ,
</if>
<if test="sfSx != null">
SF_SX ,
</if>
<if test="sxFw != null">
SX_FW ,
</if>
<!--
<if test="czyId != null">
CZY_ID ,
</if>
<if test="czSj != null">
CZ_SJ ,
</if>
<if test="bz != null">
BZ ,
</if>
<if test="yl != null">
YL ,
</if> -->
<if test="fwqDk != null">
FWQ_DK ,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="lyqId != null">
#{lyqId,jdbcType=BIGINT},
</if>
<if test="lyqMc != null">
#{lyqMc,jdbcType=VARCHAR},
</if>
<if test="fwqId != null">
#{fwqId,jdbcType=BIGINT},
</if>
<if test="kgfs != null">
#{kgfs,jdbcType=BIGINT},
</if>
<if test="gjCkId != null">
#{gjCkId,jdbcType=BIGINT},
</if>
<if test="sfSx != null">
#{sfSx,jdbcType=BIGINT},
</if>
<if test="sxFw != null">
#{sxFw,jdbcType=VARCHAR},
</if>
<!--
<if test="czyId != null">
#{czyId,jdbcType=BIGINT},
</if>
<if test="czSj != null">
#{czSj,jdbcType=TIMESTAMP},
</if>
<if test="bz != null">
#{bz,jdbcType=VARCHAR},
</if>
<if test="yl != null">
#{yl,jdbcType=VARCHAR},
</if>
-->
<if test="fwqDk != null">
#{fwqDk,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="update" parameterType="com.nis.domain.restful.jk.JkLyq">
update JK_LYQ set SF_SX = #{sfSx,jdbcType=BIGINT} where LYQ_ID = #{lyqId,jdbcType=BIGINT}
</update>
<!--
<update id="update" parameterType="com.nis.domain.restful.jk.JkLyq">
update JK_LYQ
<set>
<if test="lyqMc != null">
LYQ_MC = #{lyqMc,jdbcType=VARCHAR},
</if>
<if test="fwqId != null">
FWQ_ID = #{fwqId,jdbcType=BIGINT},
</if>
<if test="kgfs != null">
KGFS = #{kgfs,jdbcType=BIGINT},
</if>
<if test="gjCkId != null">
GJ_CK_ID = #{gjCkId,jdbcType=BIGINT},
</if>
<if test="sfSx != null">
SF_SX = #{sfSx,jdbcType=BIGINT},
</if>
<if test="sxFw != null">
SX_FW = #{sxFw,jdbcType=VARCHAR},
</if>
<if test="czyId != null">
CZY_ID = #{czyId,jdbcType=BIGINT},
</if>
<if test="czSj != null">
CZ_SJ = #{czSj,jdbcType=TIMESTAMP},
</if>
<if test="bz != null">
BZ = #{bz,jdbcType=VARCHAR},
</if>
<if test="yl != null">
YL = #{yl,jdbcType=VARCHAR},
</if>
<if test="fwqDk != null">
FWQ_DK = #{fwqDk,jdbcType=BIGINT},
</if>
</set>
where LYQ_ID = #{lyqId,jdbcType=BIGINT}
</update>
-->
</mapper>