|
|
@@ -11,6 +11,7 @@ import com.dk.common.response.ResponseCodeEnum;
|
|
|
import com.dk.common.response.ResponseResultUtil;
|
|
|
import com.dk.common.response.ResponseResultVO;
|
|
|
import com.dk.oauth.entity.Company;
|
|
|
+import com.dk.oauth.entity.CompanyResponse;
|
|
|
import com.dk.oauth.entity.MenuFrequency;
|
|
|
import com.dk.oauth.entity.UserLogin;
|
|
|
import com.dk.oauth.feign.service.OrgFeign;
|
|
|
@@ -71,6 +72,21 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
return ResponseResultUtil.success(companyMapper.selectById(id));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 可以绑定微信的员工人数 人数上限
|
|
|
+ * @author : admin
|
|
|
+ * @date : 2023/2/3 13:32
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ 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());
|
|
|
+ return ResponseResultUtil.success(mp);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @desc : 通过ID查询
|
|
|
* @author : admin
|
|
|
@@ -98,6 +114,20 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @desc : 更新微信用的公司
|
|
|
+ * @author : admin
|
|
|
+ * @date : 2023/2/3 13:32
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public ResponseResultVO updateCompanyCurStaffNum(Map<String, Object> map) {
|
|
|
+ Integer curStaffNum = Integer.valueOf(map.get("curStaffNum") + "");
|
|
|
+ Integer cpId = Integer.valueOf(map.get("cpId") + "");
|
|
|
+ companyMapper.updateCompanyCurStaffNum(cpId, curStaffNum);
|
|
|
+ return ResponseResultUtil.success(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* @desc : 选择公司更新微信用户的所在当前的公司
|
|
|
* @author : admin
|
|
|
* @date : 2023/2/3 13:32
|