|
|
|
|
@@ -0,0 +1,93 @@
|
|
|
|
|
<?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.systemService.SystemServiceInfoDao">
|
|
|
|
|
|
|
|
|
|
<resultMap id="systemServiceInfoMap" type="com.nis.domain.SystemServiceInfo">
|
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
|
<result column="service_id" property="serviceId"/>
|
|
|
|
|
<result column="service_name" property="serviceName"/>
|
|
|
|
|
<result column="service_desc" property="serviceDesc"/>
|
|
|
|
|
<result column="action" property="action"/>
|
|
|
|
|
<result column="is_valid" property="isValid"/>
|
|
|
|
|
<result column="service_type" property="serviceType"/>
|
|
|
|
|
<result column="creator_id" property="creator.id"/>
|
|
|
|
|
<result column="create_time" property="createTime"/>
|
|
|
|
|
<result column="editor_id" property="editor.id"/>
|
|
|
|
|
<result column="edit_time" property="editTime"/>
|
|
|
|
|
<collection property="serviceConfigInfoList" column="{service_id=service_id}" select="findSysServiceConfigInfo"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<select id="findList" resultMap="systemServiceInfoMap" parameterType="systemServiceInfo">
|
|
|
|
|
select
|
|
|
|
|
ssi.id,
|
|
|
|
|
ssi.service_id,
|
|
|
|
|
ssi.service_name,
|
|
|
|
|
ssi.service_desc,
|
|
|
|
|
ssi.action,
|
|
|
|
|
ssi.is_valid,
|
|
|
|
|
ssi.service_type,
|
|
|
|
|
ssi.creator_id as "creator.id",
|
|
|
|
|
suc.login_id as "creator.loginId",
|
|
|
|
|
suc.name as "creator.name",
|
|
|
|
|
ssi.create_time,
|
|
|
|
|
ssi.editor_id as "editor.id",
|
|
|
|
|
sue.login_id as "editor.login_id",
|
|
|
|
|
sue.name as "editor.name",
|
|
|
|
|
ssi.edit_time
|
|
|
|
|
from system_service_info ssi
|
|
|
|
|
left join sys_user suc on suc.id=ssi.creator_id
|
|
|
|
|
left join sys_user sue on sue.id=ssi.editor_id
|
|
|
|
|
where 1=1
|
|
|
|
|
<if test="serviceName != null and serviceName != ''">
|
|
|
|
|
and ssi.service_name like CONCAT('%', #{serviceName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null">
|
|
|
|
|
and ssi.action=#{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="serviceType != null">
|
|
|
|
|
and ssi.service_type=#{serviceType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isValid != null">
|
|
|
|
|
and ssi.is_valid=#{isValid}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="get">
|
|
|
|
|
select
|
|
|
|
|
ssi.id,
|
|
|
|
|
ssi.service_id,
|
|
|
|
|
ssi.service_name,
|
|
|
|
|
ssi.service_desc,
|
|
|
|
|
ssi.action,
|
|
|
|
|
ssi.is_valid,
|
|
|
|
|
ssi.service_type,
|
|
|
|
|
ssi.creator_id as "creator.id",
|
|
|
|
|
suc.login_id as "creator.login_id",
|
|
|
|
|
suc.name as "creator.name",
|
|
|
|
|
ssi.create_time,
|
|
|
|
|
ssi.editor_id as "editor.id",
|
|
|
|
|
sue.login_id as "editor.login_id",
|
|
|
|
|
sue.name as "editor.name",
|
|
|
|
|
ssi.edit_time
|
|
|
|
|
from system_service_info ssi
|
|
|
|
|
left join sys_user suc on suc.id=ssi.creator_id
|
|
|
|
|
left join sys_user sue on sue.id=ssi.editor_id
|
|
|
|
|
where ssi.id=#{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findSysServiceConfigInfo" resultType="serviceConfigInfo">
|
|
|
|
|
select
|
|
|
|
|
id,
|
|
|
|
|
table_name,
|
|
|
|
|
table_desc,
|
|
|
|
|
table_type,
|
|
|
|
|
maat_table,
|
|
|
|
|
service_id,
|
|
|
|
|
is_valid
|
|
|
|
|
from
|
|
|
|
|
service_config_info
|
|
|
|
|
where
|
|
|
|
|
service_id=#{service_id} and is_valid=1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|