From 47d3c331a04ce44b756973217f85a4a04ea45be0 Mon Sep 17 00:00:00 2001 From: luxin Date: Fri, 1 Sep 2017 14:47:07 +0800 Subject: Add NS mysql table Add NS mysql table and mybatis mapper file Change-Id: Ieea386e4898f2a20a5644dfcc8bea545bd98505c Issue-Id:VFC-216 Signed-off-by: luxin --- .../resources/mybatis/mysql/NsEntityMapper.xml | 143 +++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 ResmanagementService/service/src/main/resources/mybatis/mysql/NsEntityMapper.xml (limited to 'ResmanagementService/service/src/main/resources/mybatis/mysql') diff --git a/ResmanagementService/service/src/main/resources/mybatis/mysql/NsEntityMapper.xml b/ResmanagementService/service/src/main/resources/mybatis/mysql/NsEntityMapper.xml new file mode 100644 index 0000000..a792694 --- /dev/null +++ b/ResmanagementService/service/src/main/resources/mybatis/mysql/NsEntityMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + ID, NAME, NSD_ID, DESCRIPTION, STATUS, CTEATE_TIME, LAST_UPDATE + + + + + delete from ns + where ID = #{id,jdbcType=VARCHAR} + + + insert into ns (ID, NAME, NSD_ID, + DESCRIPTION, STATUS, CTEATE_TIME, + LAST_UPDATE) + values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{nsdId,jdbcType=VARCHAR}, + #{description,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{cteateTime,jdbcType=VARCHAR}, + #{lastUpdate,jdbcType=VARCHAR}) + + + insert into ns + + + ID, + + + NAME, + + + NSD_ID, + + + DESCRIPTION, + + + STATUS, + + + CTEATE_TIME, + + + LAST_UPDATE, + + + + + #{id,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{nsdId,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{cteateTime,jdbcType=VARCHAR}, + + + #{lastUpdate,jdbcType=VARCHAR}, + + + + + update ns + + + NAME = #{name,jdbcType=VARCHAR}, + + + NSD_ID = #{nsdId,jdbcType=VARCHAR}, + + + DESCRIPTION = #{description,jdbcType=VARCHAR}, + + + STATUS = #{status,jdbcType=VARCHAR}, + + + CTEATE_TIME = #{cteateTime,jdbcType=VARCHAR}, + + + LAST_UPDATE = #{lastUpdate,jdbcType=VARCHAR}, + + + where ID = #{id,jdbcType=VARCHAR} + + + update ns + set NAME = #{name,jdbcType=VARCHAR}, + NSD_ID = #{nsdId,jdbcType=VARCHAR}, + DESCRIPTION = #{description,jdbcType=VARCHAR}, + STATUS = #{status,jdbcType=VARCHAR}, + CTEATE_TIME = #{cteateTime,jdbcType=VARCHAR}, + LAST_UPDATE = #{lastUpdate,jdbcType=VARCHAR} + where ID = #{id,jdbcType=VARCHAR} + + \ No newline at end of file -- cgit 1.2.3-korg