Skip to content

Commit 65f936a

Browse files
committed
init
0 parents  commit 65f936a

File tree

701 files changed

+70385
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

701 files changed

+70385
-0
lines changed

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**
5+
!**/src/test/**
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
30+
### VS Code ###
31+
.vscode/
32+
33+
logs
34+
*.log

pom.xml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>parent</artifactId>
7+
<groupId>com.lframework</groupId>
8+
<version>1.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<modelVersion>4.0.0</modelVersion>
12+
13+
<artifactId>xingyun</artifactId>
14+
15+
<modules>
16+
<module>xingyun-core</module>
17+
<module>xingyun-api</module>
18+
<module>xingyun-basedata</module>
19+
<module>xingyun-sc</module>
20+
<module>xingyun-chart</module>
21+
<module>xingyun-settle</module>
22+
</modules>
23+
<packaging>pom</packaging>
24+
25+
<properties>
26+
<xingyun.version>1.0-SNAPSHOT</xingyun.version>
27+
</properties>
28+
29+
<dependencyManagement>
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.lframework</groupId>
33+
<artifactId>xingyun-basedata</artifactId>
34+
<version>${xingyun.version}</version>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>com.lframework</groupId>
39+
<artifactId>xingyun-sc</artifactId>
40+
<version>${xingyun.version}</version>
41+
</dependency>
42+
43+
<dependency>
44+
<groupId>com.lframework</groupId>
45+
<artifactId>xingyun-chart</artifactId>
46+
<version>${xingyun.version}</version>
47+
</dependency>
48+
49+
<dependency>
50+
<groupId>com.lframework</groupId>
51+
<artifactId>xingyun-settle</artifactId>
52+
<version>${xingyun.version}</version>
53+
</dependency>
54+
55+
<dependency>
56+
<groupId>com.lframework</groupId>
57+
<artifactId>xingyun-core</artifactId>
58+
<version>${xingyun.version}</version>
59+
</dependency>
60+
</dependencies>
61+
</dependencyManagement>
62+
</project>

xingyun-api/pom.xml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>xingyun</artifactId>
7+
<groupId>com.lframework</groupId>
8+
<version>1.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>xingyun-api</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>org.flywaydb</groupId>
17+
<artifactId>flyway-core</artifactId>
18+
</dependency>
19+
20+
<dependency>
21+
<groupId>com.lframework</groupId>
22+
<artifactId>xingyun-basedata</artifactId>
23+
</dependency>
24+
25+
<dependency>
26+
<groupId>com.lframework</groupId>
27+
<artifactId>xingyun-sc</artifactId>
28+
</dependency>
29+
30+
<dependency>
31+
<groupId>com.lframework</groupId>
32+
<artifactId>xingyun-settle</artifactId>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>com.lframework</groupId>
37+
<artifactId>xingyun-chart</artifactId>
38+
</dependency>
39+
40+
<dependency>
41+
<groupId>org.flywaydb</groupId>
42+
<artifactId>flyway-core</artifactId>
43+
</dependency>
44+
45+
<dependency>
46+
<groupId>com.lframework</groupId>
47+
<artifactId>gen</artifactId>
48+
</dependency>
49+
</dependencies>
50+
51+
<build>
52+
<plugins>
53+
<plugin>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-maven-plugin</artifactId>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
60+
<profiles>
61+
<profile>
62+
<!-- 开发环境 -->
63+
<id>dev</id>
64+
<activation>
65+
<activeByDefault>true</activeByDefault>
66+
</activation>
67+
</profile>
68+
<profile>
69+
<!-- 测试环境 -->
70+
<id>test</id>
71+
</profile>
72+
<profile>
73+
<!-- 生产环境 -->
74+
<id>prod</id>
75+
</profile>
76+
</profiles>
77+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.lframework.xingyun.api;
2+
3+
import org.mybatis.spring.annotation.MapperScan;
4+
import org.springframework.boot.SpringApplication;
5+
import org.springframework.boot.autoconfigure.SpringBootApplication;
6+
import org.springframework.cache.annotation.EnableCaching;
7+
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
8+
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
9+
10+
@EnableCaching
11+
@SpringBootApplication(scanBasePackages = "com.lframework")
12+
@MapperScan("com.lframework.**.mappers")
13+
public class XingYunApiApplication {
14+
15+
public static void main(String[] args) {
16+
17+
SpringApplication.run(XingYunApiApplication.class, args);
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package com.lframework.xingyun.api.bo.basedata.customer;
2+
3+
import com.lframework.starter.web.bo.BaseBo;
4+
import com.lframework.xingyun.basedata.dto.customer.CustomerDto;
5+
import lombok.Data;
6+
import lombok.EqualsAndHashCode;
7+
8+
@Data
9+
@EqualsAndHashCode(callSuper = true)
10+
public class CustomerSelectorBo extends BaseBo<CustomerDto> {
11+
12+
/**
13+
* ID
14+
*/
15+
private String id;
16+
17+
/**
18+
* 编号
19+
*/
20+
private String code;
21+
22+
/**
23+
* 名称
24+
*/
25+
private String name;
26+
27+
/**
28+
* 状态
29+
*/
30+
private Boolean available;
31+
32+
public CustomerSelectorBo() {
33+
34+
}
35+
36+
public CustomerSelectorBo(CustomerDto dto) {
37+
38+
super(dto);
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
package com.lframework.xingyun.api.bo.basedata.customer;
2+
3+
import com.lframework.common.utils.StringUtil;
4+
import com.lframework.starter.web.bo.BaseBo;
5+
import com.lframework.starter.web.utils.ApplicationUtil;
6+
import com.lframework.xingyun.basedata.dto.customer.CustomerDto;
7+
import com.lframework.xingyun.core.service.IDicCityService;
8+
import lombok.Data;
9+
import lombok.EqualsAndHashCode;
10+
11+
@Data
12+
@EqualsAndHashCode(callSuper = true)
13+
public class GetCustomerBo extends BaseBo<CustomerDto> {
14+
15+
/**
16+
* ID
17+
*/
18+
private String id;
19+
20+
/**
21+
* 编号
22+
*/
23+
private String code;
24+
25+
/**
26+
* 名称
27+
*/
28+
private String name;
29+
30+
/**
31+
* 助记码
32+
*/
33+
private String mnemonicCode;
34+
35+
/**
36+
* 联系人
37+
*/
38+
private String contact;
39+
40+
/**
41+
* 联系电话
42+
*/
43+
private String telephone;
44+
45+
/**
46+
* 电子邮箱
47+
*/
48+
private String email;
49+
50+
/**
51+
* 邮编
52+
*/
53+
private String zipCode;
54+
55+
/**
56+
* 传真
57+
*/
58+
private String fax;
59+
60+
/**
61+
* 地区ID
62+
*/
63+
private String cityId;
64+
65+
/**
66+
* 地区名称
67+
*/
68+
private String cityName;
69+
70+
/**
71+
* 地址
72+
*/
73+
private String address;
74+
75+
/**
76+
* 收货人
77+
*/
78+
private String receiver;
79+
80+
/**
81+
* 收货手机号
82+
*/
83+
private String receiveTelephone;
84+
85+
/**
86+
* 收货地址
87+
*/
88+
private String receiveAddress;
89+
90+
/**
91+
* 结账方式
92+
*/
93+
private Integer settleType;
94+
95+
/**
96+
* 统一社会信用代码
97+
*/
98+
private String creditCode;
99+
100+
/**
101+
* 纳税人识别号
102+
*/
103+
private String taxIdentifyNo;
104+
105+
/**
106+
* 开户银行
107+
*/
108+
private String bankName;
109+
110+
/**
111+
* 户名
112+
*/
113+
private String accountName;
114+
115+
/**
116+
* 银行账号
117+
*/
118+
private String accountNo;
119+
120+
/**
121+
* 状态
122+
*/
123+
private Boolean available;
124+
125+
/**
126+
* 备注
127+
*/
128+
private String description;
129+
130+
public GetCustomerBo() {
131+
132+
}
133+
134+
public GetCustomerBo(CustomerDto dto) {
135+
136+
super(dto);
137+
}
138+
139+
@Override
140+
public BaseBo<CustomerDto> convert(CustomerDto dto) {
141+
142+
return super.convert(dto, GetCustomerBo::getSettleType);
143+
}
144+
145+
@Override
146+
protected void afterInit(CustomerDto dto) {
147+
148+
if (dto.getSettleType() != null) {
149+
this.settleType = dto.getSettleType().getCode();
150+
}
151+
152+
if (!StringUtil.isBlank(dto.getCityId())) {
153+
IDicCityService dicCityService = ApplicationUtil.getBean(IDicCityService.class);
154+
this.cityName = dicCityService.getById(dto.getCityId()).getName();
155+
}
156+
}
157+
}

0 commit comments

Comments
 (0)