Skip to content

Commit

Permalink
Readjust code architecture wansenai#13
Browse files Browse the repository at this point in the history
  • Loading branch information
Jzow committed Aug 30, 2023
1 parent 70585e3 commit 54fcdcf
Show file tree
Hide file tree
Showing 455 changed files with 2,702 additions and 7,546 deletions.
76 changes: 76 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.wansensoft</groupId>
<artifactId>wansen-erp-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>api</artifactId>

<properties>
<maven.compiler.source>20</maven.compiler.source>
<maven.compiler.target>20</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.wansensoft</groupId>
<artifactId>utils</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.wansensoft</groupId>
<artifactId>service</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.wansensoft</groupId>
<artifactId>domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>wansenerp</finalName>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
package com.wansensoft;

import com.wansensoft.utils.ComputerInfo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.IOException;

@SpringBootApplication
@MapperScan(basePackages = {"com.wansensoft.datasource.mappers"})
@ServletComponentScan
@EnableScheduling
public class ErpApplication{
public static void main(String[] args) throws IOException {
public class ErpApplication {

public static void main(String[] args) {
ConfigurableApplicationContext context = SpringApplication.run(ErpApplication.class, args);
Environment environment = context.getBean(Environment.class);
System.out.println("启动成功,后端服务API地址:http://" + ComputerInfo.getIpAddr() + ":"
+ environment.getProperty("server.port") + "/wansenerp/doc.html");
+ environment.getProperty("server.port") + "/jshERP-boot/doc.html");
System.out.println("您还需启动前端服务,启动命令:yarn run serve 或 npm run serve,测试用户:jsh,密码:123456");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.datasource.entities.MsgEx;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.datasource.entities.PlatformConfig;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//package com.wansensoft.erp.controller;
package com.wansensoft;//package com.wansensoft.erp.controller;
//
//import constants.com.wansensoft.BusinessConstants;
//import entities.datasource.com.wansensoft.User;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.constants.BusinessConstants;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.wansensoft.service.sequence.SequenceService;
import com.wansensoft.utils.BaseResponseInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.datasource.entities.DepotItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.datasource.entities.Unit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.account;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.account;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.datasource.entities.AccountHead;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.account;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.depot;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.depot;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.depot;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.material;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.material;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.material;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.material;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.material;

import com.wansensoft.datasource.entities.MaterialProperty;
import com.wansensoft.service.materialProperty.MaterialPropertyService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.system;

import com.wansensoft.datasource.entities.SystemConfig;
import com.wansensoft.service.depot.DepotService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.tenant;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.service.tenant.TenantService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.user;

import com.alibaba.fastjson.JSONObject;
import com.wansensoft.datasource.entities.UserBusiness;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.wansensoft.controller;
package com.wansensoft.user;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
34 changes: 34 additions & 0 deletions dao/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.wansensoft</groupId>
<artifactId>wansen-erp-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>dao</artifactId>

<properties>
<maven.compiler.source>20</maven.compiler.source>
<maven.compiler.target>20</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.wansensoft</groupId>
<artifactId>domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.wansensoft</groupId>
<artifactId>utils</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.wansensoft.datasource.mappers;

import com.wansensoft.datasource.entities.AccountHead;
import com.wansensoft.datasource.entities.AccountHeadExample;
import java.util.List;
package com.wansensoft.account;

import com.wansensoft.entities.account.AccountHead;
import com.wansensoft.entities.account.AccountHeadExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AccountHeadMapper {
long countByExample(AccountHeadExample example);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.wansensoft.datasource.mappers;
package com.wansensoft.account;

import com.wansensoft.datasource.entities.AccountHead;
import com.wansensoft.datasource.entities.AccountHeadVo4ListEx;
import com.wansensoft.datasource.entities.AccountItem;
import com.wansensoft.entities.account.AccountHead;
import com.wansensoft.entities.account.AccountHeadVo4ListEx;
import com.wansensoft.entities.account.AccountItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.wansensoft.datasource.mappers;
package com.wansensoft.account;

import com.wansensoft.datasource.entities.AccountItem;
import com.wansensoft.datasource.entities.AccountItemExample;
import com.wansensoft.entities.account.AccountItem;
import com.wansensoft.entities.account.AccountItemExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.wansensoft.datasource.mappers;
package com.wansensoft.account;

import com.wansensoft.datasource.entities.AccountItem;
import com.wansensoft.datasource.vo.AccountItemVo4List;
import com.wansensoft.entities.account.AccountItem;
import com.wansensoft.vo.AccountItemVo4List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.wansensoft.datasource.mappers;
package com.wansensoft.account;

import com.wansensoft.datasource.entities.Account;
import com.wansensoft.datasource.entities.AccountExample;
import com.wansensoft.entities.account.Account;
import com.wansensoft.entities.account.AccountExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.wansensoft.datasource.mappers;
package com.wansensoft.account;

import com.wansensoft.datasource.entities.Account;
import com.wansensoft.datasource.vo.AccountVo4InOutList;
import com.wansensoft.datasource.vo.AccountVo4List;
import com.wansensoft.entities.account.Account;
import com.wansensoft.vo.AccountVo4InOutList;
import com.wansensoft.vo.AccountVo4List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

Expand Down
Loading

0 comments on commit 54fcdcf

Please sign in to comment.