Commit f26cdb41 by jinxin

其他占用许可总数sql修改

parent e0821eee
......@@ -166,7 +166,7 @@ public interface StaffMapper {
/**
* 查询其他占用许可总数
*/
Integer getOccupyNum();
Integer getOccupyNum(@Param("wxEnterpriseId") String wxEnterpriseId);
TabHaobanStaff getStaffInfoByWxOpenUserId(@Param("wxOpenUseId") String wxOpenUseId);
/**
......
......@@ -156,7 +156,7 @@ public interface StaffService {
/**
* 查询其他占用许可总数
*/
Integer getOccupyNum();
Integer getOccupyNum(String wxEnterpriseId);
......
......@@ -220,8 +220,8 @@ public class StaffServiceImpl implements StaffService {
}
@Override
public Integer getOccupyNum() {
return mapper.getOccupyNum();
public Integer getOccupyNum(String wxEnterpriseId) {
return mapper.getOccupyNum(wxEnterpriseId);
}
private void listAccount(TabHaobanWxEnterprise wxEnterprise , int limit , String cursor) {
......
......@@ -111,7 +111,7 @@ public class WxEnterpriseActiveDataServiceImpl implements WxEnterpriseActiveData
StaffActiveDataDTO staffActiveDataDTO = EntityUtil.changeEntityByJSON(StaffActiveDataDTO.class, tabHaobanWxEnterpriseActiveDataMapper.getWxEnterpriseActiveDataByWxEnterpriseId(wxEnterpriseId));
//查询其他占用许可总数
Integer occupy=0;
occupy=staffService.getOccupyNum();
occupy=staffService.getOccupyNum(wxEnterpriseId);
staffActiveDataDTO.setOccupy(occupy);
return staffActiveDataDTO;
}
......
......@@ -604,7 +604,7 @@
</update>
<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
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>
<select id="getStaffInfoByWxOpenUserId" resultMap="BaseResultMap">
......
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