Commit 02f3da25 by fudahua

Merge branch 'developer' into 'master'

Developer

See merge request haoban3.0/haoban-manage3.0!54
parents f04a1461 81ff2c47
...@@ -9,6 +9,7 @@ import java.util.HashSet; ...@@ -9,6 +9,7 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
...@@ -1178,7 +1179,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1178,7 +1179,7 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
@Override @Override
@RedisCache(value = "qrcode-${clerkCode}-${storeId}", timeOut = 10) @RedisCache(value = "qrcode-${clerkCode}-${storeId}", timeOut = 1, timeunit = TimeUnit.DAYS)
public ServiceResponse<String> getStaffQrcode(String clerkCode, String storeId) { public ServiceResponse<String> getStaffQrcode(String clerkCode, String storeId) {
ServiceResponse<String> resp = new ServiceResponse<>(); ServiceResponse<String> resp = new ServiceResponse<>();
TabHaobanDepartment department = departmentService.selectByRelatedId(storeId); TabHaobanDepartment department = departmentService.selectByRelatedId(storeId);
...@@ -1194,7 +1195,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1194,7 +1195,7 @@ public class StaffApiServiceImpl implements StaffApiService {
return resp; return resp;
} }
for (TabHaobanStaffDepartmentRelated tab : retList) { for (TabHaobanStaffDepartmentRelated tab : retList) {
if (tab.getClerkCode().equals(clerkCode)) { if (clerkCode.equals(tab.getClerkCode())) {
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseService.selectById(department.getWxEnterpriseId()); WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseService.selectById(department.getWxEnterpriseId());
UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterpriseDTO.getCorpid(), wxEnterpriseDTO.getContactSecret(), tab.getWxUserId()); UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterpriseDTO.getCorpid(), wxEnterpriseDTO.getContactSecret(), tab.getWxUserId());
if (user != null) { if (user != null) {
......
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