(1)增强字符串多选修改

(2)增强字符串权限增加
This commit is contained in:
wangxin
2018-04-11 18:47:02 +08:00
parent a7b4b1edfb
commit 7118b82d6d
8 changed files with 214 additions and 126 deletions

View File

@@ -9,7 +9,7 @@ import com.nis.web.dao.CrudDao;
import com.nis.web.dao.MyBatisDao;
/**
* IP相关配置数据处理类
* 增强字符串相关配置数据处理类
* @author dell
*
*/
@@ -17,6 +17,7 @@ import com.nis.web.dao.MyBatisDao;
public interface ComplexStringCfgDao extends CrudDao<ComplexkeywordCfg>{
public ComplexkeywordCfg getById(@Param("tableName")String tableName,@Param("cfgId")Long id) ;
public ComplexkeywordCfg get(ComplexkeywordCfg entity) ;
public List<ComplexkeywordCfg> getList(@Param("tableName")String tableName,@Param("ids")String ids) ;
public List<ComplexkeywordCfg> findList(ComplexkeywordCfg entity) ;
public int insert(ComplexkeywordCfg entity) ;
public int updateByPrimaryKeySelective(ComplexkeywordCfg entity) ;
@@ -27,4 +28,5 @@ public interface ComplexStringCfgDao extends CrudDao<ComplexkeywordCfg>{
public int getIsAudit(@Param("tableName")String tableName,@Param("cfgId")Long id);
public int getIsAudit(ComplexkeywordCfg entity);
public int deleteByCompileId(ComplexkeywordCfg entity);
public int delete(@Param("tableName")String tableName,@Param("ids")String ids);
}

View File

@@ -100,6 +100,11 @@
AND IS_VALID!=-1
</trim>
</select>
<select id="getList" resultMap="ComplexStringMap">
SELECT
<include refid="ComplexkeywordCfg_Column_List_with_id" />
FROM ${tableName} WHERE IS_VALID!=-1 AND COMPILE_ID in (${ids})
</select>
<select id="findList" resultMap="ComplexStringMapWithUser">
select
<include refid="ComplexkeywordCfg_Column_List_with_id_alias"/>
@@ -419,4 +424,15 @@
<update id="deleteByCompileId" parameterType="com.nis.domain.configuration.ComplexkeywordCfg" >
update ${tableName} set is_valid = -1, editor_id = #{editorId,jdbcType=INTEGER} , edit_time = #{editTime,jdbcType=TIMESTAMP} where compile_id = #{compileId,jdbcType=INTEGER}
</update>
<update id="delete" >
update ${tableName} set is_valid = -1, editor_id = #{editorId,jdbcType=INTEGER} , edit_time = #{editTime,jdbcType=TIMESTAMP}
<trim prefix="WHERE" prefixOverrides="AND |OR ">
<if test="cfgId !=null ">
AND cfg_id = #{cfgId,jdbcType=BIGINT}
</if>
<if test="compileId !=null ">
AND compile_id = #{compileId,jdbcType=INTEGER}
</if>
</trim>
</update>
</mapper>

View File

@@ -437,7 +437,7 @@
<update id="deleteByCompileId" parameterType="com.nis.domain.configuration.BaseStringCfg" >
update ${tableName} set is_valid = -1, editor_id = #{editorId,jdbcType=INTEGER} , edit_time = #{editTime,jdbcType=TIMESTAMP} where compile_id = #{compileId,jdbcType=INTEGER}
</update>
<update id="delete" parameterType="com.nis.domain.configuration.BaseStringCfg" >
<update id="delete" >
update ${tableName} set is_valid = -1, editor_id = #{editorId,jdbcType=INTEGER} , edit_time = #{editTime,jdbcType=TIMESTAMP}
<trim prefix="WHERE" prefixOverrides="AND |OR ">
<if test="cfgId !=null ">