DmpIncomeService.java 1.36 KB
Newer Older
kangxiaoshan committed
1 2 3
package common.service;

import common.model.DmpIncome;
kangxiaoshan committed
4 5
import common.model.PdAttachment;
import common.model.PdIncome;
kangxiaoshan committed
6 7
import common.model.User;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
kangxiaoshan committed
8
import org.springframework.http.ResponseEntity;
kangxiaoshan committed
9
import org.springframework.web.multipart.MultipartFile;
kangxiaoshan committed
10
import tkio.model.Account;
kangxiaoshan committed
11 12 13 14 15 16
import util.ResultModel;

import java.util.List;

public interface DmpIncomeService {

kangxiaoshan committed
17
	List<DmpIncome> listByCode(String contractCode);
kangxiaoshan committed
18

kangxiaoshan committed
19
	List<DmpIncome> listByDs(String start, String end);
kangxiaoshan committed
20

kangxiaoshan committed
21
	HSSFWorkbook exportIncomeList(String startDate, String endDate, String bodyCode, String serchName);
kangxiaoshan committed
22

kangxiaoshan committed
23
	DmpIncome update(DmpIncome dmpIncome);
kangxiaoshan committed
24

kangxiaoshan committed
25
	Long delete(DmpIncome dmpIncome);
kangxiaoshan committed
26

kangxiaoshan committed
27
	ResultModel uploadFile(MultipartFile file, String platform, User loginAccount);
kangxiaoshan committed
28 29

    ResultModel contractUploadFile(MultipartFile file, String platform, User loginAccount);
kangxiaoshan committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43

    List listpdIncomeByCode(String code);

    PdIncome pdCreate(PdIncome income, User account);

    PdIncome pdUpdate(PdIncome income);

    int pdDelete(PdIncome income);

    PdAttachment uploadPdAttach(MultipartFile file, String contractCode, User user);

    ResponseEntity<byte[]> downloadAttach(Long id);

    PdAttachment deleteAttach(Long id);
kangxiaoshan committed
44 45 46 47

    List pdListByDs(String startDate, String endDate);

    HSSFWorkbook exportPdIncomeList(String startDate, String endDate, String bodyCode, String serchName);
48

kangxiaoshan committed
49
}