校验战区
This commit is contained in:
@@ -52,6 +52,13 @@ public class HyIntendDevMappingDAO {
|
||||
return hyIntendDevelopementMappingMapper.selectByMappingIdList(idList);
|
||||
}
|
||||
|
||||
public List<ZoneCheckDTO> selectByOpenAreaMappingIdList(List<Long> idList){
|
||||
if (CollectionUtils.isEmpty(idList)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return hyIntendDevelopementMappingMapper.selectByOpenAreaMappingIdList(idList);
|
||||
}
|
||||
|
||||
|
||||
public int batchInsert(List<HyIntendDevelopementMappingDO> recordList){
|
||||
if (CollectionUtils.isEmpty(recordList)){
|
||||
|
||||
@@ -54,4 +54,6 @@ public interface HyIntendDevelopementMappingMapper {
|
||||
* @return
|
||||
*/
|
||||
List<ZoneCheckDTO> selectByMappingIdList(@Param("mappingIdList") List<Long> mappingIdList);
|
||||
|
||||
List<ZoneCheckDTO> selectByOpenAreaMappingIdList(@Param("openAreaMappingIdList") List<Long> openAreaMappingIdList);
|
||||
}
|
||||
@@ -130,4 +130,19 @@
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectByOpenAreaMappingIdList" resultType="com.cool.store.dto.partner.ZoneCheckDTO">
|
||||
select
|
||||
a.open_area_mapping_id as openAreaMappingId,
|
||||
b.zone_name as zoneName
|
||||
from hy_intend_developement_mapping a inner join hy_intend_dev_zone_info b on a.mapping_id = b.id
|
||||
<where>
|
||||
<if test="openAreaMappingIdList!=null and openAreaMappingIdList.size>0">
|
||||
<foreach collection="openAreaMappingIdList" open="and a.open_area_mapping_id in (" close=")" separator="," item="mappingId">
|
||||
#{mappingId}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user