上传代码
This commit is contained in:
47
src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.xml
Normal file
47
src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?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.JkFfjInfoDao">
|
||||
<resultMap id="JkFfjInfoResultMap" type="com.nis.domain.restful.jk.JkFfjInfo">
|
||||
<id column="G_ID" jdbcType="BIGINT" property="gId" />
|
||||
<result column="FFJ_ID" jdbcType="BIGINT" property="ffjId" />
|
||||
<result column="FFJ_MC" jdbcType="VARCHAR" property="ffjMc" />
|
||||
<result column="FFJ_IP" jdbcType="VARCHAR" property="ffjIp" />
|
||||
<result column="FFJ_JS" jdbcType="BIGINT" property="ffjJs" />
|
||||
<result column="KG_FW" jdbcType="BIGINT" property="kgFw" />
|
||||
<result column="SF_SX" jdbcType="BIGINT" property="sfSx" />
|
||||
<result column="SX_FW" jdbcType="VARCHAR" property="sxFw" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
G_ID, FFJ_ID, FFJ_MC, FFJ_IP, FFJ_JS, KG_FW, SF_SX, SX_FW
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="JkFfjInfoResultMap">
|
||||
select <include refid="Base_Column_List" />
|
||||
from JK_FFJ
|
||||
where FFJ_ID = #{ffjId,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from JK_FFJ
|
||||
where FFJ_ID = #{ffjId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkFfjInfo">
|
||||
insert into JK_FFJ (FFJ_ID, FFJ_MC, FFJ_IP, FFJ_JS, KG_FW, SF_SX, SX_FW)
|
||||
values (#{ffjId,jdbcType=BIGINT},
|
||||
#{ffjMc,jdbcType=VARCHAR}, #{ffjIp,jdbcType=VARCHAR},
|
||||
#{ffjJs,jdbcType=BIGINT}, #{kgFw,jdbcType=BIGINT}, #{sfSx,jdbcType=BIGINT},
|
||||
#{sxFw,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkFfjInfo">
|
||||
update JK_FFJ
|
||||
<set>
|
||||
<if test="sfSx != null">SF_SX = #{sfSx,jdbcType=BIGINT},</if>
|
||||
</set>
|
||||
where FFJ_ID = #{ffjId,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user