delete from screen_customer_dept where CUSTOMER_ID = #{customerId} AND DEPT_ID IN #{item} insert into screen_customer_dept ( ID, CUSTOMER_ID, DEPT_ID, DEPT_NAME, PARENT_AGENCY_ID, AREA_MARKS, CENTER_MARK, DEPT_MARK, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) values ( (SELECT REPLACE(UUID(), '-', '') AS id), #{item.customerId}, #{item.deptId}, #{item.deptName}, #{item.parentAgencyId}, #{item.areaMarks}, #{item.centerMark}, #{item.deptMark}, 0, 0, 'APP_USER', now(), 'APP_USER', now() )