Commit 512f3a44 by fudahua

本地缓存

parent 8d2fe7df
......@@ -93,4 +93,11 @@ public interface StaffApiService {
List<String> listBindClerkUserId(String storeId);
public List<StaffClerkRelationDTO> listBindRelationUserId(String storeId);
/**
* 激活
* @param staffId
* @return
*/
public boolean activeStaff(String staffId);
}
......@@ -66,6 +66,7 @@ public class StaffServiceImpl implements StaffService {
@Override
public void updateByPrimaryKey(TabHaobanStaff tab) {
tab.setUpdateTime(new Date());
mapper.updateByPrimaryKeySelective(tab);
}
......
......@@ -1460,6 +1460,15 @@ public class StaffApiServiceImpl implements StaffApiService {
return bindList;
}
@Override
public boolean activeStaff(String staffId) {
TabHaobanStaff staff = new TabHaobanStaff();
staff.setStaffId(staffId);
staff.setActiveFlag(1);
staffService.updateByPrimaryKey(staff);
return true;
}
// private String getMobile(String phoneNumber,String nationcode){
// String mobile = nationcode + phoneNumber;
// return mobile;
......
......@@ -130,6 +130,10 @@ public class InfoController extends WebBaseController{
}
}
//激活状态
if(loginStaff.getActiveFlag()==0) {
staffApiService.activeStaff(loginStaff.getStaffId());
}
String wxEnterpriseId = loginStaff.getWxEnterpriseId();
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseApiService.getOne(wxEnterpriseId);
......
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