Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fa32d93b
authored
Apr 26, 2021
by
ypenglv
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
组件问题处理
1 parent
bdf3b516
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
15 deletions
nafmii-admin/pom.xml
nafmii-app/pom.xml
nafmii-app/src/main/resources/mapper/AppUserMapper.xml
nafmii-common/pom.xml
nafmii-common/src/main/java/org/nafmii/utils/SpringUtils.java
nafmii-gateway/pom.xml
nafmii-gateway/src/main/java/org/nafmii/NafmiiGatewayApplication.java
nafmii-mbg/pom.xml
nafmii-admin/pom.xml
View file @
fa32d93
...
@@ -47,6 +47,10 @@
...
@@ -47,6 +47,10 @@
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.20
</version>
<version>
8.0.20
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependencies>
</dependencies>
<dependencyManagement>
<dependencyManagement>
<dependencies>
<dependencies>
...
...
nafmii-app/pom.xml
View file @
fa32d93
...
@@ -36,6 +36,10 @@
...
@@ -36,6 +36,10 @@
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.20
</version>
<version>
8.0.20
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependencies>
</dependencies>
<dependencyManagement>
<dependencyManagement>
<dependencies>
<dependencies>
...
...
nafmii-app/src/main/resources/mapper/AppUserMapper.xml
View file @
fa32d93
...
@@ -105,13 +105,13 @@
...
@@ -105,13 +105,13 @@
delete from APP_USER
delete from APP_USER
where ID = #{id,jdbcType=BIGINT}
where ID = #{id,jdbcType=BIGINT}
</delete>
</delete>
<delete
id=
"deleteByExample"
parameterType=
"org.nafmii.
nafmiimbg.model
.AppUserExample"
>
<delete
id=
"deleteByExample"
parameterType=
"org.nafmii.
entity.user
.AppUserExample"
>
delete from APP_USER
delete from APP_USER
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"org.nafmii.
nafmiimbg.model
.AppUser"
>
<insert
id=
"insert"
parameterType=
"org.nafmii.
entity.user
.AppUser"
>
insert into APP_USER (ID, USER_NAME, LOGIN_PWD,
insert into APP_USER (ID, USER_NAME, LOGIN_PWD,
REAL_NAME, PHONE, BIRTHDAY,
REAL_NAME, PHONE, BIRTHDAY,
EMAIL, HEAD_PICTURE, NATIONALITY,
EMAIL, HEAD_PICTURE, NATIONALITY,
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
#{faceidFalg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{faceidFalg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isEnable,jdbcType=VARCHAR})
#{isEnable,jdbcType=VARCHAR})
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"org.nafmii.
nafmiimbg.model
.AppUser"
>
<insert
id=
"insertSelective"
parameterType=
"org.nafmii.
entity.user
.AppUser"
>
insert into APP_USER
insert into APP_USER
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</if>
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"org.nafmii.
nafmiimbg.model
.AppUserExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"org.nafmii.
entity.user
.AppUserExample"
resultType=
"java.lang.Long"
>
select count(*) from APP_USER
select count(*) from APP_USER
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
...
@@ -312,7 +312,7 @@
...
@@ -312,7 +312,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
</update>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"org.nafmii.
nafmiimbg.model
.AppUser"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"org.nafmii.
entity.user
.AppUser"
>
update APP_USER
update APP_USER
<set>
<set>
<if
test=
"userName != null"
>
<if
test=
"userName != null"
>
...
@@ -363,7 +363,7 @@
...
@@ -363,7 +363,7 @@
</set>
</set>
where ID = #{id,jdbcType=BIGINT}
where ID = #{id,jdbcType=BIGINT}
</update>
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"org.nafmii.
nafmiimbg.model
.AppUser"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"org.nafmii.
entity.user
.AppUser"
>
update APP_USER
update APP_USER
set USER_NAME = #{userName,jdbcType=VARCHAR},
set USER_NAME = #{userName,jdbcType=VARCHAR},
LOGIN_PWD = #{loginPwd,jdbcType=VARCHAR},
LOGIN_PWD = #{loginPwd,jdbcType=VARCHAR},
...
...
nafmii-common/pom.xml
View file @
fa32d93
...
@@ -184,8 +184,9 @@
...
@@ -184,8 +184,9 @@
<version>
2.4
</version>
<version>
2.4
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
javax.servlet
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
javax.servlet-api
</artifactId>
<version>
3.1.0
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
nafmii-common/src/main/java/org/nafmii/utils/SpringUtils.java
View file @
fa32d93
...
@@ -6,7 +6,6 @@ import org.springframework.context.ApplicationContextAware;
...
@@ -6,7 +6,6 @@ import org.springframework.context.ApplicationContextAware;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.servlet.LocaleResolver
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Locale
;
import
java.util.Locale
;
...
@@ -37,9 +36,9 @@ public class SpringUtils implements ApplicationContextAware {
...
@@ -37,9 +36,9 @@ public class SpringUtils implements ApplicationContextAware {
return
requestAttrs
.
getRequest
();
return
requestAttrs
.
getRequest
();
}
}
public
static
String
getMessage
(
String
code
,
Object
...
args
)
{
//
public static String getMessage(String code, Object... args) {
LocaleResolver
localeResolver
=
getBean
(
LocaleResolver
.
class
);
//
LocaleResolver localeResolver = getBean(LocaleResolver.class);
Locale
locale
=
localeResolver
.
resolveLocale
(
getCurrentReq
());
//
Locale locale = localeResolver.resolveLocale(getCurrentReq());
return
applicationContext
.
getMessage
(
code
,
args
,
locale
);
//
return applicationContext.getMessage(code, args, locale);
}
//
}
}
}
nafmii-gateway/pom.xml
View file @
fa32d93
...
@@ -31,6 +31,13 @@
...
@@ -31,6 +31,13 @@
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-webflux -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-webflux
</artifactId>
<version>
2.3.10.RELEASE
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
nafmii-gateway/src/main/java/org/nafmii/NafmiiGatewayApplication.java
View file @
fa32d93
...
@@ -8,7 +8,6 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
...
@@ -8,7 +8,6 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
},
scanBasePackages
={
"org.nafmii"
,
"org.nafmii.exception"
})
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
},
scanBasePackages
={
"org.nafmii"
,
"org.nafmii.exception"
})
@EnableEurekaClient
@EnableEurekaClient
public
class
NafmiiGatewayApplication
{
public
class
NafmiiGatewayApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
NafmiiGatewayApplication
.
class
,
args
);
SpringApplication
.
run
(
NafmiiGatewayApplication
.
class
,
args
);
}
}
...
...
nafmii-mbg/pom.xml
View file @
fa32d93
...
@@ -36,6 +36,11 @@
...
@@ -36,6 +36,11 @@
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.20
</version>
<version>
8.0.20
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-core
</artifactId>
<version>
1.3.6
</version>
</dependency>
</dependencies>
</dependencies>
<dependencyManagement>
<dependencyManagement>
<dependencies>
<dependencies>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment