去掉验证是否审核被拒绝的条件
This commit is contained in:
+4
-4
@@ -33,10 +33,10 @@
|
||||
</if>
|
||||
<where>
|
||||
<!-- 动态条件 -->
|
||||
<if test="(payDraftingGroup.companyContactName != null and payDraftingGroup.companyContactName != '')
|
||||
or (payDraftingGroup.companyName != null and payDraftingGroup.companyName != '')">
|
||||
AND pdgs.check_result != 3
|
||||
</if>
|
||||
<!-- <if test="(payDraftingGroup.companyContactName != null and payDraftingGroup.companyContactName != '')-->
|
||||
<!-- or (payDraftingGroup.companyName != null and payDraftingGroup.companyName != '')">-->
|
||||
<!-- AND pdgs.check_result != 3-->
|
||||
<!-- </if>-->
|
||||
<if test="payDraftingGroup.draftingGroupProject != null and payDraftingGroup.draftingGroupProject != ''">
|
||||
AND drafting_group_project LIKE concat('%',concat(#{payDraftingGroup.draftingGroupProject},'%'))
|
||||
</if>
|
||||
|
||||
+24
-11
@@ -158,13 +158,20 @@ public class PayDraftingGroupServiceImpl extends ServiceImpl<PayDraftingGroupMap
|
||||
query.eq(PayDraftingGroupSubItem::getDraftingGroupId, id);
|
||||
List<PayDraftingGroupSubItem> listPayDraftingGroupSubItem = payDraftingGroupSubItemService.list(query);
|
||||
if (!CollectionUtils.isEmpty(listPayDraftingGroupSubItem)) {
|
||||
for (PayDraftingGroupSubItem payDraftingGroupSubItem : listPayDraftingGroupSubItem) {
|
||||
if (!Objects.equals(payDraftingGroupSubItem.getCheckResult(), DraftingConstant.CHECK_REJECTION)) {
|
||||
throw new JeroBootException(payDraftingGroupOld.getDraftingGroupProject() + "起草组下存在企业,不可进行删除!");
|
||||
}
|
||||
}
|
||||
throw new JeroBootException(payDraftingGroupOld.getDraftingGroupProject() + "起草组下存在企业,不可进行删除!");
|
||||
}
|
||||
|
||||
// LambdaQueryWrapper<PayDraftingGroupSubItem> query = new LambdaQueryWrapper<>();
|
||||
// query.eq(PayDraftingGroupSubItem::getDraftingGroupId, id);
|
||||
// List<PayDraftingGroupSubItem> listPayDraftingGroupSubItem = payDraftingGroupSubItemService.list(query);
|
||||
// if (!CollectionUtils.isEmpty(listPayDraftingGroupSubItem)) {
|
||||
// for (PayDraftingGroupSubItem payDraftingGroupSubItem : listPayDraftingGroupSubItem) {
|
||||
// if (!Objects.equals(payDraftingGroupSubItem.getCheckResult(), DraftingConstant.CHECK_REJECTION)) {
|
||||
// throw new JeroBootException(payDraftingGroupOld.getDraftingGroupProject() + "起草组下存在企业,不可进行删除!");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
LambdaQueryWrapper<PayMeeting> meetingQuery = new LambdaQueryWrapper<>();
|
||||
meetingQuery.eq(PayMeeting::getDraftingGroupId,id);
|
||||
meetingQuery.eq(PayMeeting::getMeetingType, MeetingCommon.DRAFTING_GROUP_MEETING_INT);
|
||||
@@ -206,13 +213,19 @@ public class PayDraftingGroupServiceImpl extends ServiceImpl<PayDraftingGroupMap
|
||||
query.eq(PayDraftingGroupSubItem::getDraftingGroupId, p);
|
||||
List<PayDraftingGroupSubItem> listPayDraftingGroupSubItem = payDraftingGroupSubItemService.list(query);
|
||||
if (!CollectionUtils.isEmpty(listPayDraftingGroupSubItem)) {
|
||||
for (PayDraftingGroupSubItem payDraftingGroupSubItem : listPayDraftingGroupSubItem) {
|
||||
if (!Objects.equals(payDraftingGroupSubItem.getCheckResult(), DraftingConstant.CHECK_REJECTION)) {
|
||||
sb1.append(payDraftingGroupOld.getDraftingGroupProject() + "起草组下存在企业,不可进行删除!<br/>");
|
||||
break;
|
||||
}
|
||||
}
|
||||
sb1.append(payDraftingGroupOld.getDraftingGroupProject() + "起草组下存在企业,不可进行删除!<br/>");
|
||||
}
|
||||
// LambdaQueryWrapper<PayDraftingGroupSubItem> query = new LambdaQueryWrapper<>();
|
||||
// query.eq(PayDraftingGroupSubItem::getDraftingGroupId, p);
|
||||
// List<PayDraftingGroupSubItem> listPayDraftingGroupSubItem = payDraftingGroupSubItemService.list(query);
|
||||
// if (!CollectionUtils.isEmpty(listPayDraftingGroupSubItem)) {
|
||||
// for (PayDraftingGroupSubItem payDraftingGroupSubItem : listPayDraftingGroupSubItem) {
|
||||
// if (!Objects.equals(payDraftingGroupSubItem.getCheckResult(), DraftingConstant.CHECK_REJECTION)) {
|
||||
// sb1.append(payDraftingGroupOld.getDraftingGroupProject() + "起草组下存在企业,不可进行删除!<br/>");
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
LambdaQueryWrapper<PayMeeting> meetingQuery = new LambdaQueryWrapper<>();
|
||||
meetingQuery.eq(PayMeeting::getDraftingGroupId,p);
|
||||
meetingQuery.eq(PayMeeting::getMeetingType, MeetingCommon.DRAFTING_GROUP_MEETING_INT);
|
||||
|
||||
Reference in New Issue
Block a user