缴费审核

This commit is contained in:
baozhipeng
2021-12-15 20:24:49 +08:00
parent 27646dde59
commit 6d900f830c
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jero.common.common.ProjectCommon;
import com.jero.common.enums.PaymentStatusEnum;
import com.jero.common.exception.JeroBootException;
import com.jero.common.system.vo.LoginUser;
import com.jero.contract.common.PayIncomeContractCommon;
import com.jero.meeting.entity.PayMeetingSituation;
@@ -30,6 +31,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
/**
* 到账审核
@@ -60,10 +62,15 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
*/
@Override
public void applicant(PayPaymentRecord payPaymentRecord){
// LambdaQueryWrapper<PayPaymentRecord> wrapper = new LambdaQueryWrapper<>();
// wrapper.eq(PayPaymentRecord::getProjectId,payPaymentRecord.getProjectId());
// wrapper.eq(PayPaymentRecord::getPaymentStatus,PaymentStatusEnum.TO_BE_REVIEWED.getCode());
// TbMemberProjectSubitem tbMember = tbMemberProjectSubitemMapper.selectOne(wrapper);
LambdaQueryWrapper<PayPaymentRecord> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(PayPaymentRecord::getProjectId,payPaymentRecord.getProjectId());
wrapper.and(wrapperOr -> wrapperOr.eq(PayPaymentRecord::getPaymentStatus,PaymentStatusEnum.TO_BE_REVIEWED.getCode())
.or().eq(PayPaymentRecord::getPaymentStatus,PaymentStatusEnum.REJECTED.getCode()));
List<PayPaymentRecord> list = payPaymentRecordMapper.selectList(wrapper);
if(list !=null && list.size()>0){
throw new JeroBootException("有待完成的阶段信息");
}
switch (String.valueOf(payPaymentRecord.getProjectType())){