工作组查询 修改
This commit is contained in:
+27
-1
@@ -8,8 +8,34 @@
|
||||
</select>
|
||||
|
||||
<select id="researchAllDatas" resultType="com.adc.da.slrs.wgStandorpolicyInfo.entity.WgStandorpolicyInfo">
|
||||
select * from wg_standorpolicy_info
|
||||
select wg_standorpolicy_info.id ,wg_standorpolicy_info.wg_id , wg_standorpolicy_info.stand_id
|
||||
<if test="type == 0 ">
|
||||
, sar_standards_info.STAND_NAME as name ,sar_standards_info.STAND_TYPE as dataType
|
||||
</if>
|
||||
<if test="type == 1 ">
|
||||
,sar_laws_stand_info.LAWS_NAME as name
|
||||
</if>
|
||||
from wg_standorpolicy_info
|
||||
left join wg_work_group on wg_work_group.id = wg_standorpolicy_info.wg_id
|
||||
<if test="type == 0">
|
||||
left join sar_standards_info on sar_standards_info.ID = wg_standorpolicy_info.stand_id
|
||||
</if>
|
||||
<if test="type == 1">
|
||||
left join sar_laws_stand_info on sar_laws_stand_info.ID = wg_standorpolicy_info.stand_id
|
||||
</if>
|
||||
where wg_work_group.type = #{type}
|
||||
</select>
|
||||
|
||||
<select id="researchAllDatasPartTwo" resultType="com.adc.da.slrs.wgStandorpolicyInfo.entity.WgStandorpolicyInfo">
|
||||
select wg_standorpolicy_info.id ,wg_standorpolicy_info.wg_id , wg_standorpolicy_info.stand_id
|
||||
<if test="type == 0 ">
|
||||
, sar_bussioness_stand.STAND_NAME as name
|
||||
</if>
|
||||
from wg_standorpolicy_info
|
||||
left join wg_work_group on wg_work_group.id = wg_standorpolicy_info.wg_id
|
||||
<if test="type == 0">
|
||||
left join sar_bussioness_stand on sar_bussioness_stand.ID = wg_standorpolicy_info.stand_id
|
||||
</if>
|
||||
where wg_work_group.type = #{type}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
<!--select="com.adc.da.slrs.wgDept.dao.WgDeptDao.researchDatas"/>-->
|
||||
<!--<association property="wgNetInfos" javaType="java.util.List" column="id"-->
|
||||
<!--select="com.adc.da.slrs.wgNetInfo.dao.WgNetInfoDao.researchDatas"/>-->
|
||||
<association property="wgMeetingInfos" javaType="java.util.List" column="id"
|
||||
select="com.adc.da.slrs.wgMeetingInfo.dao.WgMeetingInfoDao.researchDatas"/>
|
||||
<association property="children" javaType="java.util.List" column="id"
|
||||
select="researchDownLevel"/>
|
||||
<!--<association property="wgMeetingInfos" javaType="java.util.List" column="id"-->
|
||||
<!--select="com.adc.da.slrs.wgMeetingInfo.dao.WgMeetingInfoDao.researchDatas"/>-->
|
||||
<!--<association property="children" javaType="java.util.List" column="id"-->
|
||||
<!--select="researchDownLevel"/>-->
|
||||
</resultMap>
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
select * from wg_work_group where wg_work_group.pid = #{data} and wg_work_group.status = #{status}
|
||||
</select>
|
||||
|
||||
<select id="researchAllData" resultType="com.adc.da.slrs.wgWorkGroup.entity.WgWorkGroupShowDTO">
|
||||
<select id="researchAllData" resultMap="WgWorkGroups">
|
||||
select * from wg_work_group where wg_work_group.type =#{type}
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user