|
@@ -16,16 +16,26 @@
|
|
*/
|
|
*/
|
|
package org.springblade.meter.entity;
|
|
package org.springblade.meter.entity;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
import org.springblade.core.mp.base.BaseEntity;
|
|
import org.springblade.core.mp.base.BaseEntity;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
+import org.springblade.core.tool.utils.Func;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 中期支付证书实体类
|
|
* 中期支付证书实体类
|
|
@@ -109,6 +119,34 @@ public class InterimPayCertificate extends BaseEntity {
|
|
@ApiModelProperty(value = "审批状态,0未上报,1待审批,2已审批")
|
|
@ApiModelProperty(value = "审批状态,0未上报,1待审批,2已审批")
|
|
private Integer approveStatus;
|
|
private Integer approveStatus;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 原始PDF地址
|
|
|
|
+ */
|
|
|
|
+ @ApiModelProperty(value = "原始PDF地址")
|
|
|
|
+ private String rawUrl;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 每份表格独立的PDF地址
|
|
|
|
+ */
|
|
|
|
+ @ApiModelProperty(value = "每份表格独立的PDF地址")
|
|
|
|
+ private String fileUrlList;
|
|
|
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
+ private List<Map<String,String>> urlListData = new ArrayList<>();
|
|
|
|
+ public List<Map<String,String>> getUrlListData() {
|
|
|
|
+ if(fileUrlList!=null && StringUtils.isNotEmpty(fileUrlList)){
|
|
|
|
+ JSONObject data = JSONObject.parseObject(this.fileUrlList);
|
|
|
|
+ for(String key:data.keySet()){
|
|
|
|
+ Map<String,String> dataV=new HashMap<String,String>();
|
|
|
|
+ dataV.put("title",key);
|
|
|
|
+ dataV.put("url",data.getString(key));
|
|
|
|
+ urlListData.add(dataV);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return urlListData;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ public void setUrlListData(List<Map<String,String>> urlListData) {
|
|
|
|
+ this.urlListData = urlListData;
|
|
|
|
+ }
|
|
}
|
|
}
|