| | |
| | | package cn.gistack.sm.sjztmd.mapper; |
| | | |
| | | import cn.gistack.common.node.TreeNode; |
| | | import cn.gistack.sm.notice.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import cn.gistack.sm.sjztmd.vo.AttAdBaseVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | @MapKey("id") |
| | | Map<String, TreeNode> selectAttAdBaseTree(String parentCode, Map<String, Object> param); |
| | | |
| | | /** |
| | | * 根据水库编号查询除责任人之外的人员信息 |
| | | * @param res_cd |
| | | * @return |
| | | */ |
| | | List<PersonVO> getPersonListByResGuid(@Param("res_cd")String res_cd); |
| | | } |
| | |
| | | ORDER BY region."ad_code" |
| | | </select> |
| | | |
| | | <!--根据水库编号查询除责任人之外的人员信息--> |
| | | <select id="getPersonListByResGuid" resultType="cn.gistack.sm.notice.vo.PersonVO"> |
| | | select bu.real_name,bu.phone,bd.ad_code from YWXT.blade_user bu left join YWXT.blade_dept bd on instr(bu.dept_id,bd.id)>0 and bd.is_deleted = 0 |
| | | where bu.is_deleted = 0 |
| | | and bd.ad_code in ( |
| | | select "ad_code" from SJZT_MD."att_ad_base" |
| | | start with "ad_code" = (select "interior_ad_guid" from SJZT_MD."att_res_base" where "guid" = #{res_cd} ) |
| | | CONNECT BY PRIOR "p_ad_code" = "ad_code" |
| | | ) |
| | | and bu.phone is not null and bu.phone!='' |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | package cn.gistack.sm.sjztmd.mapper; |
| | | |
| | | import cn.gistack.sm.notice.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import cn.gistack.sm.sjztmd.entity.PatrolResponsiblePerson; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | |
| | | |
| | | List<PatrolResponsiblePerson> getPatrolResponsiblePersonAll(); |
| | | |
| | | /** |
| | | * 根据水库编号及责任人类型查询相关责任人信息 |
| | | * @param res_cd |
| | | * @param personList |
| | | * @return |
| | | */ |
| | | @DS("zt") |
| | | List<PersonVO> getPersonListByResGuid(@Param("res_cd")String res_cd,@Param("list") List<String> personList); |
| | | } |
| | |
| | | #{attResManagePerson.sysResource}) |
| | | </insert> |
| | | |
| | | |
| | | <!--根据水库编号及责任人类型查询相关责任人信息--> |
| | | <select id="getPersonListByResGuid" resultType="cn.gistack.sm.notice.vo.PersonVO"> |
| | | select "user_name" as name,"user_phone" as phone |
| | | from "SJZT_MD"."att_res_manage_person" |
| | | where "res_guid" = #{res_cd} |
| | | <choose> |
| | | <when test="list!=null and list.size()>0"> |
| | | and "type" in |
| | | <foreach collection="list" item="type" separator ="," open="(" close=")"> |
| | | #{type} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and "type" in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | package cn.gistack.sm.sjztmd.service; |
| | | |
| | | import cn.gistack.sm.notice.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import cn.gistack.sm.sjztmd.vo.AttAdBaseVO; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | |
| | | * @return |
| | | */ |
| | | Object selectAttAdBaseTree(String parentCode, Map<String, Object> obj); |
| | | |
| | | /** |
| | | * 根据水库编号查询除责任人之外的人员信息 |
| | | * @param res_cd |
| | | * @return |
| | | */ |
| | | List<PersonVO> getPersonListByResGuid(String res_cd); |
| | | } |
| | |
| | | package cn.gistack.sm.sjztmd.service; |
| | | |
| | | import cn.gistack.sm.notice.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import cn.gistack.sm.sjztmd.entity.PatrolResponsiblePerson; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | |
| | | */ |
| | | List<PatrolResponsiblePerson> getPatrolResponsiblePersonAll(); |
| | | |
| | | /** |
| | | * 根据水库编号及责任人类型查询相关责任人信息 |
| | | * @param res_cd |
| | | * @param personList |
| | | * @return |
| | | */ |
| | | List<PersonVO> getPersonListByResGuid(String res_cd, List<String> personList); |
| | | } |
| | |
| | | |
| | | import cn.gistack.common.node.TreeNode; |
| | | import cn.gistack.common.utils.NodeTreeUtil; |
| | | import cn.gistack.sm.notice.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import cn.gistack.sm.sjztmd.mapper.AttAdBaseMapper; |
| | | import cn.gistack.sm.sjztmd.service.IAttAdBaseService; |
| | |
| | | } |
| | | return nodeTree; |
| | | } |
| | | |
| | | /** |
| | | * 根据水库编号查询除责任人之外的人员信息 |
| | | * @param res_cd |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<PersonVO> getPersonListByResGuid(String res_cd) { |
| | | return baseMapper.getPersonListByResGuid(res_cd); |
| | | } |
| | | } |
| | |
| | | package cn.gistack.sm.sjztmd.service.impl; |
| | | |
| | | import cn.gistack.sm.notice.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import cn.gistack.sm.sjztmd.entity.PatrolResponsiblePerson; |
| | | import cn.gistack.sm.sjztmd.mapper.AttResManagePersonMapper; |
| | |
| | | public List<PatrolResponsiblePerson> getPatrolResponsiblePersonAll() { |
| | | return baseMapper.getPatrolResponsiblePersonAll(); |
| | | } |
| | | |
| | | /** |
| | | * 根据水库编号及责任人类型查询相关责任人信息 |
| | | * @param res_cd |
| | | * @param personList |
| | | * @return |
| | | */ |
| | | @Override |
| | | @DS("zt") |
| | | public List<PersonVO> getPersonListByResGuid(String res_cd, List<String> personList) { |
| | | return baseMapper.getPersonListByResGuid(res_cd,personList); |
| | | } |
| | | } |