|
@@ -3,15 +3,17 @@
|
|
<mapper namespace="com.xt.js.gkaq.frame.mappers.OrgModelMapper" >
|
|
<mapper namespace="com.xt.js.gkaq.frame.mappers.OrgModelMapper" >
|
|
<resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.OrgModel" >
|
|
<resultMap id="BaseResultMap" type="com.xt.js.gkaq.frame.model.OrgModel" >
|
|
<id column="ID" property="id" jdbcType="VARCHAR" />
|
|
<id column="ID" property="id" jdbcType="VARCHAR" />
|
|
- <result column="NAME" property="name" jdbcType="OTHER" />
|
|
|
|
|
|
+ <result column="NAME" property="name" jdbcType="VARCHAR" />
|
|
<result column="ORG_TYPE" property="orgType" jdbcType="VARCHAR" />
|
|
<result column="ORG_TYPE" property="orgType" jdbcType="VARCHAR" />
|
|
- <result column="REMARK" property="remark" jdbcType="OTHER" />
|
|
|
|
|
|
+ <result column="REMARK" property="remark" jdbcType="VARCHAR" />
|
|
<result column="PID" property="pid" jdbcType="VARCHAR" />
|
|
<result column="PID" property="pid" jdbcType="VARCHAR" />
|
|
<result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
|
|
<result column="SORTNO" property="sortno" jdbcType="DECIMAL" />
|
|
<result column="CODE" property="code" jdbcType="VARCHAR" />
|
|
<result column="CODE" property="code" jdbcType="VARCHAR" />
|
|
<result column="SZD" property="szd" jdbcType="VARCHAR" />
|
|
<result column="SZD" property="szd" jdbcType="VARCHAR" />
|
|
<result column="SZD_NAME" property="szdName" jdbcType="VARCHAR" />
|
|
<result column="SZD_NAME" property="szdName" jdbcType="VARCHAR" />
|
|
<result column="STATE" property="state" jdbcType="CHAR" />
|
|
<result column="STATE" property="state" jdbcType="CHAR" />
|
|
|
|
+ <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
|
+ <result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
delete from AQ_BASIC_FRAME_ORG
|
|
delete from AQ_BASIC_FRAME_ORG
|
|
@@ -21,32 +23,38 @@
|
|
insert into AQ_BASIC_FRAME_ORG (ID, NAME, ORG_TYPE,
|
|
insert into AQ_BASIC_FRAME_ORG (ID, NAME, ORG_TYPE,
|
|
REMARK, PID, SORTNO,
|
|
REMARK, PID, SORTNO,
|
|
CODE, SZD, SZD_NAME,
|
|
CODE, SZD, SZD_NAME,
|
|
- STATE)
|
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=OTHER}, #{orgType,jdbcType=VARCHAR},
|
|
|
|
- #{remark,jdbcType=OTHER}, #{pid,jdbcType=VARCHAR}, #{sortno,jdbcType=DECIMAL},
|
|
|
|
|
|
+ STATE, CREATE_TIME, UPDATE_TIME
|
|
|
|
+ )
|
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orgType,jdbcType=VARCHAR},
|
|
|
|
+ #{remark,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{sortno,jdbcType=DECIMAL},
|
|
#{code,jdbcType=VARCHAR}, #{szd,jdbcType=VARCHAR}, #{szdName,jdbcType=VARCHAR},
|
|
#{code,jdbcType=VARCHAR}, #{szd,jdbcType=VARCHAR}, #{szdName,jdbcType=VARCHAR},
|
|
- #{state,jdbcType=CHAR})
|
|
|
|
|
|
+ #{state,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
+ )
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.OrgModel" >
|
|
<update id="updateByPrimaryKey" parameterType="com.xt.js.gkaq.frame.model.OrgModel" >
|
|
update AQ_BASIC_FRAME_ORG
|
|
update AQ_BASIC_FRAME_ORG
|
|
- set NAME = #{name,jdbcType=OTHER},
|
|
|
|
|
|
+ set NAME = #{name,jdbcType=VARCHAR},
|
|
ORG_TYPE = #{orgType,jdbcType=VARCHAR},
|
|
ORG_TYPE = #{orgType,jdbcType=VARCHAR},
|
|
- REMARK = #{remark,jdbcType=OTHER},
|
|
|
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
PID = #{pid,jdbcType=VARCHAR},
|
|
PID = #{pid,jdbcType=VARCHAR},
|
|
SORTNO = #{sortno,jdbcType=DECIMAL},
|
|
SORTNO = #{sortno,jdbcType=DECIMAL},
|
|
CODE = #{code,jdbcType=VARCHAR},
|
|
CODE = #{code,jdbcType=VARCHAR},
|
|
SZD = #{szd,jdbcType=VARCHAR},
|
|
SZD = #{szd,jdbcType=VARCHAR},
|
|
SZD_NAME = #{szdName,jdbcType=VARCHAR},
|
|
SZD_NAME = #{szdName,jdbcType=VARCHAR},
|
|
- STATE = #{state,jdbcType=CHAR}
|
|
|
|
|
|
+ STATE = #{state,jdbcType=CHAR},
|
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
- select ID, NAME, ORG_TYPE, REMARK, PID, SORTNO, CODE, SZD, SZD_NAME, STATE
|
|
|
|
|
|
+ select ID, NAME, ORG_TYPE, REMARK, PID, SORTNO, CODE, SZD, SZD_NAME, STATE, CREATE_TIME,
|
|
|
|
+ UPDATE_TIME
|
|
from AQ_BASIC_FRAME_ORG
|
|
from AQ_BASIC_FRAME_ORG
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
</select>
|
|
</select>
|
|
<select id="selectAll" resultMap="BaseResultMap" >
|
|
<select id="selectAll" resultMap="BaseResultMap" >
|
|
- select ID, NAME, ORG_TYPE, REMARK, PID, SORTNO, CODE, SZD, SZD_NAME, STATE
|
|
|
|
|
|
+ select ID, NAME, ORG_TYPE, REMARK, PID, SORTNO, CODE, SZD, SZD_NAME, STATE, CREATE_TIME,
|
|
|
|
+ UPDATE_TIME
|
|
from AQ_BASIC_FRAME_ORG
|
|
from AQ_BASIC_FRAME_ORG
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|