|
|
@ -1,6 +1,8 @@
|
|
|
|
package com.ruoyi.flyingbook.controller;
|
|
|
|
package com.ruoyi.flyingbook.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
|
|
|
import com.ruoyi.common.enums.FlagStatus;
|
|
|
|
|
|
|
|
import com.ruoyi.common.enums.LarkActiveInviteStageEnum;
|
|
|
|
import com.ruoyi.common.enums.LarkActiveStageEnum;
|
|
|
|
import com.ruoyi.common.enums.LarkActiveStageEnum;
|
|
|
|
import com.ruoyi.flyingbook.domain.LarkActive;
|
|
|
|
import com.ruoyi.flyingbook.domain.LarkActive;
|
|
|
|
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
|
|
|
|
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
|
|
|
@ -72,6 +74,16 @@ public class LarkActiveController extends BaseController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping("/approve")
|
|
|
|
@PostMapping("/approve")
|
|
|
|
public void approve(@RequestBody LarkUserActiveRelatoin request) {
|
|
|
|
public void approve(@RequestBody LarkUserActiveRelatoin request) {
|
|
|
|
|
|
|
|
LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin = new LarkUserActiveInviteRelatoin();
|
|
|
|
|
|
|
|
larkUserActiveInviteRelatoin.setFlag(FlagStatus.OK.getCode());
|
|
|
|
|
|
|
|
larkUserActiveInviteRelatoin.setCompanyName(request.getCompanyName());
|
|
|
|
|
|
|
|
larkUserActiveInviteRelatoin.setInviteUserName(request.getUserName());
|
|
|
|
|
|
|
|
larkUserActiveInviteRelatoin.setInviteStage(LarkActiveInviteStageEnum.INVITE.getCode());
|
|
|
|
|
|
|
|
List<LarkUserActiveInviteRelatoin> larkUserActiveInviteRelatoins = larkUserActiveInviteRelatoinService.selectLarkUserActiveInviteRelatoinList(larkUserActiveInviteRelatoin);
|
|
|
|
|
|
|
|
for (LarkUserActiveInviteRelatoin userActiveInviteRelatoin : larkUserActiveInviteRelatoins) {
|
|
|
|
|
|
|
|
userActiveInviteRelatoin.setInviteStage(LarkActiveInviteStageEnum.ACTIVE.getCode());
|
|
|
|
|
|
|
|
larkUserActiveInviteRelatoinService.updateLarkUserActiveInviteRelatoin(userActiveInviteRelatoin);
|
|
|
|
|
|
|
|
}
|
|
|
|
request.setActiveStage(LarkActiveStageEnum.ADJUST.getCode());
|
|
|
|
request.setActiveStage(LarkActiveStageEnum.ADJUST.getCode());
|
|
|
|
larkUserActiveRelatoinService.updateLarkUserActiveRelatoin(request);
|
|
|
|
larkUserActiveRelatoinService.updateLarkUserActiveRelatoin(request);
|
|
|
|
}
|
|
|
|
}
|
|
|
|