|
|
@@ -293,11 +293,11 @@ public class QwUserController extends BaseController {
|
|
|
@RepeatSubmit
|
|
|
@PreAuthorize("@ss.hasPermi('qw:user:sync')")
|
|
|
@Log(title = "企微用户", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping("sync/{corpId}/{companyId}")
|
|
|
- public R sync(@PathVariable("corpId") String corpId,@PathVariable("companyId") Long companyId)
|
|
|
+ @PostMapping("sync/{corpId}")
|
|
|
+ public R sync(@PathVariable("corpId") String corpId)
|
|
|
{
|
|
|
|
|
|
- List<String> strings = qwCompanyMapper.selectQwCompanyCorpIdListByCompanyId(companyId);
|
|
|
+ List<String> strings = qwCompanyMapper.selectQwCompanyCorpIdListByAll();
|
|
|
for (String string : strings) {
|
|
|
|
|
|
if (string.equals(corpId)){
|
|
|
@@ -330,10 +330,10 @@ public class QwUserController extends BaseController {
|
|
|
@RepeatSubmit
|
|
|
@PreAuthorize("@ss.hasPermi('qw:user:sync')")
|
|
|
@Log(title = "同步企微用户名称", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping("syncName/{corpId}/{companyId}")
|
|
|
- public R syncName(@PathVariable("corpId") String corpId,@PathVariable("companyId") Long companyId)
|
|
|
+ @PostMapping("syncName/{corpId}")
|
|
|
+ public R syncName(@PathVariable("corpId") String corpId)
|
|
|
{
|
|
|
- List<String> strings = qwCompanyMapper.selectQwCompanyCorpIdListByCompanyId(companyId);
|
|
|
+ List<String> strings = qwCompanyMapper.selectQwCompanyCorpIdListByAll();
|
|
|
for (String string : strings) {
|
|
|
if (string.equals(corpId)){
|
|
|
qwUserService.syncQwUserName(string);
|