解决develop版本 启动报错找不到ConfigCompileTest.class的问题
删除group相关dao
This commit is contained in:
@@ -1,338 +0,0 @@
|
||||
<?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.ConfigCompileDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.restful.ConfigCompileTest">
|
||||
<id column="COMPILE_ID" jdbcType="BIGINT" property="compileId" />
|
||||
<result column="SERVICE" jdbcType="BIGINT" property="service" />
|
||||
<result column="ACTION" jdbcType="INTEGER" property="action" />
|
||||
<result column="CONT_TYPE" jdbcType="INTEGER" property="contType" />
|
||||
<result column="ATTR_TYPE" jdbcType="INTEGER" property="attrType" />
|
||||
<result column="CONT_LABEL" jdbcType="VARCHAR" property="contLabel" />
|
||||
<result column="Task_id" jdbcType="INTEGER" property="taskId" />
|
||||
<result column="Guarantee_ID" jdbcType="INTEGER" property="guaranteeId" />
|
||||
<result column="AFFAIR_ID" jdbcType="INTEGER" property="affAirId" />
|
||||
<result column="TOPIC_ID" jdbcType="INTEGER" property="topIcId" />
|
||||
<result column="DO_BLACKLIST" jdbcType="BIGINT" property="doBlackList" />
|
||||
<result column="DO_LOG" jdbcType="INTEGER" property="doLog" />
|
||||
<result column="EFFECTIVE_RANGE" jdbcType="VARCHAR" property="effectiveRange" />
|
||||
<result column="ACTIVE_SYS" jdbcType="INTEGER" property="activeSys" />
|
||||
<result column="CONFIG_PERCENT" jdbcType="DOUBLE" property="configPercent" />
|
||||
<result column="CONFIG_OPTION" jdbcType="DOUBLE" property="configOption" />
|
||||
<result column="START_TIME" jdbcType="TIMESTAMP" property="startTime" />
|
||||
<result column="END_TIME" jdbcType="TIMESTAMP" property="endTime" />
|
||||
<result column="USER_REGION" jdbcType="VARCHAR" property="userRegion" />
|
||||
<result column="IS_VALID" jdbcType="INTEGER" property="isValid" />
|
||||
<result column="GROUP_NUM" jdbcType="INTEGER" property="groupNum" />
|
||||
<result column="FATHER_CFG_ID" jdbcType="BIGINT" property="fatherCfgId" />
|
||||
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
||||
<result column="LAST_UPDATE" jdbcType="TIMESTAMP" property="lastUpdate" />
|
||||
<result column="PROC_SEQ" jdbcType="BIGINT" property="procSeq" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="configCompileSql">
|
||||
COMPILE_ID,SERVICE,ACTION,CONT_TYPE,ATTR_TYPE,CONT_LABEL,Task_id,Guarantee_ID,
|
||||
AFFAIR_ID,TOPIC_ID,DO_BLACKLIST,DO_LOG,EFFECTIVE_RANGE,ACTIVE_SYS,
|
||||
CONFIG_PERCENT,CONFIG_OPTION,START_TIME,END_TIME,USER_REGION,
|
||||
IS_VALID,GROUP_NUM,FATHER_CFG_ID,OP_TIME,LAST_UPDATE,PROC_SEQ
|
||||
</sql>
|
||||
<select id="queryConfigCompileById" parameterType="java.lang.Long"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="configCompileSql" />
|
||||
from CONFIG_COMPILE where COMPILE_ID = #{compileId ,jdbcType=BIGINT }
|
||||
</select>
|
||||
<select id="queryConfigCompileByIdArr" parameterType="java.lang.String"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="configCompileSql" />
|
||||
from CONFIG_COMPILE where COMPILE_ID in (${compileIdArr})
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="queryAllCompile" resultMap="BaseResultMap"
|
||||
parameterType="com.nis.domain.restful.ConfigCompileTest">
|
||||
select
|
||||
<include refid="configCompileSql" />
|
||||
from CONFIG_COMPILE
|
||||
<where>
|
||||
<if test="searchEndTime != null and searchEndTime!=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{searchEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="searchStartTime != null and searchStartTime!=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{searchStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="service != null">
|
||||
AND SERVICE = #{service}
|
||||
</if>
|
||||
<if test="compileId != null ">
|
||||
AND COMPILE_ID = #{compileId}
|
||||
</if>
|
||||
</where>
|
||||
order by OP_TIME
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getCompileSeq" resultType="java.lang.Long">
|
||||
select
|
||||
SEQ_COMPILEID.NEXTVAL from dual;
|
||||
</select>
|
||||
<select id="getGroupSeq" resultType="java.lang.Long">
|
||||
select SEQ_GROUPID.NEXTVAL
|
||||
from dual;
|
||||
</select>
|
||||
<select id="getRegionSeq" resultType="java.lang.Long">
|
||||
select SEQ_REGIONID.NEXTVAL
|
||||
from dual;
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<insert id="saveCompileBatch" parameterType="java.util.List">
|
||||
<!-- insert /*+append*/ into CONFIG_COMPILE (COMPILE_ID ,SERVICE ,ACTION
|
||||
, -->
|
||||
insert into CONFIG_COMPILE (COMPILE_ID ,SERVICE ,ACTION ,
|
||||
CONT_TYPE,
|
||||
ATTR_TYPE,
|
||||
CONT_LABEL,
|
||||
Task_id,
|
||||
Guarantee_ID,
|
||||
AFFAIR_ID,
|
||||
TOPIC_ID,
|
||||
DO_BLACKLIST ,DO_LOG ,EFFECTIVE_RANGE ,
|
||||
ACTIVE_SYS,
|
||||
CONFIG_PERCENT
|
||||
,CONFIG_OPTION
|
||||
,START_TIME ,END_TIME ,
|
||||
USER_REGION,
|
||||
IS_VALID,GROUP_NUM,FATHER_CFG_ID
|
||||
,OP_TIME,LAST_UPDATE
|
||||
<!-- ,PROC_SEQ -->
|
||||
)
|
||||
|
||||
<foreach collection="list" item="item" index="index" open="("
|
||||
close=")" separator="union">
|
||||
select
|
||||
#{item.compileId,jdbcType=BIGINT},
|
||||
#{item.service,jdbcType=BIGINT},
|
||||
#{item.action,jdbcType=INTEGER},
|
||||
#{item.contType,jdbcType=INTEGER},
|
||||
#{item.attrType,jdbcType=INTEGER},
|
||||
#{item.contLabel,jdbcType=INTEGER},
|
||||
#{item.taskId,jdbcType=INTEGER},
|
||||
#{item.guaranteeId,jdbcType=INTEGER},
|
||||
#{item.affAirId,jdbcType=INTEGER},
|
||||
#{item.topIcId,jdbcType=INTEGER},
|
||||
#{item.doBlackList,jdbcType=BIGINT},
|
||||
#{item.doLog,jdbcType=INTEGER},
|
||||
#{item.effectiveRange,jdbcType=VARCHAR},
|
||||
#{item.activeSys,jdbcType=INTEGER},
|
||||
#{item.configPercent,jdbcType=DOUBLE},
|
||||
#{item.configOption,jdbcType=DOUBLE},
|
||||
#{item.startTime,jdbcType=TIMESTAMP},
|
||||
#{item.endTime,jdbcType=TIMESTAMP},
|
||||
#{item.userRegion,jdbcType=VARCHAR},
|
||||
#{item.isValid,jdbcType=INTEGER},
|
||||
#{item.groupNum,jdbcType=INTEGER },
|
||||
#{item.fatherCfgId,jdbcType=BIGINT},
|
||||
#{item.opTime,jdbcType=TIMESTAMP},
|
||||
sysdate
|
||||
<!-- ,#{item.procSeq,jdbcType=BIGINT} -->
|
||||
from dual
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<insert id="saveConfigCompile" parameterType="com.nis.domain.restful.ConfigCompile">
|
||||
<!-- <selectKey keyProperty="compileId" resultType="java.lang.Long" -->
|
||||
<!-- order="BEFORE"> 取消使用序列,界面会将id传过来 -->
|
||||
<!-- select seq_compileId.nextval from dual -->
|
||||
<!-- </selectKey> -->
|
||||
insert into CONFIG_COMPILE (COMPILE_ID ,SERVICE ,ACTION ,
|
||||
<if test="contType !=null">
|
||||
CONT_TYPE,
|
||||
</if>
|
||||
<if test="attrType !=null">
|
||||
ATTR_TYPE,
|
||||
</if>
|
||||
<if test="contLabel !=null and contLabel !=''">
|
||||
CONT_LABEL,
|
||||
</if>
|
||||
<if test="taskId !=null">
|
||||
Task_id,
|
||||
</if>
|
||||
<if test="guaranteeId !=null">
|
||||
Guarantee_ID,
|
||||
</if>
|
||||
<if test="affAirId !=null">
|
||||
AFFAIR_ID,
|
||||
</if>
|
||||
<if test="topIcId !=null">
|
||||
TOPIC_ID,
|
||||
</if>
|
||||
<if test="lastUpdate !=null">
|
||||
LAST_UPDATE,
|
||||
</if>
|
||||
DO_BLACKLIST ,DO_LOG ,EFFECTIVE_RANGE ,ACTIVE_SYS,
|
||||
CONFIG_PERCENT
|
||||
,CONFIG_OPTION
|
||||
,START_TIME ,END_TIME ,
|
||||
<if test="userRegion != null and userRegion !=''">
|
||||
USER_REGION,
|
||||
</if>
|
||||
IS_VALID,GROUP_NUM,FATHER_CFG_ID ,OP_TIME) VALUES(
|
||||
#{compileId,jdbcType=BIGINT},
|
||||
#{service, jdbcType=BIGINT},
|
||||
#{action,jdbcType=INTEGER},
|
||||
<if test="contType !=null">
|
||||
#{contType,jdbcType=INTEGER },
|
||||
</if>
|
||||
<if test="attrType !=null">
|
||||
#{attrType,jdbcType=INTEGER },
|
||||
</if>
|
||||
<if test="contLabel !=null and contLabel !=''">
|
||||
#{contLabel,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="taskId !=null">
|
||||
#{taskId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="guaranteeId !=null">
|
||||
#{guaranteeId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="affAirId !=null">
|
||||
#{affAirId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="topIcId !=null">
|
||||
#{topIcId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="lastUpdate !=null">
|
||||
#{lastUpdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
#{doBlackList,jdbcType=BIGINT},
|
||||
#{doLog,jdbcType=INTEGER},
|
||||
#{effectiveRange,jdbcType=VARCHAR},
|
||||
#{activeSys,jdbcType=INTEGER},
|
||||
#{configPercent,jdbcType=DOUBLE},
|
||||
#{configOption,jdbcType=DOUBLE},
|
||||
#{startTime,jdbcType=TIMESTAMP},
|
||||
#{endTime,jdbcType=TIMESTAMP},
|
||||
<if test="userRegion != null and userRegion !=''">
|
||||
#{userRegion,jdbcType=VARCHAR},
|
||||
</if>
|
||||
#{isValid,jdbcType=INTEGER},
|
||||
#{groupNum,jdbcType=INTEGER },
|
||||
#{fatherCfgId,jdbcType=BIGINT},
|
||||
#{opTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
|
||||
<update id="updateConfigCompile" parameterType="com.nis.domain.restful.ConfigCompile">
|
||||
update CONFIG_COMPILE
|
||||
<set>
|
||||
LAST_UPDATE =sysdate,
|
||||
<if test="contType != null">
|
||||
CONT_TYPE = #{contType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="attrType != null">
|
||||
ATTR_TYPE = #{attrType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="contLabel != null and contLabel!=''">
|
||||
CONT_LABEL = #{contLabel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="taskId != null">
|
||||
Task_id = #{taskId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="guaranteeId != null">
|
||||
Guarantee_ID = #{guaranteeId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="affAirId != null">
|
||||
AFFAIR_ID = #{affAirId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="topIcId != null">
|
||||
TOPIC_ID = #{topIcId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
|
||||
<if test="activeSys != null">
|
||||
ACTIVE_SYS = #{activeSys,jdbcType=INTEGER},
|
||||
</if>
|
||||
|
||||
|
||||
<if test="effectiveRange != null and effectiveRange!=''">
|
||||
EFFECTIVE_RANGE = #{effectiveRange,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
</set>
|
||||
where COMPILE_ID = #{compileId ,jdbcType=BIGINT }
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<update id="setCompileInvalid" >
|
||||
update CONFIG_COMPILE set is_valid=#{valid,jdbcType=INTEGER } where COMPILE_ID = #{compileId ,jdbcType=BIGINT }
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <update id="updateConfigCompile" parameterType="com.nis.domain.restful.ConfigCompile">
|
||||
update CONFIG_COMPILE <set> <if test="service != null"> SERVICE = #{service,jdbcType=BIGINT},
|
||||
</if> <if test="action != null"> ACTION = #{action,jdbcType=BIGINT}, </if>
|
||||
<if test="contType != null"> CONT_TYPE =#{contType,jdbcType=INTEGER }, </if>
|
||||
<if test="attrType != null"> ATTR_TYPE =#{attrType,jdbcType=INTEGER }, </if>
|
||||
<if test="contLabel != null"> CONT_LABEL = #{contLabel,jdbcType=INTEGER },
|
||||
</if> <if test="taskId != null"> Task_id = #{taskId,jdbcType=INTEGER }, </if>
|
||||
<if test="guaranteeId != null"> Guarantee_ID=#{guaranteeId,jdbcType=INTEGER
|
||||
}, </if> <if test="affAirId != null"> AFFAIR_ID = #{ affAirId , jdbcType=INTEGER
|
||||
}, </if> <if test="topIcId != null"> TOPIC_ID = #{ topIcId , jdbcType=INTEGER
|
||||
}, </if> <if test="doBlackList != null"> DO_BLACKLIST = #{doBlackList,jdbcType=BIGINT},
|
||||
</if> <if test="doLog != null"> DO_LOG = #{doLog,jdbcType=INTEGER}, </if>
|
||||
<if test="effectiveRange != null"> EFFECTIVE_RANGE = #{effectiveRange,jdbcType=VARCHAR},
|
||||
</if> <if test="configPercent != null"> CONFIG_PERCENT = #{configPercent,jdbcType=DOUBLE},
|
||||
</if> <if test="configOption != null"> CONFIG_OPTION = #{configOption,jdbcType=DOUBLE},
|
||||
</if> <if test="startTime != null"> START_TIME = #{startTime,jdbcType=TIMESTAMP},
|
||||
</if> <if test="endTime != null"> END_TIME = #{endTime,jdbcType=TIMESTAMP},
|
||||
</if> <if test="userRegion != null and userRegion !=''"> USER_REGION = #{userRegion,jdbcType=VARCHAR},
|
||||
</if> <if test="isValid != null"> IS_VALID = #{isValid,jdbcType=INTEGER},
|
||||
</if> <if test="groupNum != null"> GROUP_NUM = #{groupNum,jdbcType=INTEGER},
|
||||
</if> <if test="fatherCfgId != null"> FATHER_CFG_ID = #{fatherCfgId,jdbcType=BIGINT},
|
||||
</if> <if test="opTime != null"> OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||||
</if> </set> where COMPILE_ID = #{compileId ,jdbcType=BIGINT } </update> -->
|
||||
<resultMap id="ConfigStateResultMap" type="com.nis.domain.restful.ConfigState">
|
||||
<result column="TABLE_NAME" jdbcType="VARCHAR" property="tableName" />
|
||||
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
<sql id="configStateSql">
|
||||
TABLE_NAME,OP_TIME
|
||||
</sql>
|
||||
<select id="queryConfigStateByTN" parameterType="java.lang.String"
|
||||
resultMap="ConfigStateResultMap">
|
||||
select
|
||||
<include refid="configStateSql" />
|
||||
from CONFIG_STATE where TABLE_NAME = #{tableName ,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<update id="updateConfigState" parameterType="map">
|
||||
update CONFIG_STATE
|
||||
<set>
|
||||
<if test="opTime != null">
|
||||
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
LAST_UPDATE = #{lastUpdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where TABLE_NAME = #{tableName ,jdbcType=VARCHAR }
|
||||
</update>
|
||||
<insert id="saveConfigState" parameterType="map">
|
||||
insert into
|
||||
CONFIG_STATE(TABLE_NAME,OP_TIME)
|
||||
values(#{tableName,jdbcType=VARCHAR},#{opTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
</mapper>
|
||||
@@ -1,53 +0,0 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.ConfigGroupRelation;
|
||||
|
||||
/**
|
||||
*
|
||||
* @ClassName: ConfigGroupRelationDao
|
||||
* @Description: TODO(配置分组Dao)
|
||||
* @author (rkg)
|
||||
* @date 2016年9月6日下午8:49:21
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface ConfigGroupRelationDao {
|
||||
/**
|
||||
* 添加配置分组信息,并返回主键
|
||||
*
|
||||
* @param record
|
||||
* @return 主键
|
||||
* @throws Exception
|
||||
*/
|
||||
public Long saveConfigGroupRelation(ConfigGroupRelation record) ;
|
||||
|
||||
/**
|
||||
* 根据主键Id修改配置分组信息
|
||||
*
|
||||
* @param record
|
||||
* @throws Exception
|
||||
*/
|
||||
public void updateConfigGroupRelation(ConfigGroupRelation record) ;
|
||||
|
||||
/**
|
||||
* 根据compileId查询对应的配置分组信息
|
||||
*
|
||||
* @param compileId
|
||||
* @return
|
||||
*/
|
||||
public List<ConfigGroupRelation> queryCompileGroupByPID(Long compileId);
|
||||
/**
|
||||
* 根据groupid查询是否有对应的有效的编译配置
|
||||
* @param GROUP_ID
|
||||
* @return
|
||||
*/
|
||||
public List<ConfigGroupRelation> queryCompileGroupByGID(Long GROUP_ID);
|
||||
|
||||
/**
|
||||
* 批量新增表配置
|
||||
* @param configGroupRelationList
|
||||
*/
|
||||
public void saveGroupBatch(List<ConfigGroupRelation> configGroupRelationList);
|
||||
}
|
||||
@@ -1,114 +0,0 @@
|
||||
<?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.ConfigGroupRelationDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.restful.ConfigGroupRelation">
|
||||
<result column="ID" jdbcType="BIGINT" property="id" />
|
||||
<result column="GROUP_ID" jdbcType="BIGINT" property="groupId" />
|
||||
<result column="COMPILE_ID" jdbcType="BIGINT" property="compileId" />
|
||||
<result column="IS_VALID" jdbcType="BIGINT" property="isValid" />
|
||||
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
||||
<result column="LAST_UPDATE" jdbcType="TIMESTAMP" property="lastUpdate" />
|
||||
<result column="PROC_SEQ" jdbcType="BIGINT" property="procSeq" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<sql id="compileGroupSql">
|
||||
ID,GROUP_ID,COMPILE_ID,IS_VALID,OP_TIME,LAST_UPDATE,PROC_SEQ
|
||||
</sql>
|
||||
<select id="queryCompileGroupByPID" parameterType="com.nis.domain.restful.ConfigGroupRelation"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="compileGroupSql" />
|
||||
from CONFIG_GROUP where COMPILE_ID = #{compileId ,jdbcType=BIGINT }
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="queryCompileGroupByGID" parameterType="com.nis.domain.restful.ConfigGroupRelation"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="compileGroupSql" />
|
||||
from CONFIG_GROUP where IS_VALID=1 GROUP_ID = #{groupId
|
||||
,jdbcType=BIGINT }
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<insert id="saveGroupBatch" parameterType="java.util.List">
|
||||
<!-- insert /*+append*/ into CONFIG_GROUP -->
|
||||
insert into CONFIG_GROUP
|
||||
(ID,GROUP_ID, COMPILE_ID, IS_VALID,
|
||||
OP_TIME,LAST_UPDATE
|
||||
<!-- ,PROC_SEQ -->
|
||||
)
|
||||
<foreach collection="list" item="item" index="index" open="("
|
||||
close=")" separator="union">
|
||||
select
|
||||
<!-- seq_groupId.nextval, -->
|
||||
#{item.id,jdbcType=BIGINT},
|
||||
#{item.groupId,jdbcType=BIGINT},
|
||||
#{item.compileId,jdbcType=BIGINT},
|
||||
#{item.isValid,jdbcType=BIGINT},
|
||||
#{item.opTime,jdbcType=TIMESTAMP},
|
||||
sysdate
|
||||
<!-- ,#{item.procSeq,jdbcType=BIGINT} -->
|
||||
from dual
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
|
||||
<insert id="saveConfigGroupRelation" parameterType="com.nis.domain.restful.ConfigGroupRelation">
|
||||
|
||||
<!-- <selectKey keyProperty="groupId" resultType="java.lang.Long" -->
|
||||
<!-- order="BEFORE"> 取消使用序列,界面会将id传过来 -->
|
||||
<!-- select seq_groupId.nextval from dual -->
|
||||
<!-- </selectKey> -->
|
||||
|
||||
insert into CONFIG_GROUP
|
||||
(ID,GROUP_ID, COMPILE_ID, IS_VALID,
|
||||
LAST_UPDATE,
|
||||
OP_TIME )
|
||||
values
|
||||
(
|
||||
<!-- #{id,jdbcType=BIGINT}, -->
|
||||
|
||||
seq_config_group.nextval,
|
||||
#{groupId,jdbcType=BIGINT},
|
||||
#{compileId,jdbcType=BIGINT},
|
||||
#{isValid,jdbcType=BIGINT},
|
||||
sysdate,
|
||||
#{opTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<update id="updateConfigGroupRelation" parameterType="com.nis.domain.restful.ConfigGroupRelation">
|
||||
UPDATE
|
||||
CONFIG_GROUP
|
||||
<set>
|
||||
<if test="isValid != null">
|
||||
IS_VALID=#{isValid , jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
OP_TIME=#{opTime , jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
LAST_UPDATE=#{lastUpdate , jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where GROUP_ID=#{groupId}
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<!-- <update id="updateConfigGroupRelation" parameterType="com.nis.domain.restful.ConfigGroupRelation">
|
||||
UPDATE CONFIG_GROUP <set> <if test="compileId != null"> COMPILE_ID=#{compileId
|
||||
, jdbcType=BIGINT}, </if> <if test="isValid != null"> IS_VALID=#{isValid
|
||||
, jdbcType=BIGINT}, </if> <if test="opTime != null"> OP_TIME=#{opTime , jdbcType=TIMESTAMP},
|
||||
</if> </set> where GROUP_ID=#{groupId} </update> -->
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user