Browse Source

政府端-部门模块代码补漏

dev_shibei_match
sunyuchao 5 years ago
parent
commit
54294a9ed1
  1. 7
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerStaffDepartmentDao.java
  2. 14
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerStaffDepartmentDao.xml

7
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/dao/CustomerStaffDepartmentDao.java

@ -33,5 +33,12 @@ import java.util.List;
@Mapper
public interface CustomerStaffDepartmentDao extends BaseDao<CustomerStaffDepartmentEntity> {
/**
*
* @param departmentId
* @return
* * @Author sun
* @Description 查询部门下工作人员的用户Id集合
*/
List<String> selectUserIdByDepartmentId(@Param("departmentId") String departmentId);
}

14
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerStaffDepartmentDao.xml

@ -3,18 +3,6 @@
<mapper namespace="com.epmet.dao.CustomerStaffDepartmentDao">
<resultMap type="com.epmet.entity.CustomerStaffDepartmentEntity" id="customerStaffDepartmentMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="userId" column="USER_ID"/>
<result property="departmentId" column="DEPARTMENT_ID"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<select id="selectUserIdByDepartmentId" resultType="java.lang.String">
SELECT
user_id
@ -22,7 +10,7 @@
customer_staff_department
WHERE
del_flag = '0'
AND department_id = #{}
AND department_id = #{departmentId}
</select>

Loading…
Cancel
Save