添加工作组进度结构调整
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
|||||||
|
package com.jero.project.VO;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class PayWorkingGroupPayment implements Serializable {
|
||||||
|
/**
|
||||||
|
* 已付全款
|
||||||
|
*/
|
||||||
|
private Integer allPayment;
|
||||||
|
/**
|
||||||
|
* 部分付款
|
||||||
|
*/
|
||||||
|
private Integer partPayment;
|
||||||
|
/**
|
||||||
|
* 未付款
|
||||||
|
*/
|
||||||
|
private Integer notPayment;
|
||||||
|
}
|
||||||
+1
-12
@@ -6,16 +6,5 @@ import lombok.Data;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@Data
|
@Data
|
||||||
public class PayWorkingGroupVO extends PayWorkingGroup implements Serializable {
|
public class PayWorkingGroupVO extends PayWorkingGroup implements Serializable {
|
||||||
/**
|
private PayWorkingGroupPayment obj;
|
||||||
* 已付全款
|
|
||||||
*/
|
|
||||||
private Integer allPayment;
|
|
||||||
/**
|
|
||||||
* 部分付款
|
|
||||||
*/
|
|
||||||
private Integer partPayment;
|
|
||||||
/**
|
|
||||||
* 未付款
|
|
||||||
*/
|
|
||||||
private Integer notPayment;
|
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-6
@@ -15,6 +15,7 @@ import com.jero.common.exception.JeroBootException;
|
|||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
import com.jero.common.system.query.QueryGenerator;
|
import com.jero.common.system.query.QueryGenerator;
|
||||||
import com.jero.common.util.ValidUtil;
|
import com.jero.common.util.ValidUtil;
|
||||||
|
import com.jero.project.VO.PayWorkingGroupPayment;
|
||||||
import com.jero.project.VO.PayWorkingGroupVO;
|
import com.jero.project.VO.PayWorkingGroupVO;
|
||||||
import com.jero.project.entity.PayWorkingGroupSubItem;
|
import com.jero.project.entity.PayWorkingGroupSubItem;
|
||||||
import com.jero.project.service.IPayWorkingGroupService;
|
import com.jero.project.service.IPayWorkingGroupService;
|
||||||
@@ -80,23 +81,27 @@ public class PayWorkingGroupController extends JeroController<PayWorkingGroup, I
|
|||||||
query.eq(PayWorkingGroupSubItem::getWorkingGroupId,p.getId());
|
query.eq(PayWorkingGroupSubItem::getWorkingGroupId,p.getId());
|
||||||
List<PayWorkingGroupSubItem> listPayWorkingGroupSubItem = payWorkingGroupSubItemService.list(query);
|
List<PayWorkingGroupSubItem> listPayWorkingGroupSubItem = payWorkingGroupSubItemService.list(query);
|
||||||
if(!CollectionUtils.isEmpty(listPayWorkingGroupSubItem)){
|
if(!CollectionUtils.isEmpty(listPayWorkingGroupSubItem)){
|
||||||
|
PayWorkingGroupPayment payWorkingGroupPayment = new PayWorkingGroupPayment();
|
||||||
// 已付全款
|
// 已付全款
|
||||||
List<PayWorkingGroupSubItem> listAllPayment = listPayWorkingGroupSubItem.stream()
|
List<PayWorkingGroupSubItem> listAllPayment = listPayWorkingGroupSubItem.stream()
|
||||||
.filter(p1->p1.getPaidAmount() == p1.getReceivableAmount()).collect(Collectors.toList());
|
.filter(p1->p1.getPaidAmount() == p1.getReceivableAmount()).collect(Collectors.toList());
|
||||||
p.setAllPayment(listAllPayment.size());
|
payWorkingGroupPayment.setAllPayment(listAllPayment.size());
|
||||||
// 部分付款
|
// 部分付款
|
||||||
List<PayWorkingGroupSubItem> listPartPayment = listPayWorkingGroupSubItem.stream()
|
List<PayWorkingGroupSubItem> listPartPayment = listPayWorkingGroupSubItem.stream()
|
||||||
.filter(p1->p1.getPaidAmount() < p1.getReceivableAmount()).collect(Collectors.toList());
|
.filter(p1->p1.getPaidAmount() < p1.getReceivableAmount()).collect(Collectors.toList());
|
||||||
p.setPartPayment(listPartPayment.size());
|
payWorkingGroupPayment.setPartPayment(listPartPayment.size());
|
||||||
// 未付款
|
// 未付款
|
||||||
List<PayWorkingGroupSubItem> listNotPayment = listPayWorkingGroupSubItem.stream()
|
List<PayWorkingGroupSubItem> listNotPayment = listPayWorkingGroupSubItem.stream()
|
||||||
.filter(p1->p1.getPaidAmount() == 0 && p1.getReceivableAmount() != 0 )
|
.filter(p1->p1.getPaidAmount() == 0 && p1.getReceivableAmount() != 0 )
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
p.setNotPayment(listNotPayment.size());
|
payWorkingGroupPayment.setNotPayment(listNotPayment.size());
|
||||||
|
p.setObj(payWorkingGroupPayment);
|
||||||
}else{
|
}else{
|
||||||
p.setAllPayment(0);
|
PayWorkingGroupPayment payWorkingGroupPayment = new PayWorkingGroupPayment();
|
||||||
p.setPartPayment(0);
|
payWorkingGroupPayment.setAllPayment(0);
|
||||||
p.setNotPayment(0);
|
payWorkingGroupPayment.setPartPayment(0);
|
||||||
|
payWorkingGroupPayment.setNotPayment(0);
|
||||||
|
p.setObj(payWorkingGroupPayment);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
pageList.setRecords(listPayWorkingGroupVO);
|
pageList.setRecords(listPayWorkingGroupVO);
|
||||||
|
|||||||
+23
-1
@@ -15,6 +15,11 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import javax.validation.constraints.Max;
|
||||||
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
import javax.validation.constraints.Pattern;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: pay_working_group
|
* @Description: pay_working_group
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
@@ -36,14 +41,20 @@ public class PayWorkingGroup implements Serializable {
|
|||||||
/**工作组项目*/
|
/**工作组项目*/
|
||||||
@Excel(name = "工作组项目", width = 15)
|
@Excel(name = "工作组项目", width = 15)
|
||||||
@ApiModelProperty(value = "工作组项目")
|
@ApiModelProperty(value = "工作组项目")
|
||||||
|
@NotEmpty(message = "工作组项目不能为空!")
|
||||||
|
@Size(max = 50,message = "工作组项目长度应小于50个字符")
|
||||||
private String workingGroupProject;
|
private String workingGroupProject;
|
||||||
/**运行年份*/
|
/**运行年份*/
|
||||||
@Excel(name = "运行年份", width = 15)
|
@Excel(name = "运行年份", width = 15)
|
||||||
@ApiModelProperty(value = "运行年份")
|
@ApiModelProperty(value = "运行年份")
|
||||||
private Integer year;
|
@NotEmpty(message = "运行年份不能为空!")
|
||||||
|
@Pattern(regexp = "^\\d{4}$",message = "运行年份格式错误")
|
||||||
|
private String year;
|
||||||
/**负责人Aid*/
|
/**负责人Aid*/
|
||||||
@Excel(name = "负责人Aid", width = 15)
|
@Excel(name = "负责人Aid", width = 15)
|
||||||
@ApiModelProperty(value = "负责人Aid")
|
@ApiModelProperty(value = "负责人Aid")
|
||||||
|
@NotEmpty(message = "负责人Aid不能为空!")
|
||||||
|
@Size(max = 32,message = "负责人Aid长度应小于32个字符")
|
||||||
private String principalIdA;
|
private String principalIdA;
|
||||||
/**负责人名称A*/
|
/**负责人名称A*/
|
||||||
@Excel(name = "负责人名称A", width = 15)
|
@Excel(name = "负责人名称A", width = 15)
|
||||||
@@ -52,6 +63,7 @@ public class PayWorkingGroup implements Serializable {
|
|||||||
/**负责人Bid*/
|
/**负责人Bid*/
|
||||||
@Excel(name = "负责人Bid", width = 15)
|
@Excel(name = "负责人Bid", width = 15)
|
||||||
@ApiModelProperty(value = "负责人Bid")
|
@ApiModelProperty(value = "负责人Bid")
|
||||||
|
@Size(max = 32,message = "负责人Bid长度应小于32个字符")
|
||||||
private String principalIdB;
|
private String principalIdB;
|
||||||
/**负责人名称B*/
|
/**负责人名称B*/
|
||||||
@Excel(name = "负责人名称B", width = 15)
|
@Excel(name = "负责人名称B", width = 15)
|
||||||
@@ -60,42 +72,52 @@ public class PayWorkingGroup implements Serializable {
|
|||||||
/**每年召开次数*/
|
/**每年召开次数*/
|
||||||
@Excel(name = "每年召开次数", width = 15)
|
@Excel(name = "每年召开次数", width = 15)
|
||||||
@ApiModelProperty(value = "每年召开次数")
|
@ApiModelProperty(value = "每年召开次数")
|
||||||
|
@Size(max = 50,message = "每年召开次数长度应小于50个字符")
|
||||||
private String convokeNum;
|
private String convokeNum;
|
||||||
/**运行周期*/
|
/**运行周期*/
|
||||||
@Excel(name = "运行周期", width = 15)
|
@Excel(name = "运行周期", width = 15)
|
||||||
@ApiModelProperty(value = "运行周期")
|
@ApiModelProperty(value = "运行周期")
|
||||||
|
@Size(max = 50,message = "运行周期长度应小于50个字符")
|
||||||
private String operationCycle;
|
private String operationCycle;
|
||||||
/**本年应收款A(元)*/
|
/**本年应收款A(元)*/
|
||||||
@Excel(name = "本年应收款A(元)", width = 15)
|
@Excel(name = "本年应收款A(元)", width = 15)
|
||||||
@ApiModelProperty(value = "本年应收款A(元)")
|
@ApiModelProperty(value = "本年应收款A(元)")
|
||||||
|
@Max(value = 999999999,message = "本年应收款A(元)格式错误")
|
||||||
private Integer yearChargeA;
|
private Integer yearChargeA;
|
||||||
/**收费通知号A*/
|
/**收费通知号A*/
|
||||||
@Excel(name = "收费通知号A", width = 15)
|
@Excel(name = "收费通知号A", width = 15)
|
||||||
@ApiModelProperty(value = "收费通知号A")
|
@ApiModelProperty(value = "收费通知号A")
|
||||||
|
@Size(max = 50,message = "收费通知号A长度应小于50个字符")
|
||||||
private String chargeNoticeNoA;
|
private String chargeNoticeNoA;
|
||||||
/**收费通知文件Aid*/
|
/**收费通知文件Aid*/
|
||||||
@Excel(name = "收费通知文件Aid", width = 15)
|
@Excel(name = "收费通知文件Aid", width = 15)
|
||||||
@ApiModelProperty(value = "收费通知文件Aid")
|
@ApiModelProperty(value = "收费通知文件Aid")
|
||||||
|
@Size(max = 32,message = "收费通知文件Aid长度应小于32个字符")
|
||||||
private String chargeNoticeAId;
|
private String chargeNoticeAId;
|
||||||
/**本年应收款B(元)*/
|
/**本年应收款B(元)*/
|
||||||
@Excel(name = "本年应收款B(元)", width = 15)
|
@Excel(name = "本年应收款B(元)", width = 15)
|
||||||
@ApiModelProperty(value = "本年应收款B(元)")
|
@ApiModelProperty(value = "本年应收款B(元)")
|
||||||
|
@Max(value = 999999999,message = "本年应收款B(元)格式错误")
|
||||||
private Integer yearChargeB;
|
private Integer yearChargeB;
|
||||||
/**收费通知号B*/
|
/**收费通知号B*/
|
||||||
@Excel(name = "收费通知号B", width = 15)
|
@Excel(name = "收费通知号B", width = 15)
|
||||||
@ApiModelProperty(value = "收费通知号B")
|
@ApiModelProperty(value = "收费通知号B")
|
||||||
|
@Size(max = 50,message = "收费通知号B长度应小于50个字符")
|
||||||
private String chargeNoticeNoB;
|
private String chargeNoticeNoB;
|
||||||
/**收费通知文件Bid*/
|
/**收费通知文件Bid*/
|
||||||
@Excel(name = "收费通知文件Bid", width = 15)
|
@Excel(name = "收费通知文件Bid", width = 15)
|
||||||
@ApiModelProperty(value = "收费通知文件Bid")
|
@ApiModelProperty(value = "收费通知文件Bid")
|
||||||
|
@Size(max = 32,message = "收费通知文件Bid长度应小于32个字符")
|
||||||
private String chargeNoticeBId;
|
private String chargeNoticeBId;
|
||||||
/**任务及目标*/
|
/**任务及目标*/
|
||||||
@Excel(name = "任务及目标", width = 15)
|
@Excel(name = "任务及目标", width = 15)
|
||||||
@ApiModelProperty(value = "任务及目标")
|
@ApiModelProperty(value = "任务及目标")
|
||||||
|
@Size(max = 200,message = "任务及目标长度应小于200个字符")
|
||||||
private String missionAndObjectives;
|
private String missionAndObjectives;
|
||||||
/**备注*/
|
/**备注*/
|
||||||
@Excel(name = "备注", width = 15)
|
@Excel(name = "备注", width = 15)
|
||||||
@ApiModelProperty(value = "备注")
|
@ApiModelProperty(value = "备注")
|
||||||
|
@Size(max = 200,message = "备注长度应小于200个字符")
|
||||||
private String remarks;
|
private String remarks;
|
||||||
/**创建人*/
|
/**创建人*/
|
||||||
@ApiModelProperty(value = "创建人")
|
@ApiModelProperty(value = "创建人")
|
||||||
|
|||||||
Reference in New Issue
Block a user