Commit 573c6950 by 徐高华

废弃staff_department_related的wx_user_id

parent cec6ccf5
...@@ -12,8 +12,6 @@ public class StaffDepartmentRelatedDTO implements Serializable { ...@@ -12,8 +12,6 @@ public class StaffDepartmentRelatedDTO implements Serializable {
private String nationCode; private String nationCode;
private String wxUserId;
private String wxEnterpriseId; private String wxEnterpriseId;
private String departmentId; private String departmentId;
...@@ -62,14 +60,6 @@ public class StaffDepartmentRelatedDTO implements Serializable { ...@@ -62,14 +60,6 @@ public class StaffDepartmentRelatedDTO implements Serializable {
this.nationCode = nationCode == null ? null : nationCode.trim(); this.nationCode = nationCode == null ? null : nationCode.trim();
} }
public String getWxUserId() {
return wxUserId;
}
public void setWxUserId(String wxUserId) {
this.wxUserId = wxUserId == null ? null : wxUserId.trim();
}
public String getDepartmentId() { public String getDepartmentId() {
return departmentId; return departmentId;
} }
......
...@@ -21,7 +21,7 @@ public interface StaffDepartmentRelatedMapper { ...@@ -21,7 +21,7 @@ public interface StaffDepartmentRelatedMapper {
TabHaobanStaffDepartmentRelated getById(String staffDepartmentRelatedId); TabHaobanStaffDepartmentRelated getById(String staffDepartmentRelatedId);
int delByUserid(@Param("userid") String userId); int delByStaffid(@Param("staffId") String staffId);
TabHaobanStaffDepartmentRelated getDepartmentIdAndStaffId(@Param("departmentId")String departmentId, @Param("staffId")String staffId); TabHaobanStaffDepartmentRelated getDepartmentIdAndStaffId(@Param("departmentId")String departmentId, @Param("staffId")String staffId);
...@@ -29,8 +29,6 @@ public interface StaffDepartmentRelatedMapper { ...@@ -29,8 +29,6 @@ public interface StaffDepartmentRelatedMapper {
int countByDepartmentIds(@Param("departmentIds")List<String> departmentIds); int countByDepartmentIds(@Param("departmentIds")List<String> departmentIds);
List<TabHaobanStaffDepartmentRelated> listByWxUserId(@Param("wxUserId")String wxUserId);
List<TabHaobanStaffDepartmentRelated> listStaffDepartmentByStaffIds(@Param("staffIds")List<String> staffIds); List<TabHaobanStaffDepartmentRelated> listStaffDepartmentByStaffIds(@Param("staffIds")List<String> staffIds);
List<TabHaobanStaffDepartmentRelated> listByDepartmentIds(@Param("departmentIds")List<String> departmentIds); List<TabHaobanStaffDepartmentRelated> listByDepartmentIds(@Param("departmentIds")List<String> departmentIds);
......
...@@ -11,8 +11,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable { ...@@ -11,8 +11,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable {
private String phoneNumber; private String phoneNumber;
private String nationCode; private String nationCode;
private String wxUserId;
private String wxEnterpriseId; private String wxEnterpriseId;
...@@ -63,14 +61,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable { ...@@ -63,14 +61,6 @@ public class TabHaobanStaffDepartmentRelated implements Serializable {
this.nationCode = nationCode == null ? null : nationCode.trim(); this.nationCode = nationCode == null ? null : nationCode.trim();
} }
public String getWxUserId() {
return wxUserId;
}
public void setWxUserId(String wxUserId) {
this.wxUserId = wxUserId == null ? null : wxUserId.trim();
}
public String getDepartmentId() { public String getDepartmentId() {
return departmentId; return departmentId;
} }
......
...@@ -17,12 +17,10 @@ public interface StaffDepartmentRelatedService { ...@@ -17,12 +17,10 @@ public interface StaffDepartmentRelatedService {
void del(StaffDepartmentRelatedDTO related); void del(StaffDepartmentRelatedDTO related);
void delByUserid(String userid); void delByStaffid(String userid);
TabHaobanStaffDepartmentRelated getDepartmentIdAndStaffId(String departmentId, String staffId); TabHaobanStaffDepartmentRelated getDepartmentIdAndStaffId(String departmentId, String staffId);
List<TabHaobanStaffDepartmentRelated> listByWxUserId(String wxUserId);
StaffDepartmentRelatedDTO getById(String staffDepartmentStaffRelatedId); StaffDepartmentRelatedDTO getById(String staffDepartmentStaffRelatedId);
/** /**
......
...@@ -19,13 +19,7 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated ...@@ -19,13 +19,7 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
private StaffDepartmentRelatedMapper mapper; private StaffDepartmentRelatedMapper mapper;
@Override @Override
public List<TabHaobanStaffDepartmentRelated> listByWxUserId(String wxUserId){
List<TabHaobanStaffDepartmentRelated> list = mapper.listByWxUserId(wxUserId);
return list;
}
@Override
public List<TabHaobanStaffDepartmentRelated> listByDepartmentId(String departmentId) { public List<TabHaobanStaffDepartmentRelated> listByDepartmentId(String departmentId) {
return mapper.listByDepartmentId(departmentId); return mapper.listByDepartmentId(departmentId);
} }
...@@ -61,8 +55,8 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated ...@@ -61,8 +55,8 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
} }
@Override @Override
public void delByUserid(String userid) { public void delByStaffid(String staffid) {
mapper.delByUserid(userid); mapper.delByStaffid(staffid);
} }
@Override @Override
......
...@@ -333,7 +333,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -333,7 +333,7 @@ public class MessageApiServiceImpl implements MessageApiService {
//销毁卡券 //销毁卡券
innerApiService.delCardByStaffId(staffId); innerApiService.delCardByStaffId(staffId);
//删除导购好友关联关系表 //删除导购好友关联关系表
this.staffDepartmentRelatedService.delByUserid(userid); this.staffDepartmentRelatedService.delByStaffid(staffId);
//删除员工表 //删除员工表
this.staffService.delByStaffId(staffId); this.staffService.delByStaffId(staffId);
//员工解绑 //员工解绑
...@@ -720,7 +720,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -720,7 +720,7 @@ public class MessageApiServiceImpl implements MessageApiService {
//销毁卡券 //销毁卡券
innerApiService.delCardByStaffId(staffId); innerApiService.delCardByStaffId(staffId);
//删除导购好友关联关系表 //删除导购好友关联关系表
this.staffDepartmentRelatedService.delByUserid(userid); this.staffDepartmentRelatedService.delByStaffid(staffId);
//删除员工表 //删除员工表
this.staffService.delByStaffId(staffId); this.staffService.delByStaffId(staffId);
//员工解绑 //员工解绑
......
...@@ -369,7 +369,6 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -369,7 +369,6 @@ public class StaffApiServiceImpl implements StaffApiService {
if (!hasRelationMap.containsKey(departmentDTO.getDepartmentId())) { if (!hasRelationMap.containsKey(departmentDTO.getDepartmentId())) {
StaffDepartmentRelatedDTO dto = new StaffDepartmentRelatedDTO(); StaffDepartmentRelatedDTO dto = new StaffDepartmentRelatedDTO();
dto.setPhoneNumber(staff.getPhoneNumber()); dto.setPhoneNumber(staff.getPhoneNumber());
dto.setWxUserId(user.getUserid());
dto.setStaffId(staff.getStaffId()); dto.setStaffId(staff.getStaffId());
dto.setStaffName(user.getName()); dto.setStaffName(user.getName());
dto.setWxEnterpriseId(wxEnterpriseId); dto.setWxEnterpriseId(wxEnterpriseId);
...@@ -403,7 +402,6 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -403,7 +402,6 @@ public class StaffApiServiceImpl implements StaffApiService {
if (null != departmentRelated) { if (null != departmentRelated) {
departmentRelated.setPhoneNumber(staff.getPhoneNumber()); departmentRelated.setPhoneNumber(staff.getPhoneNumber());
departmentRelated.setStaffName(staff.getStaffName()); departmentRelated.setStaffName(staff.getStaffName());
departmentRelated.setWxUserId(staff.getWxUserId());
departmentRelated.setNationCode(staff.getNationCode()); departmentRelated.setNationCode(staff.getNationCode());
departmentRelated.setUpdateTime(new Date()); departmentRelated.setUpdateTime(new Date());
staffDepartmentRelatedService.update(departmentRelated); staffDepartmentRelatedService.update(departmentRelated);
...@@ -512,7 +510,6 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -512,7 +510,6 @@ public class StaffApiServiceImpl implements StaffApiService {
related.setNationCode(staff.getNationCode()); related.setNationCode(staff.getNationCode());
related.setPhoneNumber(staff.getPhoneNumber()); related.setPhoneNumber(staff.getPhoneNumber());
related.setStatusFlag(1); related.setStatusFlag(1);
related.setWxUserId(staff.getWxUserId());
related.setWxEnterpriseId(staff.getWxEnterpriseId()); related.setWxEnterpriseId(staff.getWxEnterpriseId());
related.setStaffName(staffName); related.setStaffName(staffName);
staffDepartmentRelatedService.add(related); staffDepartmentRelatedService.add(related);
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
<result column="staff_id" property="staffId" jdbcType="VARCHAR"/> <result column="staff_id" property="staffId" jdbcType="VARCHAR"/>
<result column="phone_number" property="phoneNumber" jdbcType="VARCHAR"/> <result column="phone_number" property="phoneNumber" jdbcType="VARCHAR"/>
<result column="nation_code" property="nationCode" jdbcType="VARCHAR"/> <result column="nation_code" property="nationCode" jdbcType="VARCHAR"/>
<result column="wx_user_id" property="wxUserId" jdbcType="VARCHAR"/>
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR"/> <result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR"/>
<result column="department_id" property="departmentId" jdbcType="VARCHAR"/> <result column="department_id" property="departmentId" jdbcType="VARCHAR"/>
<result column="status_flag" property="statusFlag" jdbcType="INTEGER"/> <result column="status_flag" property="statusFlag" jdbcType="INTEGER"/>
...@@ -16,7 +15,7 @@ ...@@ -16,7 +15,7 @@
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/> <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
staff_department_related_id, staff_id, phone_number, nation_code, wx_user_id, department_id, staff_department_related_id, staff_id, phone_number, nation_code, department_id,
status_flag, clerk_code, create_time, update_time,wx_enterprise_id,staff_name status_flag, clerk_code, create_time, update_time,wx_enterprise_id,staff_name
</sql> </sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String"> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
...@@ -28,11 +27,11 @@ ...@@ -28,11 +27,11 @@
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated"> <insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated">
insert into tab_haoban_staff_department_related (staff_department_related_id, staff_id, insert into tab_haoban_staff_department_related (staff_department_related_id, staff_id,
phone_number, nation_code, wx_user_id, phone_number, nation_code,
department_id, status_flag, clerk_code, department_id, status_flag, clerk_code,
create_time, update_time, wx_enterprise_id, staff_name) create_time, update_time, wx_enterprise_id, staff_name)
values (#{staffDepartmentRelatedId,jdbcType=VARCHAR}, #{staffId,jdbcType=VARCHAR}, values (#{staffDepartmentRelatedId,jdbcType=VARCHAR}, #{staffId,jdbcType=VARCHAR},
#{phoneNumber,jdbcType=VARCHAR}, #{nationCode,jdbcType=VARCHAR}, #{wxUserId,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, #{nationCode,jdbcType=VARCHAR},
#{departmentId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER}, #{clerkCode,jdbcType=VARCHAR}, #{departmentId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER}, #{clerkCode,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{wxEnterpriseId}, #{staffName}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{wxEnterpriseId}, #{staffName})
</insert> </insert>
...@@ -50,9 +49,6 @@ ...@@ -50,9 +49,6 @@
<if test="nationCode != null"> <if test="nationCode != null">
nation_code = #{nationCode,jdbcType=VARCHAR}, nation_code = #{nationCode,jdbcType=VARCHAR},
</if> </if>
<if test="wxUserId != null">
wx_user_id = #{wxUserId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null"> <if test="wxEnterpriseId != null">
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}, wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if> </if>
...@@ -129,14 +125,6 @@ ...@@ -129,14 +125,6 @@
limit 1 limit 1
</select> </select>
<select id="listByWxUserId" resultMap="BaseResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List"/>
from tab_haoban_staff_department_related
where wx_user_id = #{wxUserId}
and status_flag = 1
</select>
<select id="getDepartmentIdAndCode" resultMap="BaseResultMap" parameterType="java.lang.String"> <select id="getDepartmentIdAndCode" resultMap="BaseResultMap" parameterType="java.lang.String">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
......
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