Commit 48d3fa8f authored by liboyang's avatar liboyang

push

parent 94a71d39
package com.yxproject.start.api;
import com.yxproject.start.entity.PersonPostAbnormalEntity;
import com.yxproject.start.entity.RedoRegistrationEntity;
import com.yxproject.start.entity.TemporaryCertificateEntity;
import com.yxproject.start.utils.ExportExcel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("exportExcel")
public class ExportExcelApi {
/**
* 导出临时证信息
*/
@RequestMapping("ExportTemporaryCertificate")
public boolean ExportTemporaryCertificate(){
PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity();
ExportExcel obj = new ExportExcel();
obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate);
return true;
}
/**
* 导出重做证件信息
*/
@RequestMapping("ExportRedoRegistration")
public boolean ExportRedoRegistration(){
RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity();
ExportExcel obj = new ExportExcel();
obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration);
return true;
}
}
//package com.yxproject.start.api;
//
//import com.yxproject.start.entity.PersonPostAbnormalEntity;
//import com.yxproject.start.entity.RedoRegistrationEntity;
//import com.yxproject.start.entity.TemporaryCertificateEntity;
//import com.yxproject.start.utils.ExportExcel;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@RestController
//@RequestMapping("exportExcel")
//public class ExportExcelApi {
// /**
// * 导出临时证信息
// */
// @RequestMapping("ExportTemporaryCertificate")
// public boolean ExportTemporaryCertificate(){
// PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity();
// ExportExcel obj = new ExportExcel();
// obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate);
// return true;
// }
// /**
// * 导出重做证件信息
// */
// @RequestMapping("ExportRedoRegistration")
// public boolean ExportRedoRegistration(){
// RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity();
// ExportExcel obj = new ExportExcel();
// obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration);
// return true;
// }
//
//}
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