|
|
@@ -88,8 +88,17 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
public ResponseResultVO getCompanyMaxStaffNum(Integer id) {
|
|
|
Company company = companyMapper.selectById(id);
|
|
|
Map<String,Object> mp = new HashMap<>();
|
|
|
- mp.put("maxStaffNum",company.getMaxStaffNum());
|
|
|
- mp.put("curStaffNum",company.getCurStaffNum());
|
|
|
+ // 解析license信息
|
|
|
+ String licenseStr = AESUtil.desEncrypt(company.getLicense());
|
|
|
+ if(licenseStr != null ){
|
|
|
+ Map<String,Object> licenseMap = JSON.parseObject(licenseStr,Map.class);
|
|
|
+ mp.put("web_max_num",Integer.parseInt(licenseMap.get("web_max_num").toString()));
|
|
|
+ mp.put("wx_max_num",Integer.parseInt(licenseMap.get("wx_max_num").toString()));
|
|
|
+ }else{
|
|
|
+ mp.put("web_max_num",1);
|
|
|
+ mp.put("wx_max_num",1);
|
|
|
+ }
|
|
|
+
|
|
|
return ResponseResultUtil.success(mp);
|
|
|
}
|
|
|
|