bug修复
This commit is contained in:
+19
@@ -116,6 +116,15 @@
|
||||
<if test="qu.projectEndDate != null">
|
||||
AND library.project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
<if test="qu.managementHostName != null">
|
||||
AND library.management_host_name LIKE concat(concat('%',#{qu.managementHostName}),'%')
|
||||
</if>
|
||||
<if test="qu.developmentHostName != null">
|
||||
AND library.development_host_name LIKE concat(concat('%',#{qu.developmentHostName}),'%')
|
||||
</if>
|
||||
<if test="qu.categoryName != null">
|
||||
AND library.category_name LIKE concat(concat('%',#{qu.categoryName}),'%')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
</select>
|
||||
@@ -186,6 +195,16 @@
|
||||
<if test="qu.projectEndDate != null">
|
||||
AND library.project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
<if test="qu.managementHostName != null">
|
||||
AND library.management_host_name LIKE concat(concat('%',#{qu.managementHostName}),'%')
|
||||
</if>
|
||||
<if test="qu.developmentHostName != null">
|
||||
AND library.development_host_name LIKE concat(concat('%',#{qu.developmentHostName}),'%')
|
||||
</if>
|
||||
<if test="qu.categoryName != null">
|
||||
AND library.category_name LIKE concat(concat('%',#{qu.categoryName}),'%')
|
||||
</if>
|
||||
|
||||
</if>
|
||||
|
||||
limit ${(page-1)*size},${size}
|
||||
|
||||
+36
-7
@@ -310,28 +310,57 @@
|
||||
) t3 WHERE ischild != '0'
|
||||
</select>
|
||||
|
||||
<!--<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">-->
|
||||
<!--SELECT count(*) FROM-->
|
||||
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id-->
|
||||
<!--</select>-->
|
||||
|
||||
<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
SELECT count(*) FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id
|
||||
SAR_FILE_SPLIT_MENU ,(SELECT getSplitChildList(#{id}) childListStr) t WHERE FIND_IN_SET(ID,childListStr)
|
||||
</select>
|
||||
|
||||
<!--<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >-->
|
||||
<!--update SAR_FILE_SPLIT_MENU-->
|
||||
<!--set display_seq = display_seq + #{childrenCount},-->
|
||||
<!--modify_time = #{modifyTime},-->
|
||||
<!--modify_user = #{modifyUser}-->
|
||||
<!--where id in ( SELECT id FROM-->
|
||||
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)-->
|
||||
<!--</update>-->
|
||||
|
||||
<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq + #{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id in ( SELECT id FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
||||
</update>
|
||||
where id in (SELECT id
|
||||
FROM SAR_FILE_SPLIT_MENU,
|
||||
(SELECT getSplitChildList(#{id}) childListStr) t
|
||||
WHERE FIND_IN_SET(ID, childListStr)
|
||||
)
|
||||
</update>
|
||||
|
||||
<!--<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >-->
|
||||
<!--update SAR_FILE_SPLIT_MENU-->
|
||||
<!--set display_seq = display_seq - #{childrenCount},-->
|
||||
<!--modify_time = #{modifyTime},-->
|
||||
<!--modify_user = #{modifyUser}-->
|
||||
<!--where id in ( SELECT id FROM-->
|
||||
<!--SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)-->
|
||||
<!--</update>-->
|
||||
|
||||
<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.adc.da.slrs.standardSplit.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq - #{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id in ( SELECT id FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
||||
</update>
|
||||
where id in (SELECT id
|
||||
FROM SAR_FILE_SPLIT_MENU,
|
||||
(SELECT getSplitChildList(#{id}) childListStr) t
|
||||
WHERE FIND_IN_SET(ID, childListStr)
|
||||
)
|
||||
</update>
|
||||
|
||||
<!--oracle 写法-->
|
||||
<!--<select id="queryAllChildrenByid" resultMap="BaseResultMap" parameterType="com.adc.da.lawss.entity.SarFileSplitMenuEO">-->
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
<?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.adc.da.slrs.wgCommittee.dao.WgCommitteeDao">
|
||||
|
||||
<select id="getData" resultType="com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO">
|
||||
SELECT wg_committee.id, wg_committee.committee_name as committeeName ,wg_committee.committee_director as committeeDirector
|
||||
,t1.UNAME as committeeDirectorName,wg_committee.committee_secretary as committeeSecretary,t2.UNAME as committeeSecretaryName,
|
||||
wg_committee.committeer ,
|
||||
(
|
||||
SELECT GROUP_CONCAT(t3.UNAME) FROM wg_committee_user
|
||||
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||
WHERE wg_committee_user.id = wg_committee.committeer
|
||||
) as committor,
|
||||
(
|
||||
SELECT GROUP_CONCAT(t3.USID) FROM wg_committee_user
|
||||
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||
WHERE wg_committee_user.id = wg_committee.committeer
|
||||
) as committorId
|
||||
from wg_committee
|
||||
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||
where 1=1
|
||||
<if test="committeeName != null and ''!=committeeName">
|
||||
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||
</if>
|
||||
limit ${(page-1)*pageSize},${pageSize}
|
||||
</select>
|
||||
|
||||
<select id="getDataCount" resultType="java.lang.Integer">
|
||||
SELECT count(wg_committee.id)
|
||||
from wg_committee
|
||||
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||
where 1=1
|
||||
<if test="committeeName != null and ''!=committeeName">
|
||||
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getDataWk" resultType="com.adc.da.slrs.wgCommittee.entity.WgCommitteeDTO">
|
||||
SELECT wg_committee.id, wg_committee.committee_name as committeeName ,wg_committee.committee_director as committeeDirector
|
||||
,t1.UNAME as committeeDirectorName,wg_committee.committee_secretary as committeeSecretary,t2.UNAME as committeeSecretaryName,
|
||||
t3.UNAME as committor,t3.USID as committorId,wg_committee.committeer ,
|
||||
from wg_committee
|
||||
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||
LEFT JOIN wg_committee_user on wg_committee_user.id = wg_committee.committeer
|
||||
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||
where 1=1
|
||||
<if test="committeeName != null and ''!=committeeName">
|
||||
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||
</if>
|
||||
limit ${(page-1)*pageSize},${pageSize}
|
||||
</select>
|
||||
|
||||
<select id="getDataCountWk" resultType="java.lang.Integer">
|
||||
SELECT count(wg_committee.id)
|
||||
from wg_committee
|
||||
LEFT JOIN ts_user t1 on t1.USID = wg_committee.committee_director
|
||||
LEFT JOIN ts_user t2 on t2.USID = wg_committee.committee_secretary
|
||||
LEFT JOIN wg_committee_user on wg_committee_user.id = wg_committee.committeer
|
||||
LEFT JOIN ts_user t3 on t3.USID = wg_committee_user.committer_id
|
||||
where 1=1
|
||||
<if test="committeeName != null and ''!=committeeName">
|
||||
and wg_committee.committee_name like concat(concat('%',#{committeeName}),'%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<?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.adc.da.slrs.wgCommitteeUser.dao.WgCommitteeUserDao">
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user