Commit fcccdc70 by kangxiaoshan

修复dmp 收入上传

parent 1b084492
...@@ -38,9 +38,9 @@ public class DmpIncomeController { ...@@ -38,9 +38,9 @@ public class DmpIncomeController {
} }
@PostMapping("/delete") @PostMapping("/delete")
public ResultModel deleteItem(Long id) { public ResultModel deleteItem(@RequestBody DmpIncome dmpIncome) {
//删除数据 //删除数据
return ResultModel.OK(dmpIncomeService.delete(id)); return ResultModel.OK(dmpIncomeService.delete(dmpIncome));
} }
......
...@@ -9,159 +9,169 @@ import java.util.Date; ...@@ -9,159 +9,169 @@ import java.util.Date;
@Entity @Entity
public class DmpIncome { public class DmpIncome {
private Long id;// ID private Long id;// ID
private String contractCode;//合同编号 private String contractCode;//合同编号
private String incomeMonth;//收入月份 private String incomeMonth;//收入月份
private String period;//结算周期 private String period;//结算周期
private String sysSettlement;//系统结算 private String sysSettlement;//系统结算
private String monthSettlement;//按月结算 private String monthSettlement;//按月结算
private String confirmSettlement;//确认结算 private String confirmSettlement;//确认结算
private String taxRate;//税率 private String taxRate;//税率
private Date createTime; private Date createTime;
private Date modifyTime; private Date modifyTime;
private String uploadUser; private String uploadUser;
private int index;
//contract_code, my_body_name, customer_body, customer_short, business_type, agreement_type
//contract_code, my_body_name, customer_body, customer_short, business_type, agreement_type
private String myBodyName,
customerBody, private String myBodyName,
customerShort, customerBody,
businessType, customerShort,
agreementType; businessType,
agreementType;
@Id
@GeneratedValue @Id
public Long getId() { @GeneratedValue
return id; public Long getId() {
} return id;
}
public void setId(Long id) {
this.id = id; public void setId(Long id) {
} this.id = id;
}
public String getContractCode() {
return contractCode; public String getContractCode() {
} return contractCode;
}
public void setContractCode(String contractCode) {
this.contractCode = contractCode; public void setContractCode(String contractCode) {
} this.contractCode = contractCode;
}
public String getIncomeMonth() {
return incomeMonth; public String getIncomeMonth() {
} return incomeMonth;
}
public void setIncomeMonth(String incomeMonth) {
this.incomeMonth = incomeMonth; public void setIncomeMonth(String incomeMonth) {
} this.incomeMonth = incomeMonth;
}
public String getPeriod() {
return period; public String getPeriod() {
} return period;
}
public void setPeriod(String period) {
this.period = period; public void setPeriod(String period) {
} this.period = period;
}
public String getSysSettlement() {
return sysSettlement; public String getSysSettlement() {
} return sysSettlement;
}
public void setSysSettlement(String sysSettlement) {
this.sysSettlement = sysSettlement; public void setSysSettlement(String sysSettlement) {
} this.sysSettlement = sysSettlement;
}
public String getMonthSettlement() {
return monthSettlement; public String getMonthSettlement() {
} return monthSettlement;
}
public void setMonthSettlement(String monthSettlement) {
this.monthSettlement = monthSettlement; public void setMonthSettlement(String monthSettlement) {
} this.monthSettlement = monthSettlement;
}
public String getConfirmSettlement() {
return confirmSettlement; public String getConfirmSettlement() {
} return confirmSettlement;
}
public void setConfirmSettlement(String confirmSettlement) {
this.confirmSettlement = confirmSettlement; public void setConfirmSettlement(String confirmSettlement) {
} this.confirmSettlement = confirmSettlement;
}
public String getTaxRate() {
return taxRate; public String getTaxRate() {
} return taxRate;
}
public void setTaxRate(String taxRate) {
this.taxRate = taxRate; public void setTaxRate(String taxRate) {
} this.taxRate = taxRate;
}
public Date getCreateTime() {
return createTime; public Date getCreateTime() {
} return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime; public void setCreateTime(Date createTime) {
} this.createTime = createTime;
}
public Date getModifyTime() {
return modifyTime; public Date getModifyTime() {
} return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime; public void setModifyTime(Date modifyTime) {
} this.modifyTime = modifyTime;
}
public String getUploadUser() {
return uploadUser; public String getUploadUser() {
} return uploadUser;
}
public void setUploadUser(String uploadUser) {
this.uploadUser = uploadUser; public void setUploadUser(String uploadUser) {
} this.uploadUser = uploadUser;
}
@Transient
public String getMyBodyName() { @Transient
return myBodyName; public String getMyBodyName() {
} return myBodyName;
}
public void setMyBodyName(String myBodyName) {
this.myBodyName = myBodyName; public void setMyBodyName(String myBodyName) {
} this.myBodyName = myBodyName;
}
@Transient
public String getCustomerBody() { @Transient
return customerBody; public String getCustomerBody() {
} return customerBody;
}
public void setCustomerBody(String customerBody) {
this.customerBody = customerBody; public void setCustomerBody(String customerBody) {
} this.customerBody = customerBody;
}
@Transient
public String getCustomerShort() { @Transient
return customerShort; public String getCustomerShort() {
} return customerShort;
}
public void setCustomerShort(String customerShort) {
this.customerShort = customerShort; public void setCustomerShort(String customerShort) {
} this.customerShort = customerShort;
}
@Transient
public String getBusinessType() { @Transient
return businessType; public String getBusinessType() {
} return businessType;
}
public void setBusinessType(String businessType) {
this.businessType = businessType; public void setBusinessType(String businessType) {
} this.businessType = businessType;
}
@Transient
public String getAgreementType() { @Transient
return agreementType; public String getAgreementType() {
} return agreementType;
}
public void setAgreementType(String agreementType) {
this.agreementType = agreementType; public void setAgreementType(String agreementType) {
} this.agreementType = agreementType;
}
@Transient
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
} }
...@@ -16,4 +16,5 @@ public interface DmpIncomeRepository extends JpaRepository<DmpIncome, Long> { ...@@ -16,4 +16,5 @@ public interface DmpIncomeRepository extends JpaRepository<DmpIncome, Long> {
@Query(value = "select * from dmp_income where contract_code = ?1 and income_month =?2 limit 1 ", nativeQuery = true) @Query(value = "select * from dmp_income where contract_code = ?1 and income_month =?2 limit 1 ", nativeQuery = true)
DmpIncome findByCodeMonth(String contractCode, String incomeMonth); DmpIncome findByCodeMonth(String contractCode, String incomeMonth);
} }
...@@ -10,17 +10,17 @@ import java.util.List; ...@@ -10,17 +10,17 @@ import java.util.List;
public interface DmpIncomeService { public interface DmpIncomeService {
List<DmpIncome> listByCode(String contractCode); List<DmpIncome> listByCode(String contractCode);
List<DmpIncome> listByDs(String start, String end); List<DmpIncome> listByDs(String start, String end);
HSSFWorkbook exportIncomeList(String startDate, String endDate, String bodyCode, String serchName); HSSFWorkbook exportIncomeList(String startDate, String endDate, String bodyCode, String serchName);
DmpIncome update(DmpIncome dmpIncome); DmpIncome update(DmpIncome dmpIncome);
Long delete(Long id); Long delete(DmpIncome dmpIncome);
ResultModel uploadFile(MultipartFile file, String platform, User loginAccount); ResultModel uploadFile(MultipartFile file, String platform, User loginAccount);
ResultModel contractUploadFile(MultipartFile file, String platform, User loginAccount); ResultModel contractUploadFile(MultipartFile file, String platform, User loginAccount);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment