|
|
@ -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> |
|
|
|
|
|
|
|