初始化后端接口
continuous-integration/drone/push Build is passing Details

飞书小程序
YXY 1 year ago
parent 5acaef28f5
commit cfdcda3458

@ -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);
} }

@ -1,6 +1,7 @@
package com.ruoyi.flyingbook.service.impl; package com.ruoyi.flyingbook.service.impl;
import com.ruoyi.common.enums.FlagStatus; import com.ruoyi.common.enums.FlagStatus;
import com.ruoyi.common.enums.LarkActiveInviteStageEnum;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin; import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
import com.ruoyi.flyingbook.mapper.LarkUserActiveInviteRelatoinMapper; import com.ruoyi.flyingbook.mapper.LarkUserActiveInviteRelatoinMapper;
@ -46,6 +47,7 @@ public class LarkUserActiveInviteRelatoinServiceImpl implements ILarkUserActiveI
@Override @Override
public List<LarkUserActiveInviteRelatoin> queryTopTen(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin) { public List<LarkUserActiveInviteRelatoin> queryTopTen(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin) {
larkUserActiveInviteRelatoin.setFlag(FlagStatus.OK.getCode()); larkUserActiveInviteRelatoin.setFlag(FlagStatus.OK.getCode());
larkUserActiveInviteRelatoin.setInviteStage(LarkActiveInviteStageEnum.ACTIVE.getCode());
return larkUserActiveInviteRelatoinMapper.queryTopTen(larkUserActiveInviteRelatoin); return larkUserActiveInviteRelatoinMapper.queryTopTen(larkUserActiveInviteRelatoin);
} }

Loading…
Cancel
Save