Commit 3f4c3373 by jinxin

Merge remote-tracking branch 'origin/developer' into developer

parents fe2c17c7 d578f42a
...@@ -40,6 +40,8 @@ public interface StaffMapper { ...@@ -40,6 +40,8 @@ public interface StaffMapper {
List<TabHaobanStaff> listByPhoneNumber(@Param("phoneNumber") String phoneNumber); List<TabHaobanStaff> listByPhoneNumber(@Param("phoneNumber") String phoneNumber);
int delStaff(@Param("staffId") String staffId) ;
int cleanStaff(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds); int cleanStaff(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
List<String> listUserStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds); List<String> listUserStaffId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
......
...@@ -115,10 +115,7 @@ public class StaffServiceImpl implements StaffService { ...@@ -115,10 +115,7 @@ public class StaffServiceImpl implements StaffService {
@Override @Override
public int delByStaffId(String staffId) { public int delByStaffId(String staffId) {
TabHaobanStaff staff = new TabHaobanStaff(); return this.mapper.delStaff(staffId);
staff.setStaffId(staffId);
staff.setStatusFlag(0);
return this.mapper.updateByPrimaryKeySelective(staff);
} }
@Override @Override
......
...@@ -69,8 +69,6 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -69,8 +69,6 @@ public class MessageApiServiceImpl implements MessageApiService {
@Autowired @Autowired
private QywxDepartmentApiService qywxDepartmentApiService; private QywxDepartmentApiService qywxDepartmentApiService;
@Autowired @Autowired
private QQCloudPicService qqCloudPicService;
@Autowired
private InnerApiService innerApiService; private InnerApiService innerApiService;
@Autowired @Autowired
private StaffClerkRelationApiService staffClerkRelationApiService; private StaffClerkRelationApiService staffClerkRelationApiService;
......
...@@ -318,7 +318,7 @@ ...@@ -318,7 +318,7 @@
<!-- 其他占用 --> <!-- 其他占用 -->
<if test="occupy != null and 1==occupy"> <if test="occupy != null and 1==occupy">
and a.status_flag = 0 and a.update_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and a.active_status = 1 and a.status_flag = 0 and a.del_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and a.active_status = 1
</if> </if>
<!-- --> <!-- -->
<if test="occupy != null and 2==occupy"> <if test="occupy != null and 2==occupy">
...@@ -415,7 +415,7 @@ ...@@ -415,7 +415,7 @@
update tab_haoban_staff update tab_haoban_staff
set set
status_flag = 0, status_flag = 0,
update_time = now() update_time = now() , del_time = now()
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR} and status_flag = 1 where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR} and status_flag = 1
and staff_id in and staff_id in
<foreach collection="staffIds" item="item" open="(" separator="," close=")"> <foreach collection="staffIds" item="item" open="(" separator="," close=")">
...@@ -423,6 +423,13 @@ ...@@ -423,6 +423,13 @@
</foreach> </foreach>
</update> </update>
<update id="delStaff">
update tab_haoban_staff set
status_flag = 0,
update_time = now() , del_time = now()
where staff_id = #{staffId} and status_flag = 1
</update>
<select id="listUserStaffId" resultType="string"> <select id="listUserStaffId" resultType="string">
select staff_id FROM tab_haoban_staff select staff_id FROM tab_haoban_staff
WHERE WHERE
...@@ -601,10 +608,11 @@ ...@@ -601,10 +608,11 @@
<foreach collection="wxUserIdList" index="index" item="id" close=")" open="(" separator=","> <foreach collection="wxUserIdList" index="index" item="id" close=")" open="(" separator=",">
#{id} #{id}
</foreach> </foreach>
and status_flag = 1
</update> </update>
<select id="getOccupyNum" resultType="java.lang.Integer"> <select id="getOccupyNum" resultType="java.lang.Integer">
SELECT count(*) FROM tab_haoban_staff WHERE status_flag = 0 and update_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and active_status = 1 and wx_enterprise_id = #{wxEnterpriseId} SELECT count(*) FROM tab_haoban_staff WHERE status_flag = 0 and del_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and active_status = 1 and wx_enterprise_id = #{wxEnterpriseId}
</select> </select>
......
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