Commit 52fa9882 by 徐高华

log

parent 14a966d8
......@@ -206,6 +206,6 @@ public interface StaffClerkRelationApiService {
* @return
* @throws
*/
int getCanAddHmCount(String enterpriseId , String wxEnterpriseId) ;
int getCanAddHmCount(String enterpriseId , String wxEnterpriseId , String clerkId) ;
}
......@@ -175,5 +175,5 @@ public interface HmQrcodeService {
*/
int batchUpdateQrcodeGroup(List<Long> hmIds, Long groupId);
int getCanAddCount(String wxEnterpriseId , String enterprsieId , String clerkId) ;
int getCanAddCount(String wxEnterpriseId , String enterpriseId , String clerkId) ;
}
......@@ -148,8 +148,9 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
return 0;
}
if (!(authStoreIdList.size() == 1 && authStoreIdList.contains("-1"))) {
log.info("全部门店={}", clerkId);
log.info("部分门店={}", authStoreIdList.size());
} else {
log.info("全部门店={}", clerkId);
authStoreIdList = null;
}
int count = this.tabHaobanHmQrcodeMapper.getCanAddCount(wxEnterpriseId, enterprsieId, authStoreIdList);
......
......@@ -29,6 +29,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanStaff;
import com.gic.haoban.manage.service.entity.TabHaobanStaffClerkBindLog;
import com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation;
import com.gic.haoban.manage.service.service.*;
import com.gic.haoban.manage.service.service.hm.HmQrcodeService;
import com.gic.haoban.manage.service.task.RouterConstant;
import com.gic.haoban.task.api.dto.MqMessageQo;
import com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactDTO;
......@@ -76,6 +77,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
private WxEnterpriseService wxEnterpriseService;
@Autowired
private HmQrcodeApiService hmQrcodeApiService;
@Autowired
private HmQrcodeService hmQrcodeService ;
@Override
public void bindLogMq(String params) {
......@@ -534,8 +537,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
}
@Override
public int getCanAddHmCount(String enterpriseId, String wxEnterpriseId) {
public int getCanAddHmCount(String wxEnterpriseId, String enterpriseId, String clerkId) {
int count = this.hmQrcodeService.getCanAddCount(wxEnterpriseId, enterpriseId, clerkId);
return 0;
}
......
......@@ -328,7 +328,8 @@ public class HmQrcodeController {
WebLoginDTO loginUser = AuthWebRequestUtil.getLoginUser();
String enterpriseId = loginUser.getEnterpriseId() ;
String wxEnterpriseId = loginUser.getWxEnterpriseId() ;
int count = this.staffClerkRelationApiService.getCanAddHmCount(enterpriseId, wxEnterpriseId) ;
String clerkId = loginUser.getClerkId() ;
int count = this.staffClerkRelationApiService.getCanAddHmCount(wxEnterpriseId,enterpriseId,clerkId) ;
return RestResponse.successResult(count);
}
}
......
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