diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/payment/controller/PayPaymentRecordController.java b/jero-boot-incoming-payment/src/main/java/com/jero/payment/controller/PayPaymentRecordController.java index a7a3ac0e..6ed3a0e8 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/payment/controller/PayPaymentRecordController.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/payment/controller/PayPaymentRecordController.java @@ -137,7 +137,7 @@ public class PayPaymentRecordController extends JeroController wrapper = new LambdaQueryWrapper<>(); wrapper.eq(PayPaymentRecord::getProjectId, id); wrapper.eq(PayPaymentRecord::getPaymentStatus, PaymentStatusEnum.COMPLETED.getCode()); - wrapper.orderByAsc(PayPaymentRecord::getCreateTime); + wrapper.orderByAsc(PayPaymentRecord::getPaymentDate); List list = payPaymentRecordService.list(wrapper); return Result.OK(list); diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecord.java b/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecord.java index 3c647cab..d06661bd 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecord.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecord.java @@ -2,6 +2,7 @@ package com.jero.payment.entity; import java.io.Serializable; import java.math.BigDecimal; +import java.util.Date; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; @@ -102,7 +103,7 @@ public class PayPaymentRecord implements Serializable { private String reviewerName; @ApiModelProperty(value = "审核时间") - private String reviewTime; + private Date reviewTime; @ApiModelProperty(value = "审核说明") private String reviewInstructions; diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecordSub.java b/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecordSub.java index dc821cbd..dbe90944 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecordSub.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/payment/entity/PayPaymentRecordSub.java @@ -20,6 +20,7 @@ import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import java.io.Serializable; import java.math.BigDecimal; +import java.util.Date; /** * 来款记录子表,记录每次审核 @@ -103,7 +104,7 @@ public class PayPaymentRecordSub implements Serializable { private String reviewerName; @ApiModelProperty(value = "审核时间") - private String reviewTime; + private Date reviewTime; @ApiModelProperty(value = "审核说明") private String reviewInstructions; diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/payment/service/impl/PayPaymentCheckServiceImpl.java b/jero-boot-incoming-payment/src/main/java/com/jero/payment/service/impl/PayPaymentCheckServiceImpl.java index 72d4610e..d7910996 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/payment/service/impl/PayPaymentCheckServiceImpl.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/payment/service/impl/PayPaymentCheckServiceImpl.java @@ -2,6 +2,7 @@ package com.jero.payment.service.impl; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jero.common.common.ProjectCommon; import com.jero.common.common.RoleCommon; @@ -32,6 +33,7 @@ import com.jero.payment.mapper.PayPaymentRecordMapper; import com.jero.payment.service.IPayPaymentCheckService; import com.jero.payment.service.IPayPaymentRecordService; import com.jero.project.entity.PayCommonProject; +import com.jero.project.entity.PayWorkingGroup; import com.jero.project.entity.PayWorkingGroupSubItem; import com.jero.project.mapper.PayCommonProjectMapper; import com.jero.project.mapper.PayWorkingGroupSubItemMapper; @@ -91,7 +93,7 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl wrapper = new LambdaQueryWrapper<>(); wrapper.eq(PayPaymentRecord::getProjectId, id); - wrapper.orderByDesc(PayPaymentRecord::getCreateTime); + wrapper.orderByAsc(PayPaymentRecord::getPaymentDate); List list = payPaymentRecordService.list(wrapper); list.forEach(p-> { if(StringUtils.isNotBlank(p.getPaymentStatus())){ @@ -142,7 +144,7 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl wrapper = new LambdaQueryWrapper<>(); wrapper.eq(PayPaymentRecordSub::getProjectId, id); - wrapper.orderByDesc(PayPaymentRecordSub::getCreateTime); + wrapper.orderByAsc(PayPaymentRecordSub::getPaymentDate); List list = payPaymentCheckService.list(wrapper); list.forEach(p -> { if (StringUtils.isNotBlank(p.getPaymentStatus())) { @@ -168,6 +170,8 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl wrapper = new LambdaUpdateWrapper<>(); + wrapper.eq(PayPaymentRecordSub::getRecordId,payPaymentRecord.getId()); + wrapper.eq(PayPaymentRecordSub::getProjectId,payPaymentRecord.getProjectId()); + payPaymentCheckMapper.update(payPaymentRecordSub,wrapper); //通过 - BigDecimal newPaidAmount; Integer inAccount; String paymentStatus; @@ -367,14 +380,19 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl