Commit c2f4df04 by kangxiaoshan

DMP 收入

parent 37ebb5dc
...@@ -44,11 +44,13 @@ public class DmpIncomeController { ...@@ -44,11 +44,13 @@ public class DmpIncomeController {
} }
@PostMapping("/upload/{platform}") @PostMapping("/upload")
public ResultModel uploadList(@RequestParam("file") MultipartFile file, @PathVariable String platform, @CurrentAccount User loginAccount) { public ResultModel uploadList(@RequestParam("file") MultipartFile file, @CurrentAccount User loginAccount) {
//上传收入数据 //上传收入数据
dmpIncomeService.uploadFile(file,platform,loginAccount); dmpIncomeService.uploadFile(file, "dmp", loginAccount);
return ResultModel.OK(); return ResultModel.OK();
} }
} }
...@@ -107,6 +107,8 @@ public class Contract { ...@@ -107,6 +107,8 @@ public class Contract {
private int businessType; //业务类型 1 VIP 2 共管 private int businessType; //业务类型 1 VIP 2 共管
private int agreementType; //协议类型 1 普通协议 2 框架协议 private int agreementType; //协议类型 1 普通协议 2 框架协议
private String businessTypeName; //业务类型 1 VIP 2 共管
private String agreementTypeName; //协议类型 1 普通协议 2 框架协议
@Id @Id
@GeneratedValue @GeneratedValue
...@@ -791,4 +793,22 @@ public class Contract { ...@@ -791,4 +793,22 @@ public class Contract {
public void setAgreementType(int agreementType) { public void setAgreementType(int agreementType) {
this.agreementType = agreementType; this.agreementType = agreementType;
} }
@Transient
public String getBusinessTypeName() {
return businessTypeName;
}
public void setBusinessTypeName(String businessTypeName) {
this.businessTypeName = businessTypeName;
}
@Transient
public String getAgreementTypeName() {
return agreementTypeName;
}
public void setAgreementTypeName(String agreementTypeName) {
this.agreementTypeName = agreementTypeName;
}
} }
...@@ -9,8 +9,8 @@ import java.util.Date; ...@@ -9,8 +9,8 @@ import java.util.Date;
@Entity @Entity
public class DmpIncome { public class DmpIncome {
private Long 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;//系统结算
......
...@@ -21,4 +21,6 @@ public interface DmpIncomeService { ...@@ -21,4 +21,6 @@ public interface DmpIncomeService {
Long delete(Long id); Long delete(Long id);
ResultModel uploadFile(MultipartFile file, String platform, User loginAccount); ResultModel uploadFile(MultipartFile file, String platform, User loginAccount);
ResultModel contractUploadFile(MultipartFile file, String platform, User loginAccount);
} }
...@@ -232,6 +232,9 @@ public class ContractServiceImpl implements ContractService { ...@@ -232,6 +232,9 @@ public class ContractServiceImpl implements ContractService {
@Autowired @Autowired
private CalculationFlowRepository calculationFlowRepository; private CalculationFlowRepository calculationFlowRepository;
@Autowired
private DmpIncomeService dmpIncomeService;
@Override @Override
public Map<String, Object> checkAccount(String email, String platfrom) { public Map<String, Object> checkAccount(String email, String platfrom) {
...@@ -2487,6 +2490,12 @@ public class ContractServiceImpl implements ContractService { ...@@ -2487,6 +2490,12 @@ public class ContractServiceImpl implements ContractService {
@Override @Override
public ResultModel uploadBatchInfo(MultipartFile file, String platform, User loginAccount) { public ResultModel uploadBatchInfo(MultipartFile file, String platform, User loginAccount) {
if ("dmp".equals(platform)) {
return dmpIncomeService.contractUploadFile(file, platform, loginAccount);
}
InputStream stream = null; InputStream stream = null;
try { try {
int row_length; int row_length;
......
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