add 参会人 编辑、删除参会信息
This commit is contained in:
+22
@@ -151,6 +151,17 @@ public class PayMeetingSituationController extends JeroController<PayMeetingSitu
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*/
|
||||
@AutoLog(value = "企业人员-通过id删除参会信息")
|
||||
@ApiOperation(value = "企业人员-通过id删除参会信息")
|
||||
@GetMapping(value = "/contactsDelete")
|
||||
public Result<?> contactsDelete(@RequestParam(name = "id") String id) {
|
||||
payMeetingSituationService.deleteById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
@@ -163,6 +174,17 @@ public class PayMeetingSituationController extends JeroController<PayMeetingSitu
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
@AutoLog(value = "企业人员-编辑参会信息")
|
||||
@ApiOperation(value = "企业人员-编辑参会信息", notes = "企业人员-编辑参会信息")
|
||||
@PostMapping(value = "/contactsEdit")
|
||||
public Result<?> contactsEdit(@RequestBody PayMeetingSituationVO payMeetingSituationVO) {
|
||||
payMeetingSituationService.editById(payMeetingSituationVO,MEETING_TYPE);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*/
|
||||
|
||||
+2
-2
@@ -1428,8 +1428,8 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
||||
queryWrapper1.eq(PayMeetingContacts::getMeetingId, meetingId);
|
||||
queryWrapper1.eq(PayMeetingContacts::getMeetingContactsId,sysUserId);
|
||||
boolean b = meetingContactsService.count(queryWrapper1) > 0;
|
||||
if (!b && !payMeeting.getDirectorId().equals(sysUserId)) {
|
||||
throw new JeroBootException("只有会议负责人,会议联系人可以删除");
|
||||
if (!b && !payMeeting.getDirectorId().equals(sysUserId)&& !payMeetingSituation.getCompanyContactId().equals(sysUserId)) {
|
||||
throw new JeroBootException("只有会议负责人,会议联系人,参会人可以删除");
|
||||
}
|
||||
Integer inAccount = payMeetingSituation.getInAccount();
|
||||
if (!inAccount.equals(PayProjectCommon.IN_ACCOUNT0)) {
|
||||
|
||||
Reference in New Issue
Block a user