Commit beb94ebd by 墨竹

feat:成员同步修改

parent 9b4f9bcf
......@@ -43,7 +43,11 @@ public interface StaffApiService {
*/
void wxGetAdd(String userId, String wxEnterpriseId);
/**
* 成员修改
* @param staffDTO
* @param departmentIds
*/
void staffEdit(StaffDTO staffDTO, String departmentIds);
/**
......
package com.gic.haoban.manage.service.service;
import java.util.List;
import com.gic.api.base.commons.Page;
import com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO;
import com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated;
import java.util.List;
public interface StaffDepartmentRelatedService {
List<TabHaobanStaffDepartmentRelated> listByDepartmentId(String departmentId);
......@@ -40,5 +39,4 @@ public interface StaffDepartmentRelatedService {
public int update(TabHaobanStaffDepartmentRelated tab);
}
......@@ -19,7 +19,7 @@ public interface StaffService {
void updateByPrimaryKey(TabHaobanStaff tab);
int delByuserid(String staffId);
int delByStaffId(String staffId);
/**
* 选择用户id和企业标识
......
package com.gic.haoban.manage.service.service.impl;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gic.api.base.commons.Page;
import com.gic.commons.util.EntityUtil;
import com.gic.haoban.common.utils.StringUtil;
import com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO;
import com.gic.haoban.manage.service.dao.mapper.StaffDepartmentRelatedMapper;
import com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated;
import com.gic.haoban.manage.service.service.StaffDepartmentRelatedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.Date;
import java.util.List;
@Service
public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelatedService {
......@@ -62,12 +59,11 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
tab.setStatusFlag(0);
tab.setUpdateTime(new Date());
mapper.updateByPrimaryKeySelective(tab);
}
@Override
public void delByUserid(String userid) {
mapper.delByUserid(userid);
}
@Override
......@@ -102,4 +98,5 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
public int update(TabHaobanStaffDepartmentRelated tab) {
return mapper.updateByPrimaryKeySelective(tab);
}
}
......@@ -110,7 +110,7 @@ public class StaffServiceImpl implements StaffService {
}
@Override
public int delByuserid(String staffId) {
public int delByStaffId(String staffId) {
TabHaobanStaff staff = new TabHaobanStaff();
staff.setStaffId(staffId);
staff.setStatusFlag(0);
......
......@@ -215,10 +215,11 @@
and status_flag = 1
group by department_id
</select>
<update id="delByUserid" >
update tab_haoban_staff_department_related
set
status_flag = 0
status_flag = 0,update_time = now()
where wx_user_id = #{userid,jdbcType=VARCHAR}
</update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment