Parcourir la source

联络人电话

abai il y a 1 mois
Parent
commit
6ac950272f

+ 6 - 0
ruoyi-modules/ruoyi-business/src/main/java/com/ruoyi/business/domain/vo/BjReleasedVo.java

@@ -226,6 +226,12 @@ public class BjReleasedVo implements Serializable {
     private String publishers;
 
     /**
+     * 联系人加手机号
+     */
+    @Schema(description = "联系人加手机号")
+    private String userPhone;
+
+    /**
      * 通报事项类别中文
      */
     @Schema(description = "通报事项类别中文")

+ 14 - 0
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjHistoricalDataMapper.xml

@@ -161,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               <result property="buildDate" column="build_date"/>
               <result property="csnu" column="csnu"/>
               <result property="callSign" column="call_sign"/>
+              <result property="userPhone" column="userPhone"/>
               <result property="releasedUnitStr" column="releasedUnitStr"/>
               <result property="conmStr" column="conmStr"/>
               <result property="names" column="names"/>
@@ -210,6 +211,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               br.sid,
               br.released_status,
               brm.*,
+              bn.userPhone,
               sd.dept_name as releasedUnitStr,
               bl.conmStr,
               blm.names,
@@ -252,6 +254,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               bl.notified_matters_id = blm2.notified_matters_id
               left join ry.sys_dept sd on
               sd.dept_id = br.released_unit
+              left join (
+              select
+              unit_name,
+              LISTAGG(concat(contact_name,' ',contact_number),',') as userPhone
+              from
+              ry.bj_ntlo
+              where
+              msg_recipient = '1'
+              and ab_status = '1'
+              group by
+              unit_name) bn on
+              bn.unit_name = blm2.receiving_unit
               left join ry.sys_dict_data sdd on
               br.released_status = sdd.dict_value
               and sdd.dict_type = 'bj_notify_os'

+ 13 - 0
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjNotificationInformationMapper.xml

@@ -161,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               <result property="buildDate" column="build_date"/>
               <result property="csnu" column="csnu"/>
               <result property="callSign" column="call_sign"/>
+              <result property="userPhone" column="userPhone"/>
               <result property="releasedUnitStr" column="releasedUnitStr"/>
               <result property="conmStr" column="conmStr"/>
               <result property="names" column="names"/>
@@ -252,6 +253,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               bl.notified_matters_id = blm2.notified_matters_id
               left join ry.sys_dept sd on
               sd.dept_id = br.released_unit
+              left join (
+              select
+              unit_name,
+              LISTAGG(concat(contact_name,' ',contact_number),',') as userPhone
+              from
+              ry.bj_ntlo
+              where
+              msg_recipient = '1'
+              and ab_status = '1'
+              group by
+              unit_name) bn on
+              bn.unit_name = blm2.receiving_unit
               left join ry.sys_dict_data sdd on
               br.released_status = sdd.dict_value
               and sdd.dict_type = 'bj_notify_os'

+ 13 - 0
ruoyi-modules/ruoyi-business/src/main/resources/mapper/business/BjSuperiorLeaderMapper.xml

@@ -161,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               <result property="buildDate" column="build_date"/>
               <result property="csnu" column="csnu"/>
               <result property="callSign" column="call_sign"/>
+              <result property="userPhone" column="userPhone"/>
               <result property="releasedUnitStr" column="releasedUnitStr"/>
               <result property="conmStr" column="conmStr"/>
               <result property="names" column="names"/>
@@ -252,6 +253,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               bl.notified_matters_id = blm2.notified_matters_id
               left join ry.sys_dept sd on
               sd.dept_id = br.released_unit
+              left join (
+              select
+              unit_name,
+              LISTAGG(concat(contact_name,' ',contact_number),',') as userPhone
+              from
+              ry.bj_ntlo
+              where
+              msg_recipient = '1'
+              and ab_status = '1'
+              group by
+              unit_name) bn on
+              bn.unit_name = blm2.receiving_unit
               left join ry.sys_dict_data sdd on
               br.released_status = sdd.dict_value
               and sdd.dict_type = 'bj_notify_os'