|
@@ -222,16 +222,6 @@ public class MainPostApplyServiceImpl implements IMainPostApplyService {
|
|
|
postList.forEach(item -> item.setApplyCount(countMap.getOrDefault(item.getPostId(), 0L)));
|
|
postList.forEach(item -> item.setApplyCount(countMap.getOrDefault(item.getPostId(), 0L)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Override
|
|
|
|
|
- public Boolean checkApplyNoUnique(String applyNo, Long id) {
|
|
|
|
|
- LambdaQueryWrapper<MainPostApply> lqw = Wrappers.lambdaQuery();
|
|
|
|
|
- lqw.eq(MainPostApply::getApplyNo, applyNo);
|
|
|
|
|
- if (id != null) {
|
|
|
|
|
- lqw.ne(MainPostApply::getId, id);
|
|
|
|
|
- }
|
|
|
|
|
- return baseMapper.selectCount(lqw) == 0;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private MainAudit buildPendingAudit(Long targetId, String tenantId) {
|
|
private MainAudit buildPendingAudit(Long targetId, String tenantId) {
|
|
|
MainAudit audit = new MainAudit();
|
|
MainAudit audit = new MainAudit();
|
|
|
audit.setAuditType(2);
|
|
audit.setAuditType(2);
|