主数据按钮排序调整,保存到菜单按钮排序修改
This commit is contained in:
parent
9035801444
commit
9b3c01c86d
|
@ -2217,6 +2217,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
flag = true;
|
||||
sysButtonConfigEntities.get(i1).setSts("Y");
|
||||
sysButtonConfigEntities.get(i1).setUpdate();
|
||||
sysButtonConfigEntities.get(i1).setSorts(i+1L);
|
||||
sysButtonConfigDao.update(sysButtonConfigEntities.get(i1));
|
||||
if(sysPopedomOperateEntities != null && sysPopedomOperateEntities.size() > 0){
|
||||
for (int i2 = 0; i2 < sysPopedomOperateEntities.size(); i2++) {
|
||||
|
@ -2243,6 +2244,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
xz.setStyles("");
|
||||
xz.setBtnFunction("new");
|
||||
xz.setRemark("主数据新建按钮");
|
||||
xz.setSorts(i+1L);
|
||||
xz.setCreate();
|
||||
sysButtonConfigDao.save(xz);
|
||||
}
|
||||
|
@ -2257,6 +2259,8 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
cz.setStyles("");
|
||||
cz.setBtnFunction("resize");
|
||||
cz.setRemark("主数据重置按钮");
|
||||
cz.setSorts(i+1L);
|
||||
|
||||
cz.setCreate();
|
||||
sysButtonConfigDao.save(cz);
|
||||
}
|
||||
|
@ -2271,6 +2275,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
cx.setStyles("");
|
||||
cx.setBtnFunction("search");
|
||||
cx.setRemark("主数据查询按钮");
|
||||
cx.setSorts(i+1L);
|
||||
cx.setCreate();
|
||||
sysButtonConfigDao.save(cx);
|
||||
}
|
||||
|
@ -2285,6 +2290,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
xg.setStyles("");
|
||||
xg.setBtnFunction("edit");
|
||||
xg.setRemark("主数据修改按钮");
|
||||
xg.setSorts(i+1L);
|
||||
xg.setCreate();
|
||||
sysButtonConfigDao.save(xg);
|
||||
}
|
||||
|
@ -2299,6 +2305,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
sc.setStyles("");
|
||||
sc.setBtnFunction("dele");
|
||||
sc.setRemark("主数据删除按钮");
|
||||
sc.setSorts(i+1L);
|
||||
sc.setCreate();
|
||||
sysButtonConfigDao.save(sc);
|
||||
}
|
||||
|
@ -2313,6 +2320,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
ck.setStyles("");
|
||||
ck.setBtnFunction("view");
|
||||
ck.setRemark("主数据查看按钮");
|
||||
ck.setSorts(i+1L);
|
||||
ck.setCreate();
|
||||
sysButtonConfigDao.save(ck);
|
||||
}
|
||||
|
@ -2326,6 +2334,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
xf.setStyles("");
|
||||
xf.setBtnFunction("send");
|
||||
xf.setRemark("主数据下发按钮");
|
||||
xf.setSorts(i+1L);
|
||||
xf.setCreate();
|
||||
sysButtonConfigDao.save(xf);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.sysnew.popedomOperate.dao.impl.SysPopedomOperateDaoImpl">
|
||||
|
||||
<resultMap id="get-SysPopedomOperateEntity-result" type="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity" >
|
||||
<resultMap id="get-SysPopedomOperateEntity-result"
|
||||
type="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="objectId" column="object_id" jdbcType="VARCHAR"/>
|
||||
<result property="menuId" column="menu_id" jdbcType="VARCHAR"/>
|
||||
|
@ -18,7 +19,7 @@
|
|||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "SysPopedomOperateEntity_Base_Column_List">
|
||||
<sql id="SysPopedomOperateEntity_Base_Column_List">
|
||||
id
|
||||
,object_id
|
||||
,menu_id
|
||||
|
@ -36,154 +37,165 @@
|
|||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-SysPopedomOperateEntity-result">
|
||||
select
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List" />
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List"/>
|
||||
from sys_popedom_operate where id = #{ id } and sts='Y'
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-SysPopedomOperateEntity-result" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
<select id="entity_list_base" resultMap="get-SysPopedomOperateEntity-result"
|
||||
parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
select
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List" />
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List"/>
|
||||
from sys_popedom_operate
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id = #{objectId} </if>
|
||||
<if test="menuId != null and menuId != ''"> and menu_id = #{menuId} </if>
|
||||
<if test="operate != null and operate != ''"> and operate = #{operate} </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="objectId != null and objectId != ''">and object_id = #{objectId}</if>
|
||||
<if test="menuId != null and menuId != ''">and menu_id = #{menuId}</if>
|
||||
<if test="operate != null and operate != ''">and operate = #{operate}</if>
|
||||
<if test="kindId != null and kindId != ''">and kind_id = #{kindId}</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer"
|
||||
parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
select count(1) from sys_popedom_operate
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id = #{objectId} </if>
|
||||
<if test="menuId != null and menuId != ''"> and menu_id = #{menuId} </if>
|
||||
<if test="operate != null and operate != ''"> and operate = #{operate} </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="objectId != null and objectId != ''">and object_id = #{objectId}</if>
|
||||
<if test="menuId != null and menuId != ''">and menu_id = #{menuId}</if>
|
||||
<if test="operate != null and operate != ''">and operate = #{operate}</if>
|
||||
<if test="kindId != null and kindId != ''">and kind_id = #{kindId}</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-SysPopedomOperateEntity-result" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
<select id="entity_list_like" resultMap="get-SysPopedomOperateEntity-result"
|
||||
parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
select
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List" />
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List"/>
|
||||
from sys_popedom_operate
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id like concat('%',#{objectId},'%') </if>
|
||||
<if test="menuId != null and menuId != ''"> and menu_id like concat('%',#{menuId},'%') </if>
|
||||
<if test="operate != null and operate != ''"> and operate like concat('%',#{operate},'%') </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id like concat('%',#{kindId},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||
<if test="objectId != null and objectId != ''">and object_id like concat('%',#{objectId},'%')</if>
|
||||
<if test="menuId != null and menuId != ''">and menu_id like concat('%',#{menuId},'%')</if>
|
||||
<if test="operate != null and operate != ''">and operate like concat('%',#{operate},'%')</if>
|
||||
<if test="kindId != null and kindId != ''">and kind_id like concat('%',#{kindId},'%')</if>
|
||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||
concat('%',#{create_user_id},'%')
|
||||
</if>
|
||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
||||
concat('%',#{modify_user_id},'%')
|
||||
</if>
|
||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SysPopedomOperateentity_list_or" resultMap="get-SysPopedomOperateEntity-result" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="SysPopedomOperateentity_list_or" resultMap="get-SysPopedomOperateEntity-result"
|
||||
parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
select
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List" />
|
||||
<include refid="SysPopedomOperateEntity_Base_Column_List"/>
|
||||
from sys_popedom_operate
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> or object_id = #{objectId} </if>
|
||||
<if test="menuId != null and menuId != ''"> or menu_id = #{menuId} </if>
|
||||
<if test="operate != null and operate != ''"> or operate = #{operate} </if>
|
||||
<if test="kindId != null and kindId != ''"> or kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
<if test="id != null and id != ''">or id = #{id}</if>
|
||||
<if test="objectId != null and objectId != ''">or object_id = #{objectId}</if>
|
||||
<if test="menuId != null and menuId != ''">or menu_id = #{menuId}</if>
|
||||
<if test="operate != null and operate != ''">or operate = #{operate}</if>
|
||||
<if test="kindId != null and kindId != ''">or kind_id = #{kindId}</if>
|
||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity" >
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
insert into sys_popedom_operate(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="objectId != null and objectId != ''"> object_id , </if>
|
||||
<if test="menuId != null and menuId != ''"> menu_id , </if>
|
||||
<if test="operate != null and operate != ''"> operate , </if>
|
||||
<if test="kindId != null and kindId != ''"> kind_id , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
<if test="objectId != null and objectId != ''">object_id ,</if>
|
||||
<if test="menuId != null and menuId != ''">menu_id ,</if>
|
||||
<if test="operate != null and operate != ''">operate ,</if>
|
||||
<if test="kindId != null and kindId != ''">kind_id ,</if>
|
||||
<if test="sorts != null">sorts ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="objectId != null and objectId != ''"> #{objectId} ,</if>
|
||||
<if test="menuId != null and menuId != ''"> #{menuId} ,</if>
|
||||
<if test="operate != null and operate != ''"> #{operate} ,</if>
|
||||
<if test="kindId != null and kindId != ''"> #{kindId} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="id != null and id != ''">#{id} ,</if>
|
||||
<if test="objectId != null and objectId != ''">#{objectId} ,</if>
|
||||
<if test="menuId != null and menuId != ''">#{menuId} ,</if>
|
||||
<if test="operate != null and operate != ''">#{operate} ,</if>
|
||||
<if test="kindId != null and kindId != ''">#{kindId} ,</if>
|
||||
<if test="sorts != null">#{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||
<if test="create_time != null">#{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch">
|
||||
insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
(#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},
|
||||
'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch">
|
||||
insert into sys_popedom_operate(object_id, menu_id, operate, kind_id, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.objectId},#{entity.menuId},#{entity.operate},#{entity.kindId},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
|
@ -199,49 +211,57 @@
|
|||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity" >
|
||||
update sys_popedom_operate set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="objectId != null and objectId != ''"> object_id = #{objectId},</if>
|
||||
<if test="menuId != null and menuId != ''"> menu_id = #{menuId},</if>
|
||||
<if test="operate != null and operate != ''"> operate = #{operate},</if>
|
||||
<if test="kindId != null and kindId != ''"> kind_id = #{kindId},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity" >
|
||||
update sys_popedom_operate set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity" >
|
||||
update sys_popedom_operate set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
company_id = values(company_id)
|
||||
</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
update sys_popedom_operate set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="objectId != null and objectId != ''">object_id = #{objectId},</if>
|
||||
<if test="menuId != null and menuId != ''">menu_id = #{menuId},</if>
|
||||
<if test="operate != null and operate != ''">operate = #{operate},</if>
|
||||
<if test="kindId != null and kindId != ''">kind_id = #{kindId},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null">create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||
<if test="sorts != null">sorts = #{sorts} ,</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
update sys_popedom_operate
|
||||
set sts= 'N',
|
||||
modify_time = #{modify_time},
|
||||
modify_user_id = #{modify_user_id}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.sysnew.popedomOperate.entity.SysPopedomOperateEntity">
|
||||
update sys_popedom_operate set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="objectId != null and objectId != ''"> and object_id = #{objectId} </if>
|
||||
<if test="menuId != null and menuId != ''"> and menu_id = #{menuId} </if>
|
||||
<if test="operate != null and operate != ''"> and operate = #{operate} </if>
|
||||
<if test="kindId != null and kindId != ''"> and kind_id = #{kindId} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="objectId != null and objectId != ''">and object_id = #{objectId}</if>
|
||||
<if test="menuId != null and menuId != ''">and menu_id = #{menuId}</if>
|
||||
<if test="operate != null and operate != ''">and operate = #{operate}</if>
|
||||
<if test="kindId != null and kindId != ''">and kind_id = #{kindId}</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from sys_popedom_operate where id = #{id}
|
||||
</delete>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete
|
||||
from sys_popedom_operate
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
Loading…
Reference in New Issue