Commit ca789d95 authored by neo's avatar neo

[DEL] delete module form atms-invoice

parent 2e93dd8a
package pwc.taxtech.atms.dto.vatdto;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class InputInvoice {
private String id;
private String fpdm;
private String fphm;
private String kprq;
private String gfsh;
private String gfmc;
private String gfdzdh;
private String gfyhzh;
private String xfsh;
private String xfmc;
private String xfdzdh;
private String xfyhzh;
private String jym;
private String fplx;
private String fplc;
private String jqbh;
private String hjje;
private String hjse;
private String jshj;
private String mwq;
private String kpr;
private String skr;
private String fhr;
private String bz;
private String pzh;
private String dzdh;
private String xtly;
private String fpzt;
private String cyzt;
private String rzzt;
private String rzsq;
private String rzsj;
private String rzjg;
private String rzjgms;
private String cjsj;
private String lcbh;
private String fpyx;
private String blyy;
private String lrrq;
private String companyid;
}
package pwc.taxtech.atms.dto.vatdto;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class OutputInvoice {
private String id;
private String fpqqlsh;
private String fpdm;
private String fphm;
private String kprq;
private String fplxdm;
private String ewm;
private String jqbh;
private String jym;
private String gfmc;
private String gfsh;
private String gfdzdh;
private String gfyhzh;
private String xfsh;
private String xfmc;
private String xfdzdh;
private String xfyhzh;
private String bz;
private String skr;
private String fhr;
private String kpr;
private String kddh;
private String kduuid;
private String fplx;
private String kpzt;
private String fpzt;
private String yfpdm;
private String yfphm;
private String gfgsbm;
private String xfgsbm;
private String spbh;
private String xtly;
private String cjsj;
private String hjje;
private String hjse;
private String jshj;
private String xxbbh;
private String dyzt;
private String gdjlh;
private String zkje;
private String zkse;
private String zkjshj;
private String slv;
private String qy;
private String jszt;
private String kdgs;
private String shzt;
private String thkpsq;
private String jsfj;
private String sqr;
private String bscdm;
private String bsc;
private String qydm;
private String sqbh;
private String htbh;
private String sqrq;
private String yzrq;
}
......@@ -63,7 +63,7 @@
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_11" id="Shape-_11" isMarkerVisible="false">
<dc:Bounds height="32.0" width="32.0" x="390.0" y="380.0"/>
<dc:Bounds height="32.0" width="32.0" x="440.0" y="380.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
......@@ -76,21 +76,21 @@
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_15" id="BPMNEdge__15" sourceElement="_11" targetElement="_5">
<di:waypoint x="416.0" y="375.0"/>
<di:waypoint x="416.0" y="220.0"/>
<di:waypoint x="456.0" y="365.0"/>
<di:waypoint x="456.0" y="220.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_14" id="BPMNEdge__14" sourceElement="_3" targetElement="_11">
<di:waypoint x="290.0" y="397.5"/>
<di:waypoint x="390.0" y="396.0"/>
<di:waypoint x="440.0" y="396.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_16" id="BPMNEdge__16" sourceElement="_11" targetElement="_9">
<di:waypoint x="437.0" y="396.0"/>
<di:waypoint x="487.0" y="396.0"/>
<di:waypoint x="760.0" y="396.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.activiti.org/testm1539743341882" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" id="m1539743341882" name="" targetNamespace="http://www.activiti.org/testm1539743341882" typeLanguage="http://www.w3.org/2001/XMLSchema">
<process id="leaveProcess" isClosed="false" isExecutable="true" name="LeaveProcess" processType="None">
<startEvent id="_2" name="StartEvent"/>
<userTask activiti:assignee="apply" activiti:exclusive="true" id="usertask1" name="璇峰亣鐢宠"/>
<exclusiveGateway gatewayDirection="Unspecified" id="_4" name="ExclusiveGateway"/>
<userTask activiti:assignee="apply" activiti:exclusive="true" id="userTask2" name="瀹℃壒锛堥?鐩粡鐞嗭?"/>
<userTask activiti:assignee="boss" activiti:exclusive="true" id="usertask3" name="瀹℃壒锛堣�佹澘锛�"/>
<endEvent id="_7" name="EndEvent"/>
<sequenceFlow id="_8" sourceRef="_2" targetRef="usertask1"/>
<sequenceFlow id="_9" name="澶╂暟鍒ゆ柇" sourceRef="usertask1" targetRef="_4">
<documentation id="_9_D_1"/>
</sequenceFlow>
<sequenceFlow id="_10" name="灏忎?3澶�" sourceRef="_4" targetRef="userTask2">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${day<=3}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="_11" name="澶т簬3澶�" sourceRef="_4" targetRef="usertask3">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${day>3}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="_12" sourceRef="userTask2" targetRef="_7"/>
<sequenceFlow id="_13" sourceRef="usertask3" targetRef="_7"/>
</process>
<bpmndi:BPMNDiagram documentation="background=#FFFFFF;count=1;horizontalcount=1;orientation=0;width=842.4;height=1195.2;imageableWidth=832.4;imageableHeight=1185.2;imageableX=5.0;imageableY=5.0" id="Diagram-_1" name="New Diagram">
<bpmndi:BPMNPlane bpmnElement="leaveProcess">
<bpmndi:BPMNShape bpmnElement="_2" id="Shape-_2">
<dc:Bounds height="32.0" width="32.0" x="105.0" y="200.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask1" id="Shape-usertask1">
<dc:Bounds height="55.0" width="85.0" x="205.0" y="190.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_4" id="Shape-_4" isMarkerVisible="false">
<dc:Bounds height="32.0" width="32.0" x="405.0" y="190.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="userTask2" id="Shape-userTask2">
<dc:Bounds height="55.0" width="85.0" x="605.0" y="110.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask3" id="Shape-usertask3">
<dc:Bounds height="55.0" width="85.0" x="610.0" y="295.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_7" id="Shape-_7">
<dc:Bounds height="32.0" width="32.0" x="795.0" y="240.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_13" id="BPMNEdge__13" sourceElement="usertask3" targetElement="_7">
<di:waypoint x="695.0" y="322.5"/>
<di:waypoint x="795.0" y="256.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_12" id="BPMNEdge__12" sourceElement="userTask2" targetElement="_7">
<di:waypoint x="690.0" y="137.5"/>
<di:waypoint x="795.0" y="256.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_8" id="BPMNEdge__8" sourceElement="_2" targetElement="usertask1">
<di:waypoint x="137.0" y="216.0"/>
<di:waypoint x="205.0" y="217.5"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_9" id="BPMNEdge__9" sourceElement="usertask1" targetElement="_4">
<di:waypoint x="290.0" y="217.5"/>
<di:waypoint x="405.0" y="206.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_11" id="BPMNEdge__11" sourceElement="_4" targetElement="usertask3">
<di:waypoint x="437.0" y="206.0"/>
<di:waypoint x="610.0" y="322.5"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_10" id="BPMNEdge__10" sourceElement="_4" targetElement="userTask2">
<di:waypoint x="437.0" y="206.0"/>
<di:waypoint x="605.0" y="137.5"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
.*
rebel.xml
!.gitignore
!.mvn
/tmp
/temp
/target
/build
/logs
/bin
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>atms</artifactId>
<groupId>pwc.taxtech.atms</groupId>
<version>0.1.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>atms-invoice</artifactId>
<properties>
<java.version>1.8</java.version>
<hibernate-tools-maven-plugin.version>0.1.0</hibernate-tools-maven-plugin.version>
<project.properties.encoding>UTF-8</project.properties.encoding>
<project.build.sourceEncoding>${project.properties.encoding}</project.build.sourceEncoding>
<project.properties.license.name>apache_v2</project.properties.license.name>
<project.properties.license.txtName>Apache License, Version 2.0</project.properties.license.txtName>
<project.properties.license.url>http://www.apache.org/licenses/LICENSE-2.0.txt</project.properties.license.url>
<java.version>1.8</java.version>
<junit.version>4.12</junit.version>
<log4j.version>2.8.2</log4j.version>
<lombok.version>1.16.18</lombok.version>
<slf4j.version>1.7.25</slf4j.version>
<commons-lang3.version>3.7</commons-lang3.version>
<commons-io.version>2.6</commons-io.version>
<commons-collections4.version>4.1</commons-collections4.version>
<commons-cli.version>1.4</commons-cli.version>
<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
<maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<scm.repository.owner>udamken</scm.repository.owner>
<scm.repository.name>mybatter</scm.repository.name>
<scm.repository.repo>${scm.repository.owner}/${scm.repository.name}</scm.repository.repo>
<scm.repository.url>https://www.github.com/${scm.repository.repo}</scm.repository.url>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>ojdbc</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/ojdbc6.jar</systemPath>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.10</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.40</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.0.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>http://repo.spring.io/libs-release</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.3.RELEASE</version>
<configuration>
<mainClass>pwc.taxtech.invoice.Application</mainClass>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
</project>
package pwc.taxtech.invoice;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
private static final Logger log = LoggerFactory.getLogger(Application.class);
public static void main(String[] args) {
SpringApplication.run(Application.class);
}
}
package pwc.taxtech.invoice.common;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class PagingDto {
private Integer TotalCount;
private Integer PageIndex;
private Integer PageSize;
public PagingDto(Integer totalCount, Integer pageIndex, Integer pageSize) {
TotalCount = totalCount;
PageIndex = pageIndex;
PageSize = pageSize;
}
}
package pwc.taxtech.invoice.common;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Getter
@Setter
public class PagingResultDto<T> {
@JSONField(name = "List")
private List<T> list;
@JSONField(name = "PageInfo")
private PagingDto pageInfo;
private T calculateData;
}
package pwc.taxtech.invoice.input;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Getter
@Setter
@Table(name = "INPUT_INVOICE")
public class InputInvoice {
@Id
@Column(name = "ID")
@GeneratedValue(strategy = GenerationType.AUTO)
private String id;
@Column(name = "FPDM")
private String fpdm;
@Column(name = "FPHM")
private String fphm;
@Column(name = "KPRQ")
private String kprq;
@Column(name = "GFSH")
private String gfsh;
@Column(name = "GFMC")
private String gfmc;
@Column(name = "GFDZDH")
private String gfdzdh;
@Column(name = "GFYHZH")
private String gfyhzh;
@Column(name = "XFSH")
private String xfsh;
@Column(name = "XFMC")
private String xfmc;
@Column(name = "XFDZDH")
private String xfdzdh;
@Column(name = "XFYHZH")
private String xfyhzh;
@Column(name = "JYM")
private String jym;
@Column(name = "FPLX")
private String fplx;
@Column(name = "FPLC")
private String fplc;
@Column(name = "JQBH")
private String jqbh;
@Column(name = "HJJE")
private String hjje;
@Column(name = "HJSE")
private String hjse;
@Column(name = "JSHJ")
private String jshj;
@Column(name = "MWQ")
private String mwq;
@Column(name = "KPR")
private String kpr;
@Column(name = "SKR")
private String skr;
@Column(name = "FHR")
private String fhr;
@Column(name = "BZ")
private String bz;
@Column(name = "PZH")
private String pzh;
@Column(name = "DZDH")
private String dzdh;
@Column(name = "XTLY")
private String xtly;
@Column(name = "FPZT")
private String fpzt;
@Column(name = "CYZT")
private String cyzt;
@Column(name = "RZZT")
private String rzzt;
@Column(name = "RZSQ")
private String rzsq;
@Column(name = "RZSJ")
private String rzsj;
@Column(name = "RZJG")
private String rzjg;
@Column(name = "RZJGMS")
private String rzjgms;
@Column(name = "CJSJ")
private String cjsj;
@Column(name = "LCBH")
private String lcbh;
@Column(name = "FPYX")
private String fpyx;
@Column(name = "BLYY")
private String blyy;
@Column(name = "LRRQ")
private String lrrq;
@Column(name = "COMPANYID")
private String companyid;
}
package pwc.taxtech.invoice.input;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import pwc.taxtech.invoice.common.PagingDto;
import pwc.taxtech.invoice.common.PagingResultDto;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RestController
@RequestMapping("/input_invoices")
public class InputInvoiceController {
@Autowired
InputInvoiceRepository repository;
@RequestMapping(method = GET)
public PagingResultDto<InputInvoice> getAll(@RequestParam(defaultValue = "0") int page, @RequestParam(defaultValue = "20") int size) {
if (page < 0) page = 0;
Page<InputInvoice> pageResult = repository.findAll(PageRequest.of(page - 1, size));
PagingResultDto<InputInvoice> pageReturn = new PagingResultDto();
pageReturn.setList(pageResult.getContent());
pageReturn.setPageInfo(new PagingDto(pageResult.getTotalPages(), pageResult.getPageable().getPageNumber(), pageResult.getPageable().getPageSize()));
return pageReturn;
}
}
package pwc.taxtech.invoice.input;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
interface InputInvoiceRepository extends PagingAndSortingRepository<InputInvoice, String> {
}
package pwc.taxtech.invoice.output;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Getter
@Setter
@Table(name = "OUTPUT_INVOICE")
public class OutputInvoice {
@Id
@Column(name = "ID")
@GeneratedValue(strategy = GenerationType.AUTO)
private String id;
@Column(name = "FPQQLSH")
private String fpqqlsh;
@Column(name = "FPDM")
private String fpdm;
@Column(name = "FPHM")
private String fphm;
@Column(name = "KPRQ")
private String kprq;
@Column(name = "FPLXDM")
private String fplxdm;
@Column(name = "EWM")
private String ewm;
@Column(name = "JQBH")
private String jqbh;
@Column(name = "JYM")
private String jym;
@Column(name = "GFMC")
private String gfmc;
@Column(name = "GFSH")
private String gfsh;
@Column(name = "GFDZDH")
private String gfdzdh;
@Column(name = "GFYHZH")
private String gfyhzh;
@Column(name = "XFSH")
private String xfsh;
@Column(name = "XFMC")
private String xfmc;
@Column(name = "XFDZDH")
private String xfdzdh;
@Column(name = "XFYHZH")
private String xfyhzh;
@Column(name = "BZ")
private String bz;
@Column(name = "SKR")
private String skr;
@Column(name = "FHR")
private String fhr;
@Column(name = "KPR")
private String kpr;
@Column(name = "KDDH")
private String kddh;
@Column(name = "KDUUID")
private String kduuid;
@Column(name = "FPLX")
private String fplx;
@Column(name = "KPZT")
private String kpzt;
@Column(name = "FPZT")
private String fpzt;
@Column(name = "YFPDM")
private String yfpdm;
@Column(name = "YFPHM")
private String yfphm;
@Column(name = "GFGSBM")
private String gfgsbm;
@Column(name = "XFGSBM")
private String xfgsbm;
@Column(name = "SPBH")
private String spbh;
@Column(name = "XTLY")
private String xtly;
@Column(name = "CJSJ")
private String cjsj;
@Column(name = "HJJE")
private String hjje;
@Column(name = "HJSE")
private String hjse;
@Column(name = "JSHJ")
private String jshj;
@Column(name = "XXBBH")
private String xxbbh;
@Column(name = "DYZT")
private String dyzt;
@Column(name = "GDJLH")
private String gdjlh;
@Column(name = "ZKJE")
private String zkje;
@Column(name = "ZKSE")
private String zkse;
@Column(name = "ZKJSHJ")
private String zkjshj;
@Column(name = "SLV")
private String slv;
@Column(name = "QY")
private String qy;
@Column(name = "JSZT")
private String jszt;
@Column(name = "KDGS")
private String kdgs;
@Column(name = "SHZT")
private String shzt;
@Column(name = "THKPSQ")
private String thkpsq;
@Column(name = "JSFJ")
private String jsfj;
@Column(name = "SQR")
private String sqr;
@Column(name = "BSCDM")
private String bscdm;
@Column(name = "BSC")
private String bsc;
@Column(name = "QYDM")
private String qydm;
@Column(name = "SQBH")
private String sqbh;
@Column(name = "HTBH")
private String htbh;
@Column(name = "SQRQ")
private String sqrq;
@Column(name = "YZRQ")
private String yzrq;
}
package pwc.taxtech.invoice.output;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import pwc.taxtech.invoice.common.PagingDto;
import pwc.taxtech.invoice.common.PagingResultDto;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RestController
@RequestMapping("/output_invoices")
public class OutputInvoiceController {
@Autowired
OutputInvoiceRepository repository;
@RequestMapping(method = GET)
public PagingResultDto<OutputInvoice> getAll(@RequestParam(defaultValue = "0") int page, @RequestParam(defaultValue = "20") int size) {
if (page < 0) page = 0;
Page<OutputInvoice> pageResult = repository.findAll(PageRequest.of(page - 1, size));
PagingResultDto<OutputInvoice> pageReturn = new PagingResultDto();
pageReturn.setList(pageResult.getContent());
pageReturn.setPageInfo(new PagingDto(pageResult.getTotalPages(), pageResult.getPageable().getPageNumber(), pageResult.getPageable().getPageSize()));
return pageReturn;
}
}
package pwc.taxtech.invoice.output;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
interface OutputInvoiceRepository extends PagingAndSortingRepository<OutputInvoice, String> {
}
server.port: 8089
spring:
datasource:
url: jdbc:oracle:thin:@10.158.230.144:11521:XE
username: system
password: taxadmin2018
driver-class-name: oracle.jdbc.driver.OracleDriver
jpa:
show-sql: true
properties.hibernate:
default_schema: pwc_invoice
dialect: org.hibernate.dialect.Oracle10gDialect
hibernate:
ddl-auto: update
naming.physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
......@@ -10,7 +10,6 @@
<module>atms-api</module>
<module>atms-web</module>
<module>atms-dao</module>
<module>atms-invoice</module>
</modules>
<properties>
......
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