Commit cfb73cd2 authored by eddie.woo's avatar eddie.woo

merge ken

parent 0a4c945f
.* .*
rebel.xml rebel.xml
!.gitignore !.gitignore
!.mvn !.mvn
/tmp /tmp
/temp /temp
/target /target
/build /build
/logs /logs
/atms-web/src/main/webapp/node_modules /atms-web/src/main/webapp/node_modules
**/*.iml **/*.iml
**/.idea/ **/.idea/
/bin/
package pwc.taxtech.atms; package pwc.taxtech.atms;
import pwc.taxtech.atms.dto.user.UserDto; import pwc.taxtech.atms.dto.user.UserDto;
import pwc.taxtech.atms.service.OperationLogService; import pwc.taxtech.atms.service.OperationLogService;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
public class AppCachePool { public class AppCachePool {
private static Map<String, UserDto> CACHED_USERS = null; private static Map<String, UserDto> CACHED_USERS = null;
private static Object _locker = new Object(); private static Object _locker = new Object();
static { static {
CACHED_USERS = new HashMap<>(); CACHED_USERS = new HashMap<>();
} }
public static UserDto getCachedUser(String name) { public static UserDto getCachedUser(String name) {
String userName = name.toLowerCase(); String userName = name.toLowerCase();
synchronized (_locker) { synchronized (_locker) {
if (!CACHED_USERS.containsKey(userName)) { if (!CACHED_USERS.containsKey(userName)) {
UserDto dto = new UserDto();//TODO:should fixed to load from db (neo) UserDto dto = new UserDto();//TODO:should fixed to load from db (neo)
dto.setUserName("cach_test"); dto.setUserName("cach_test");
dto.setID("1"); dto.setID("1");
CACHED_USERS.put(userName,dto); CACHED_USERS.put(userName,dto);
} }
return CACHED_USERS.get(userName); return CACHED_USERS.get(userName);
} }
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
public enum EnumInputInvoiceEntityType { public enum EnumInputInvoiceEntityType {
InvoicePaperTicket(1,"纸票"), InvoicePaperTicket(1,"纸票"),
InvoiceElectronicTicket(2,"电子票"), InvoiceElectronicTicket(2,"电子票"),
InvoiceUnKnown(99,"未知"); InvoiceUnKnown(99,"未知");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumInputInvoiceEntityType(int code, String name) { EnumInputInvoiceEntityType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
/**退票原因 /**退票原因
* *
* @author Ken Q You * @author Ken Q You
* *
*/ */
public enum EnumInputInvoiceRefundReason { public enum EnumInputInvoiceRefundReason {
FakeInvoice(1), FakeInvoice(1),
InvoicePackage(2), InvoicePackage(2),
InvoiceStampIncorrect(3), InvoiceStampIncorrect(3),
OtherReason (4); OtherReason (4);
private Integer code; private Integer code;
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
EnumInputInvoiceRefundReason(Integer code) { EnumInputInvoiceRefundReason(Integer code) {
this.code = code; this.code = code;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
public enum EnumInputInvoiceSourceType { public enum EnumInputInvoiceSourceType {
InvoiceRawMaterialPurchase(1,"原料采购"), InvoiceRawMaterialPurchase(1,"原料采购"),
InvoiceNonRawMaterialPurchase(2,"非原料集中采购"), InvoiceNonRawMaterialPurchase(2,"非原料集中采购"),
InvoiceClaim(3,"报销"), InvoiceClaim(3,"报销"),
InvoiceStampIncorrect(4,"发票章错误"), InvoiceStampIncorrect(4,"发票章错误"),
InvoiceUnKnown(99,"未知"); InvoiceUnKnown(99,"未知");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumInputInvoiceSourceType(int code, String name) { EnumInputInvoiceSourceType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
public enum EnumInputInvoiceStatusType { public enum EnumInputInvoiceStatusType {
InvoiceHasUpload(1,"已上传"), InvoiceHasUpload(1,"已上传"),
InvoiceUnrecognize(3,"无法识别"), InvoiceUnrecognize(3,"无法识别"),
InvoiceHasRefund(4,"已退票"), InvoiceHasRefund(4,"已退票"),
InvoiceVerifyFailure(6,"验真失败"), InvoiceVerifyFailure(6,"验真失败"),
InvoicePendingMatc(7,"待匹配"), InvoicePendingMatc(7,"待匹配"),
InvoiceHasMatch(8,"已匹配"), InvoiceHasMatch(8,"已匹配"),
InvoicePendingVerify(9,"待认证"), InvoicePendingVerify(9,"待认证"),
InvoiceHasVerify(10,"已认证"), InvoiceHasVerify(10,"已认证"),
InvoiceUnableVerify(11,"无法认证"), InvoiceUnableVerify(11,"无法认证"),
InvoiceHasClean(13,"已清理"), InvoiceHasClean(13,"已清理"),
InvoiceHasExpired(14,"已失效"), InvoiceHasExpired(14,"已失效"),
InvoicePendingRefund(16,"待退票"), InvoicePendingRefund(16,"待退票"),
InvoiceDuplicate(18,"已重复"), InvoiceDuplicate(18,"已重复"),
InvoiceRecognizeInProgress(100,"正在识别"); InvoiceRecognizeInProgress(100,"正在识别");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumInputInvoiceStatusType(int code, String name) { EnumInputInvoiceStatusType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
public enum EnumInputInvoiceType { public enum EnumInputInvoiceType {
VatInvoiceSpecialTicket(1, "增值税专用发票"), VatInvoiceSpecialTicket(1, "增值税专用发票"),
VatInvoiceOrdinaryTicketl(2, "增值税普通发票"); VatInvoiceOrdinaryTicketl(2, "增值税普通发票");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
private EnumInputInvoiceType(int code, String name) { private EnumInputInvoiceType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
public enum EnumInputInvoiceUploadType { public enum EnumInputInvoiceUploadType {
InvoiceModePDF(1,"PDF上传"), InvoiceModePDF(1,"PDF上传"),
InvoiceModeScan(2,"扫描上传"), InvoiceModeScan(2,"扫描上传"),
InvoiceModeMobileDevice(3,"扫描枪上传"), InvoiceModeMobileDevice(3,"扫描枪上传"),
InvoiceFromAPI(4,"未认证发票来自接口"); InvoiceFromAPI(4,"未认证发票来自接口");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumInputInvoiceUploadType(int code, String name) { EnumInputInvoiceUploadType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
import org.joda.time.Years; import org.joda.time.Years;
/** /**
* 是否计入进项税额 * 是否计入进项税额
* @author Ken Q You * @author Ken Q You
* *
*/ */
public enum EnumIsIncludedInTaxAmountType { public enum EnumIsIncludedInTaxAmountType {
Year(1,"是"), Year(1,"是"),
No(2,"否"), No(2,"否"),
NotRecognized(3,"未识别"), NotRecognized(3,"未识别"),
Partial(4,"部分计入进项税额"); Partial(4,"部分计入进项税额");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumIsIncludedInTaxAmountType(int code, String name) { EnumIsIncludedInTaxAmountType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
/** /**
* 服务类型 * 服务类型
* @author Ken Q You * @author Ken Q You
* *
*/ */
public enum EnumProductionServiceType { public enum EnumProductionServiceType {
AcquireIntangibleAssets(1,"取得无形资产"), AcquireIntangibleAssets(1,"取得无形资产"),
TheRightToUseTheLand(2,"受让土地使用权"), TheRightToUseTheLand(2,"受让土地使用权"),
TransportService(3,"运输服务"), TransportService(3,"运输服务"),
TelecommunicationsService(4,"电信服务"), TelecommunicationsService(4,"电信服务"),
PhysicalAndCommercialLeasing(5,"有形动产租赁"), PhysicalAndCommercialLeasing(5,"有形动产租赁"),
ImmovablePropertyLeasing(6,"不动产租赁"), ImmovablePropertyLeasing(6,"不动产租赁"),
BuildingInstallationService(7,"建筑安装服务"), BuildingInstallationService(7,"建筑安装服务"),
FinancialInsuranceService(8,"金融保险服务"), FinancialInsuranceService(8,"金融保险服务"),
ServiceForLife(9,"生活服务"); ServiceForLife(9,"生活服务");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumProductionServiceType(int code, String name) { EnumProductionServiceType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.constant.enums; package pwc.taxtech.atms.constant.enums;
/** /**
* 商品类型 * 商品类型
* @author Ken Q You * @author Ken Q You
* *
*/ */
public enum EnumProductionType { public enum EnumProductionType {
RawMaterialForProduce(1,"用于生产的原材料"), RawMaterialForProduce(1,"用于生产的原材料"),
RawMaterialForSale(2,"用于直接销售的原材料"), RawMaterialForSale(2,"用于直接销售的原材料"),
FixedAssetsMovable(3,"固定资产-动产"), FixedAssetsMovable(3,"固定资产-动产"),
FixedAssetsNonmoveable(4,"固定资产-不动产"), FixedAssetsNonmoveable(4,"固定资产-不动产"),
EmployeeBenefit(5,"员工福利"), EmployeeBenefit(5,"员工福利"),
PromotionalProducts(6,"促销品"), PromotionalProducts(6,"促销品"),
TaxControlSystemEquipmentAndMaintenanceCosts(7,"税控系统设备及维护费用"), TaxControlSystemEquipmentAndMaintenanceCosts(7,"税控系统设备及维护费用"),
Service(8,"服务"), Service(8,"服务"),
GoodsAndProcessingRepairAndRepairServices(9,"货物及加工修理修配劳务"), GoodsAndProcessingRepairAndRepairServices(9,"货物及加工修理修配劳务"),
Other(10,"其他"); Other(10,"其他");
private int code; private int code;
private String name; private String name;
public int getCode() { public int getCode() {
return code; return code;
} }
public String getName() { public String getName() {
return name; return name;
} }
EnumProductionType(int code, String name) { EnumProductionType(int code, String name) {
this.code = code; this.code = code;
this.name = name; this.name = name;
} }
} }
package pwc.taxtech.atms.controller; package pwc.taxtech.atms.controller;
import org.apache.http.HttpStatus; import org.apache.http.HttpStatus;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import pwc.taxtech.atms.dto.PagingResultDto; import pwc.taxtech.atms.dto.PagingResultDto;
import pwc.taxtech.atms.dto.vatdto.*; import pwc.taxtech.atms.dto.vatdto.*;
import pwc.taxtech.atms.thirdparty.ExcelSheet; import pwc.taxtech.atms.thirdparty.ExcelSheet;
import pwc.taxtech.atms.thirdparty.ExcelUtil; import pwc.taxtech.atms.thirdparty.ExcelUtil;
import pwc.taxtech.atms.vat.service.InputInvoiceDataImportService; import pwc.taxtech.atms.vat.service.InputInvoiceDataImportService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.*; import java.util.*;
@RestController @RestController
@RequestMapping(value = "api/v1/inputInvoiceImport") @RequestMapping(value = "api/v1/inputInvoiceImport")
public class InputInvoiceImportController { public class InputInvoiceImportController {
@Autowired @Autowired
InputInvoiceDataImportService inputInvoiceDataImportService; InputInvoiceDataImportService inputInvoiceDataImportService;
@RequestMapping(value = "inputInvoicePreviewList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "inputInvoicePreviewList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public @ResponseBody public @ResponseBody
PagingResultDto<InputVATInvoiceDto> getInputInvoiceTreeViewData(@RequestBody InputInvoicePreviewQueryParam paras) { PagingResultDto<InputVATInvoiceDto> getInputInvoiceTreeViewData(@RequestBody InputInvoicePreviewQueryParam paras) {
return inputInvoiceDataImportService.getInputInvoiceTreeViewData(paras); return inputInvoiceDataImportService.getInputInvoiceTreeViewData(paras);
} }
@RequestMapping(value = "exportQueryData/get", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "exportQueryData/get", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public void downloadInvoiceQueryData(@RequestBody InputInvoicePreviewQueryParam paras, HttpServletResponse response) { public void downloadInvoiceQueryData(@RequestBody InputInvoicePreviewQueryParam paras, HttpServletResponse response) {
response.setContentType("application/vnd.ms-excel;charset=utf-8"); response.setContentType("application/vnd.ms-excel;charset=utf-8");
response.setHeader("Content-Disposition", "attachment;filename=" + UUID.randomUUID() + ".xlsx"); response.setHeader("Content-Disposition", "attachment;filename=" + UUID.randomUUID() + ".xlsx");
response.setHeader("x-file-name", UUID.randomUUID() + ".xlsx"); response.setHeader("x-file-name", UUID.randomUUID() + ".xlsx");
OutputStream os = null; OutputStream os = null;
try { try {
os = response.getOutputStream(); os = response.getOutputStream();
int count = getDownloadFilePath(paras, os); int count = getDownloadFilePath(paras, os);
if (count == 0) { if (count == 0) {
response.setStatus(HttpStatus.SC_NO_CONTENT); response.setStatus(HttpStatus.SC_NO_CONTENT);
} else { } else {
response.setStatus(HttpStatus.SC_OK); response.setStatus(HttpStatus.SC_OK);
} }
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
private int getDownloadFilePath(InputInvoicePreviewQueryParam paras, OutputStream outputStream) { private int getDownloadFilePath(InputInvoicePreviewQueryParam paras, OutputStream outputStream) {
List<InputVATInvoiceDto> list = inputInvoiceDataImportService.getInputInvoiceTreeViewData(paras).getList(); List<InputVATInvoiceDto> list = inputInvoiceDataImportService.getInputInvoiceTreeViewData(paras).getList();
if (list.size() == 0) { if (list.size() == 0) {
//return 0; //return 0;
} }
Map<String, String> header = new HashMap<>(); Map<String, String> header = new HashMap<>();
header.put("PeriodID", "期间"); header.put("PeriodID", "期间");
header.put("InvoiceDate", "开票日期"); header.put("InvoiceDate", "开票日期");
header.put("InvoiceCode", "发票代码"); header.put("InvoiceCode", "发票代码");
header.put("InvoiceNumber", "发票号码"); header.put("InvoiceNumber", "发票号码");
header.put("SellerTaxNumber", "供货方税号"); header.put("SellerTaxNumber", "供货方税号");
header.put("InvoiceTypeName", "发票类型"); header.put("InvoiceTypeName", "发票类型");
header.put("Amount", "金额"); header.put("Amount", "金额");
header.put("TaxAmount", "税额"); header.put("TaxAmount", "税额");
header.put("CertificationDate", "认证日期"); header.put("CertificationDate", "认证日期");
ExcelSheet excelSheetA = new ExcelSheet<>(); ExcelSheet excelSheetA = new ExcelSheet<>();
excelSheetA.setHeaders(header); excelSheetA.setHeaders(header);
excelSheetA.setDataset(list); excelSheetA.setDataset(list);
excelSheetA.setSheetName("sheetA"); excelSheetA.setSheetName("sheetA");
Map<String, String> header2 = new HashMap<>(); Map<String, String> header2 = new HashMap<>();
header2.put("PeriodID", "期间"); header2.put("PeriodID", "期间");
header2.put("InvoiceCode", "发票代码"); header2.put("InvoiceCode", "发票代码");
header2.put("InvoiceNumber", "发票号码"); header2.put("InvoiceNumber", "发票号码");
header2.put("Amount", "金额"); header2.put("Amount", "金额");
header2.put("TaxAmount", "税额"); header2.put("TaxAmount", "税额");
header2.put("TaxRate", "税率"); header2.put("TaxRate", "税率");
header2.put("ProductionName", "货物名称"); header2.put("ProductionName", "货物名称");
ExcelSheet excelSheetB = new ExcelSheet<>(); ExcelSheet excelSheetB = new ExcelSheet<>();
excelSheetB.setHeaders(header2); excelSheetB.setHeaders(header2);
excelSheetB.setSheetName("sheetB"); excelSheetB.setSheetName("sheetB");
List<InputVATInvoiceItemDto> inputInvoiceItemList = new ArrayList<>(); List<InputVATInvoiceItemDto> inputInvoiceItemList = new ArrayList<>();
for (InputVATInvoiceDto item : list) { for (InputVATInvoiceDto item : list) {
List<InputVATInvoiceItemDto> tempResult = inputInvoiceDataImportService.getInputInvoiceItemTreeViewData(item.getID()); List<InputVATInvoiceItemDto> tempResult = inputInvoiceDataImportService.getInputInvoiceItemTreeViewData(item.getID());
for (InputVATInvoiceItemDto r : tempResult) { for (InputVATInvoiceItemDto r : tempResult) {
inputInvoiceItemList.add(r); inputInvoiceItemList.add(r);
} }
} }
excelSheetB.setDataset(inputInvoiceItemList); excelSheetB.setDataset(inputInvoiceItemList);
List<ExcelSheet<InputVATInvoiceBaseDto>> sheets = new ArrayList<>(); List<ExcelSheet<InputVATInvoiceBaseDto>> sheets = new ArrayList<>();
sheets.add(excelSheetA); sheets.add(excelSheetA);
sheets.add(excelSheetB); sheets.add(excelSheetB);
ExcelUtil.exportExcel(sheets, outputStream); ExcelUtil.exportExcel(sheets, outputStream);
return list.size(); return list.size();
} }
} }
package pwc.taxtech.atms.dto.input; package pwc.taxtech.atms.dto.input;
public class InvoiceDictionaryDto { public class InvoiceDictionaryDto {
private Integer id; private Integer id;
private String value; private String value;
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
public String getValue() { public String getValue() {
return value; return value;
} }
public void setValue(String value) { public void setValue(String value) {
this.value = value; this.value = value;
} }
} }
package pwc.taxtech.atms.dto.input; package pwc.taxtech.atms.dto.input;
import java.util.List; import java.util.List;
import pwc.taxtech.atms.entitiy.User; import pwc.taxtech.atms.entitiy.User;
public class InvoiceFilterDto { public class InvoiceFilterDto {
private List<InvoiceDictionaryDto> invoiceStatusList; private List<InvoiceDictionaryDto> invoiceStatusList;
private List<InvoiceDictionaryDto> invoiceEntityList; private List<InvoiceDictionaryDto> invoiceEntityList;
private List<InvoiceDictionaryDto> invoiceTypeList; private List<InvoiceDictionaryDto> invoiceTypeList;
private List<InvoiceDictionaryDto> invoiceSourceList; private List<InvoiceDictionaryDto> invoiceSourceList;
private List<InvoiceDictionaryDto> invoiceUploadTypeList; private List<InvoiceDictionaryDto> invoiceUploadTypeList;
private List<InvoiceDictionaryDto> invoiceRefundReasonList; private List<InvoiceDictionaryDto> invoiceRefundReasonList;
private List<InvoiceDictionaryDto> invoiceProductionTypeList; private List<InvoiceDictionaryDto> invoiceProductionTypeList;
private List<InvoiceDictionaryDto> invoiceServiceTypeList; private List<InvoiceDictionaryDto> invoiceServiceTypeList;
private List<InvoiceDictionaryDto> isIncludedInTaxAmountTypeList; private List<InvoiceDictionaryDto> isIncludedInTaxAmountTypeList;
private List<User> allUserList; private List<User> allUserList;
public List<InvoiceDictionaryDto> getInvoiceStatusList() { public List<InvoiceDictionaryDto> getInvoiceStatusList() {
return invoiceStatusList; return invoiceStatusList;
} }
public void setInvoiceStatusList(List<InvoiceDictionaryDto> invoiceStatusList) { public void setInvoiceStatusList(List<InvoiceDictionaryDto> invoiceStatusList) {
this.invoiceStatusList = invoiceStatusList; this.invoiceStatusList = invoiceStatusList;
} }
public List<InvoiceDictionaryDto> getInvoiceEntityList() { public List<InvoiceDictionaryDto> getInvoiceEntityList() {
return invoiceEntityList; return invoiceEntityList;
} }
public void setInvoiceEntityList(List<InvoiceDictionaryDto> invoiceEntityList) { public void setInvoiceEntityList(List<InvoiceDictionaryDto> invoiceEntityList) {
this.invoiceEntityList = invoiceEntityList; this.invoiceEntityList = invoiceEntityList;
} }
public List<InvoiceDictionaryDto> getInvoiceTypeList() { public List<InvoiceDictionaryDto> getInvoiceTypeList() {
return invoiceTypeList; return invoiceTypeList;
} }
public void setInvoiceTypeList(List<InvoiceDictionaryDto> invoiceTypeList) { public void setInvoiceTypeList(List<InvoiceDictionaryDto> invoiceTypeList) {
this.invoiceTypeList = invoiceTypeList; this.invoiceTypeList = invoiceTypeList;
} }
public List<InvoiceDictionaryDto> getInvoiceSourceList() { public List<InvoiceDictionaryDto> getInvoiceSourceList() {
return invoiceSourceList; return invoiceSourceList;
} }
public void setInvoiceSourceList(List<InvoiceDictionaryDto> invoiceSourceList) { public void setInvoiceSourceList(List<InvoiceDictionaryDto> invoiceSourceList) {
this.invoiceSourceList = invoiceSourceList; this.invoiceSourceList = invoiceSourceList;
} }
public List<InvoiceDictionaryDto> getInvoiceUploadTypeList() { public List<InvoiceDictionaryDto> getInvoiceUploadTypeList() {
return invoiceUploadTypeList; return invoiceUploadTypeList;
} }
public void setInvoiceUploadTypeList(List<InvoiceDictionaryDto> invoiceUploadTypeList) { public void setInvoiceUploadTypeList(List<InvoiceDictionaryDto> invoiceUploadTypeList) {
this.invoiceUploadTypeList = invoiceUploadTypeList; this.invoiceUploadTypeList = invoiceUploadTypeList;
} }
public List<InvoiceDictionaryDto> getInvoiceRefundReasonList() { public List<InvoiceDictionaryDto> getInvoiceRefundReasonList() {
return invoiceRefundReasonList; return invoiceRefundReasonList;
} }
public void setInvoiceRefundReasonList(List<InvoiceDictionaryDto> invoiceRefundReasonList) { public void setInvoiceRefundReasonList(List<InvoiceDictionaryDto> invoiceRefundReasonList) {
this.invoiceRefundReasonList = invoiceRefundReasonList; this.invoiceRefundReasonList = invoiceRefundReasonList;
} }
public List<InvoiceDictionaryDto> getInvoiceProductionTypeList() { public List<InvoiceDictionaryDto> getInvoiceProductionTypeList() {
return invoiceProductionTypeList; return invoiceProductionTypeList;
} }
public void setInvoiceProductionTypeList(List<InvoiceDictionaryDto> invoiceProductionTypeList) { public void setInvoiceProductionTypeList(List<InvoiceDictionaryDto> invoiceProductionTypeList) {
this.invoiceProductionTypeList = invoiceProductionTypeList; this.invoiceProductionTypeList = invoiceProductionTypeList;
} }
public List<InvoiceDictionaryDto> getInvoiceServiceTypeList() { public List<InvoiceDictionaryDto> getInvoiceServiceTypeList() {
return invoiceServiceTypeList; return invoiceServiceTypeList;
} }
public void setInvoiceServiceTypeList(List<InvoiceDictionaryDto> invoiceServiceTypeList) { public void setInvoiceServiceTypeList(List<InvoiceDictionaryDto> invoiceServiceTypeList) {
this.invoiceServiceTypeList = invoiceServiceTypeList; this.invoiceServiceTypeList = invoiceServiceTypeList;
} }
public List<InvoiceDictionaryDto> getIsIncludedInTaxAmountTypeList() { public List<InvoiceDictionaryDto> getIsIncludedInTaxAmountTypeList() {
return isIncludedInTaxAmountTypeList; return isIncludedInTaxAmountTypeList;
} }
public void setIsIncludedInTaxAmountTypeList(List<InvoiceDictionaryDto> isIncludedInTaxAmountTypeList) { public void setIsIncludedInTaxAmountTypeList(List<InvoiceDictionaryDto> isIncludedInTaxAmountTypeList) {
this.isIncludedInTaxAmountTypeList = isIncludedInTaxAmountTypeList; this.isIncludedInTaxAmountTypeList = isIncludedInTaxAmountTypeList;
} }
public List<User> getAllUserList() { public List<User> getAllUserList() {
return allUserList; return allUserList;
} }
public void setAllUserList(List<User> allUserList) { public void setAllUserList(List<User> allUserList) {
this.allUserList = allUserList; this.allUserList = allUserList;
} }
} }
\ No newline at end of file
<!DOCTYPE configuration <!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN" PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd"> "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration> <configuration>
<!-- 全局setting配置,根据需要添加 --> <!-- 全局setting配置,根据需要添加 -->
<settings> <settings>
<setting name="logImpl" value="LOG4J" /> <setting name="logImpl" value="LOG4J" />
</settings> </settings>
<!-- 配置别名 --> <!-- 配置别名 -->
<typeAliases> <typeAliases>
<package name="pwc.taxtech.atms.entitiy"/> <package name="pwc.taxtech.atms.entitiy"/>
</typeAliases> </typeAliases>
<!-- 插件 --> <!-- 插件 -->
<plugins> <plugins>
<plugin interceptor="com.github.pagehelper.PageInterceptor"> <plugin interceptor="com.github.pagehelper.PageInterceptor">
<!-- 4.0.0以后版本可以不设置该参数 --> <!-- 4.0.0以后版本可以不设置该参数 -->
<property name="diaect" value="mysql"/> <property name="diaect" value="mysql"/>
<!-- <!--
该参数默认为false 该参数默认为false
设置为true时,会将RowBounds第一个参数offset当成pageNum页码使用 设置为true时,会将RowBounds第一个参数offset当成pageNum页码使用
和startPage中的pageNum效果一样 和startPage中的pageNum效果一样
--> -->
<property name="offsetAsPageNum" value="true"/> <property name="offsetAsPageNum" value="true"/>
<!-- <!--
该参数默认为false 该参数默认为false
设置为true时,使用RowBounds分页会进行count查询 设置为true时,使用RowBounds分页会进行count查询
--> -->
<property name="rowBoundsWithCount" value="true"/> <property name="rowBoundsWithCount" value="true"/>
<!-- <!--
设置为true时,如果pageSize=0或者RowBounds.limit=0就会查询出全部的结果 设置为true时,如果pageSize=0或者RowBounds.limit=0就会查询出全部的结果
(相当于没有执行分页查询,只是返回结果仍然是Page类型) (相当于没有执行分页查询,只是返回结果仍然是Page类型)
--> -->
<property name="pageSizeZero" value="true"/> <property name="pageSizeZero" value="true"/>
<!-- <!--
3.3.0版本可用-分页参数合理化,默认false禁用 3.3.0版本可用-分页参数合理化,默认false禁用
启用合理化时,如果pageNum<1会查询第一页,如果pageNum>pages会查询最后一页 启用合理化时,如果pageNum<1会查询第一页,如果pageNum>pages会查询最后一页
禁用合理化时,如果pageNum<1或pages会返回空数据 禁用合理化时,如果pageNum<1或pages会返回空数据
--> -->
<property name="reasonable" value="true"/> <property name="reasonable" value="true"/>
<!-- <!--
3.5.0版本可用-为了支持startPage(Object params)方法 3.5.0版本可用-为了支持startPage(Object params)方法
增加了一个'params'参数来配置参数映射,用于从Map或ServletRequest中取值 增加了一个'params'参数来配置参数映射,用于从Map或ServletRequest中取值
可以配置pageNum,pageSize,count,pageSizeZero,reasonable,orderBy,不配置映射的用默认值 可以配置pageNum,pageSize,count,pageSizeZero,reasonable,orderBy,不配置映射的用默认值
不理解该含义的前提下,不要随便复制该配置 不理解该含义的前提下,不要随便复制该配置
--> -->
<property name="params" value="pageNum=start;pageSize=limit;"/> <property name="params" value="pageNum=start;pageSize=limit;"/>
<!-- 支持通过Mapper接口参数来传递分页参数 --> <!-- 支持通过Mapper接口参数来传递分页参数 -->
<property name="supportMethodsArguments" value="true"/> <property name="supportMethodsArguments" value="true"/>
<!-- always重视返回PageInfo类型,check检查返回类型是否为PageInfo,none返回Page --> <!-- always重视返回PageInfo类型,check检查返回类型是否为PageInfo,none返回Page -->
<property name="returnPageInfo" value="check"/> <property name="returnPageInfo" value="check"/>
</plugin> </plugin>
</plugins> </plugins>
</configuration> </configuration>
\ No newline at end of file
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