Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
4393a5da
Commit
4393a5da
authored
Jun 16, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
76f7f3e1
11fa2dbd
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
221 additions
and
214 deletions
+221
-214
pom.xml
pom.xml
+1
-1
application-dev.yml
yifu-auth/src/main/resources/application-dev.yml
+38
-0
application-test.yml
yifu-auth/src/main/resources/application-test.yml
+40
-0
application.yml
yifu-auth/src/main/resources/application.yml
+1
-82
ErrorCodes.java
....cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
+5
-0
Common.java
.../com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
+1
-1
messages_zh_CN.properties
...on-core/src/main/resources/i18n/messages_zh_CN.properties
+1
-0
PermitAllUrlProperties.java
...ifu/common/security/component/PermitAllUrlProperties.java
+6
-0
ConsumerServiceImpl.java
...ud/plus/v1/consumer/service/impl/ConsumerServiceImpl.java
+2
-9
application-dev.yml
yifu-job/yifu-job-biz/src/main/resources/application-dev.yml
+16
-0
application-test.yml
...-job/yifu-job-biz/src/main/resources/application-test.yml
+14
-0
application.yml
yifu-job/yifu-job-biz/src/main/resources/application.yml
+1
-34
DictController.java
...u.cloud.plus.v1/yifu/admin/controller/DictController.java
+17
-0
application-dev.yml
...upms/yifu-upms-biz/src/main/resources/application-dev.yml
+22
-0
application-test.yml
...pms/yifu-upms-biz/src/main/resources/application-test.yml
+18
-0
application.yml
yifu-upms/yifu-upms-biz/src/main/resources/application.yml
+0
-41
logback-spring.xml
...-upms/yifu-upms-biz/src/main/resources/logback-spring.xml
+0
-5
application-dev.yml
...isual/yifu-codegen/src/main/resources/application-dev.yml
+19
-0
application-test.yml
...sual/yifu-codegen/src/main/resources/application-test.yml
+18
-0
application.yml
yifu-visual/yifu-codegen/src/main/resources/application.yml
+1
-41
No files found.
pom.xml
View file @
4393a5da
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
<profiles.active>
dev
</profiles.active>
<profiles.active>
dev
</profiles.active>
<!-- 天翼云-->
<!-- 天翼云-->
<my.hub.host>
hub.yifucenter.com:5500
</my.hub.host>
<my.hub.host>
hub.yifucenter.com:5500
</my.hub.host>
<map.group.name>
dev
-mvp
</map.group.name>
<map.group.name>
qas
-mvp
</map.group.name>
<!-- 众多参数配置 -->
<!-- 众多参数配置 -->
</properties>
</properties>
</profile>
</profile>
...
...
yifu-auth/src/main/resources/application-dev.yml
0 → 100644
View file @
4393a5da
spring
:
config
:
#import:
# - classpath: application-test.yml
activate
:
on-profile
:
dev
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
cloud
:
sentinel
:
eager
:
true
transport
:
dashboard
:
yifu-sentinel:5003
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
freemarker
:
allow-request-override
:
false
allow-session-override
:
false
cache
:
true
charset
:
UTF-8
check-template-location
:
true
content-type
:
text/html
enabled
:
true
expose-request-attributes
:
false
expose-session-attributes
:
false
expose-spring-macro-helpers
:
true
prefer-file-system-access
:
true
suffix
:
.ftl
template-loader-path
:
classpath:/templates/
yifu-auth/src/main/resources/application-test.yml
0 → 100644
View file @
4393a5da
spring
:
config
:
#import:
# - classpath: application-test.yml
activate
:
on-profile
:
test
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
redis
:
host
:
192.168.1.65
port
:
22379
password
:
'
@yf_2017'
cloud
:
sentinel
:
eager
:
true
transport
:
dashboard
:
yifu-sentinel:5003
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
#url: jdbc:mysql://127.0.0.1:3306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
freemarker
:
allow-request-override
:
false
allow-session-override
:
false
cache
:
true
charset
:
UTF-8
check-template-location
:
true
content-type
:
text/html
enabled
:
true
expose-request-attributes
:
false
expose-session-attributes
:
false
expose-spring-macro-helpers
:
true
prefer-file-system-access
:
true
suffix
:
.ftl
template-loader-path
:
classpath:/templates/
\ No newline at end of file
yifu-auth/src/main/resources/application.yml
View file @
4393a5da
...
@@ -51,85 +51,4 @@ security:
...
@@ -51,85 +51,4 @@ security:
# Spring 相关
# Spring 相关
spring
:
spring
:
application
:
application
:
name
:
@
artifactId@
name
:
@
artifactId@
---
\ No newline at end of file
spring
:
config
:
#import:
# - classpath: application-test.yml
activate
:
on-profile
:
test
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
redis
:
host
:
192.168.1.65
port
:
22379
password
:
'
@yf_2017'
cloud
:
sentinel
:
eager
:
true
transport
:
dashboard
:
yifu-sentinel:5003
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
#url: jdbc:mysql://127.0.0.1:3306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
freemarker
:
allow-request-override
:
false
allow-session-override
:
false
cache
:
true
charset
:
UTF-8
check-template-location
:
true
content-type
:
text/html
enabled
:
true
expose-request-attributes
:
false
expose-session-attributes
:
false
expose-spring-macro-helpers
:
true
prefer-file-system-access
:
true
suffix
:
.ftl
template-loader-path
:
classpath:/templates/
---
spring
:
config
:
#import:
# - classpath: application-test.yml
activate
:
on-profile
:
dev
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
cloud
:
sentinel
:
eager
:
true
transport
:
dashboard
:
yifu-sentinel:5003
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
freemarker
:
allow-request-override
:
false
allow-session-override
:
false
cache
:
true
charset
:
UTF-8
check-template-location
:
true
content-type
:
text/html
enabled
:
true
expose-request-attributes
:
false
expose-session-attributes
:
false
expose-spring-macro-helpers
:
true
prefer-file-system-access
:
true
suffix
:
.ftl
template-loader-path
:
classpath:/templates/
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/exception/ErrorCodes.java
View file @
4393a5da
...
@@ -146,4 +146,9 @@ public interface ErrorCodes {
...
@@ -146,4 +146,9 @@ public interface ErrorCodes {
* 已存在对应编码的字典
* 已存在对应编码的字典
*/
*/
String
SYS_DICT_ADD_TYPE_EXISTS
=
"sys.dict.add.type.exist"
;
String
SYS_DICT_ADD_TYPE_EXISTS
=
"sys.dict.add.type.exist"
;
/**
* 已存在对应值的字典项
*/
String
SYS_DICT_ITEM_ADD_VALUE_EXIST
=
"sys.dict.item.add.value.exist"
;
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
View file @
4393a5da
...
@@ -36,7 +36,7 @@ public class Common {
...
@@ -36,7 +36,7 @@ public class Common {
}
}
public
static
boolean
isNotNull
(
String
obj
)
{
public
static
boolean
isNotNull
(
String
obj
)
{
if
(
null
!=
obj
||
!
""
.
equals
(
obj
)
||
!
"undefined"
.
equals
(
obj
)){
if
(
null
!=
obj
&&
!
""
.
equals
(
obj
)
&&
!
"undefined"
.
equals
(
obj
)){
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
yifu-common/yifu-common-core/src/main/resources/i18n/messages_zh_CN.properties
View file @
4393a5da
...
@@ -29,6 +29,7 @@ sys.dict.delete.system=\u7CFB\u7EDF\u5185\u7F6E\u5B57\u5178\u9879\u76EE\u4E0D\u8
...
@@ -29,6 +29,7 @@ sys.dict.delete.system=\u7CFB\u7EDF\u5185\u7F6E\u5B57\u5178\u9879\u76EE\u4E0D\u8
sys.dict.update.system
=
\u
7CFB
\u
7EDF
\u5185\u
7F6E
\u
5B57
\u5178\u9879\u
76EE
\u
4E0D
\u
80FD
\u
4FEE
\u6539
sys.dict.update.system
=
\u
7CFB
\u
7EDF
\u5185\u
7F6E
\u
5B57
\u5178\u9879\u
76EE
\u
4E0D
\u
80FD
\u
4FEE
\u6539
sys.dict.delete.existing
=
\u
5B57
\u5178\u
5B58
\u5728\u
4E0B
\u
7EA7
\u8282\u
70B9
\u
4E0D
\u
80FD
\u5220\u9664
sys.dict.delete.existing
=
\u
5B57
\u5178\u
5B58
\u5728\u
4E0B
\u
7EA7
\u8282\u
70B9
\u
4E0D
\u
80FD
\u5220\u9664
sys.dict.add.type.exist
=
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
7F16
\u7801\u7684\u
5B57
\u5178
sys.dict.add.type.exist
=
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
7F16
\u7801\u7684\u
5B57
\u5178
sys.dict.item.add.value.exist
=
\u
5DF2
\u
5B58
\u5728\u
5BF9
\u
5E94
\u
503C
\u7684\u
5B57
\u5178\u9879
sys.role.delete.system
=
\u
7CFB
\u
7EDF
\u5185\u
7F6E
\u
89D2
\u8272\u
4E0D
\u
80FD
\u5220\u9664
sys.role.delete.system
=
\u
7CFB
\u
7EDF
\u5185\u
7F6E
\u
89D2
\u8272\u
4E0D
\u
80FD
\u5220\u9664
sys.role.update.system
=
\u
7CFB
\u
7EDF
\u5185\u
7F6E
\u
89D2
\u8272\u
4E0D
\u
80FD
\u
4FEE
\u6539
sys.role.update.system
=
\u
7CFB
\u
7EDF
\u5185\u
7F6E
\u
89D2
\u8272\u
4E0D
\u
80FD
\u
4FEE
\u6539
...
...
yifu-common/yifu-common-security/src/main/java/com/yifu.cloud.plus.v1/yifu/common/security/component/PermitAllUrlProperties.java
View file @
4393a5da
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
security
.
component
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
common
.
security
.
component
;
import
cn.hutool.core.util.ReUtil
;
import
cn.hutool.core.util.ReUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
@@ -76,6 +77,11 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
...
@@ -76,6 +77,11 @@ public class PermitAllUrlProperties implements InitializingBean, ApplicationCont
Optional
.
ofNullable
(
controller
).
ifPresent
(
inner
->
info
.
getPatternsCondition
().
getPatterns
()
Optional
.
ofNullable
(
controller
).
ifPresent
(
inner
->
info
.
getPatternsCondition
().
getPatterns
()
.
forEach
(
url
->
urls
.
add
(
ReUtil
.
replaceAll
(
url
.
toString
(),
PATTERN
,
"*"
))));
.
forEach
(
url
->
urls
.
add
(
ReUtil
.
replaceAll
(
url
.
toString
(),
PATTERN
,
"*"
))));
});
});
if
(
Common
.
isNotNull
(
urls
)){
for
(
String
url:
urls
){
log
.
info
(
url
.
toString
());
}
}
}
}
@Override
@Override
...
...
yifu-consumer/consumer-biz/src/main/java/com/yifu/cloud/plus/v1/consumer/service/impl/ConsumerServiceImpl.java
View file @
4393a5da
...
@@ -16,22 +16,15 @@
...
@@ -16,22 +16,15 @@
*/
*/
package
com
.
yifu
.
cloud
.
plus
.
v1
.
consumer
.
service
.
impl
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
consumer
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.consumer.entity.Consumer
;
import
com.yifu.cloud.plus.v1.consumer.entity.Consumer
;
import
com.yifu.cloud.plus.v1.consumer.mapper.ConsumerMapper
;
import
com.yifu.cloud.plus.v1.consumer.mapper.ConsumerMapper
;
import
com.yifu.cloud.plus.v1.consumer.service.ConsumerService
;
import
com.yifu.cloud.plus.v1.consumer.service.ConsumerService
;
import
com.yifu.cloud.plus.v1.provider.entity.Provider
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprProviderProperties
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.config.DaprProviderProperties
;
import
com.yifu.cloud.plus.v1.yifu.common.dapr.util.HttpDaprUtil
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
io.seata.spring.annotation.GlobalTransactional
;
import
io.seata.spring.annotation.GlobalTransactional
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.SneakyThrows
;
import
lombok.SneakyThrows
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.data.redis.support.collections.RedisStore
;
import
org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -53,7 +46,7 @@ public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> i
...
@@ -53,7 +46,7 @@ public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> i
@Transactional
@Transactional
@Override
@Override
public
Boolean
saveTestSeata
(
Consumer
consumer
)
{
public
Boolean
saveTestSeata
(
Consumer
consumer
)
{
Provider
provider
=
new
Provider
();
/*
Provider provider = new Provider();
provider.setNicename(consumer.getNicename());
provider.setNicename(consumer.getNicename());
provider.setUsername(consumer.getUsername());
provider.setUsername(consumer.getUsername());
provider.setCreateBy(consumer.getCreateBy());
provider.setCreateBy(consumer.getCreateBy());
...
@@ -62,7 +55,7 @@ public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> i
...
@@ -62,7 +55,7 @@ public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> i
provider.setUpdateTime(consumer.getUpdateTime());
provider.setUpdateTime(consumer.getUpdateTime());
R result = HttpDaprUtil.invokeMethodPost(daprProperties.getAppUrl(),daprProperties.getAppId(), "/provider", provider, Provider.class,null);
R result = HttpDaprUtil.invokeMethodPost(daprProperties.getAppUrl(),daprProperties.getAppId(), "/provider", provider, Provider.class,null);
baseMapper
.
insert
(
consumer
);
baseMapper.insert(consumer);
*/
return
true
;
return
true
;
}
}
}
}
yifu-job/yifu-job-biz/src/main/resources/application-dev.yml
0 → 100644
View file @
4393a5da
# 数据源配置
spring
:
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
config
:
activate
:
on-profile
:
dev
yifu-job/yifu-job-biz/src/main/resources/application-test.yml
0 → 100644
View file @
4393a5da
# 数据源配置
spring
:
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
config
:
activate
:
on-profile
:
test
\ No newline at end of file
yifu-job/yifu-job-biz/src/main/resources/application.yml
View file @
4393a5da
...
@@ -79,37 +79,4 @@ springdoc:
...
@@ -79,37 +79,4 @@ springdoc:
#分组名
#分组名
-
group
:
job
-
group
:
job
#按包路径匹配
#按包路径匹配
packagesToScan
:
com.yifu.cloud.plus.v1.job.controller
packagesToScan
:
com.yifu.cloud.plus.v1.job.controller
---
\ No newline at end of file
# 数据源配置
spring
:
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
config
:
activate
:
on-profile
:
test
---
# 数据源配置
spring
:
redis
:
host
:
127.0.0.1
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_job?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
config
:
activate
:
on-profile
:
dev
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/controller/DictController.java
View file @
4393a5da
...
@@ -180,6 +180,14 @@ public class DictController {
...
@@ -180,6 +180,14 @@ public class DictController {
@PostMapping
(
"/item"
)
@PostMapping
(
"/item"
)
@CacheEvict
(
value
=
CacheConstants
.
DICT_DETAILS
,
allEntries
=
true
)
@CacheEvict
(
value
=
CacheConstants
.
DICT_DETAILS
,
allEntries
=
true
)
public
R
<
Boolean
>
save
(
@RequestBody
SysDictItem
sysDictItem
)
{
public
R
<
Boolean
>
save
(
@RequestBody
SysDictItem
sysDictItem
)
{
SysDictItem
item
=
sysDictItemService
.
getOne
(
Wrappers
.<
SysDictItem
>
query
().
lambda
()
.
eq
(
SysDictItem:
:
getType
,
sysDictItem
.
getType
())
.
eq
(
SysDictItem:
:
getValue
,
sysDictItem
.
getValue
())
.
eq
(
SysDictItem:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
item
)){
return
R
.
failed
(
MsgUtils
.
getMessage
(
ErrorCodes
.
SYS_DICT_ITEM_ADD_VALUE_EXIST
));
}
return
R
.
ok
(
sysDictItemService
.
save
(
sysDictItem
));
return
R
.
ok
(
sysDictItemService
.
save
(
sysDictItem
));
}
}
...
@@ -191,6 +199,15 @@ public class DictController {
...
@@ -191,6 +199,15 @@ public class DictController {
@SysLog
(
"修改字典项"
)
@SysLog
(
"修改字典项"
)
@PutMapping
(
"/item"
)
@PutMapping
(
"/item"
)
public
R
updateById
(
@RequestBody
SysDictItem
sysDictItem
)
{
public
R
updateById
(
@RequestBody
SysDictItem
sysDictItem
)
{
SysDictItem
item
=
sysDictItemService
.
getOne
(
Wrappers
.<
SysDictItem
>
query
().
lambda
()
.
eq
(
SysDictItem:
:
getType
,
sysDictItem
.
getType
())
.
ne
(
SysDictItem:
:
getId
,
sysDictItem
.
getDictId
())
.
eq
(
SysDictItem:
:
getValue
,
sysDictItem
.
getValue
())
.
eq
(
SysDictItem:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
item
)){
return
R
.
failed
(
MsgUtils
.
getMessage
(
ErrorCodes
.
SYS_DICT_ITEM_ADD_VALUE_EXIST
));
}
return
R
.
ok
(
sysDictItemService
.
updateDictItem
(
sysDictItem
));
return
R
.
ok
(
sysDictItemService
.
updateDictItem
(
sysDictItem
));
}
}
...
...
yifu-upms/yifu-upms-biz/src/main/resources/application-dev.yml
0 → 100644
View file @
4393a5da
spring
:
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
config
:
activate
:
on-profile
:
dev
redis
:
host
:
127.0.0.1
port
:
6379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
yifu-upms/yifu-upms-biz/src/main/resources/application-test.yml
0 → 100644
View file @
4393a5da
spring
:
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
config
:
activate
:
on-profile
:
test
redis
:
host
:
192.168.1.65
port
:
22379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
#url: jdbc:mysql://127.0.0.1:3306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
\ No newline at end of file
yifu-upms/yifu-upms-biz/src/main/resources/application.yml
View file @
4393a5da
...
@@ -96,44 +96,3 @@ springdoc:
...
@@ -96,44 +96,3 @@ springdoc:
-
group
:
upms
-
group
:
upms
#按包路径匹配
#按包路径匹配
packagesToScan
:
com.yifu.cloud.plus.v1.yifu.admin.controller
packagesToScan
:
com.yifu.cloud.plus.v1.yifu.admin.controller
---
spring
:
config
:
activate
:
on-profile
:
test
redis
:
host
:
192.168.1.65
port
:
22379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
#url: jdbc:mysql://127.0.0.1:3306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
---
spring
:
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
config
:
activate
:
on-profile
:
dev
redis
:
host
:
127.0.0.1
port
:
6379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
yifu-upms/yifu-upms-biz/src/main/resources/logback-spring.xml
View file @
4393a5da
...
@@ -63,11 +63,6 @@
...
@@ -63,11 +63,6 @@
</filter>
</filter>
</appender>
</appender>
<!--nacos 心跳 INFO 屏蔽-->
<logger
name=
"com.alibaba.nacos"
level=
"OFF"
>
<appender-ref
ref=
"error"
/>
</logger>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"INFO"
>
<root
level=
"INFO"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
...
...
yifu-visual/yifu-codegen/src/main/resources/application-dev.yml
0 → 100644
View file @
4393a5da
# 数据源配置
spring
:
config
:
activate
:
on-profile
:
dev
redis
:
host
:
127.0.0.1
port
:
6379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_codegen?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
web
:
resources
:
static-locations
:
classpath:/static/,classpath:/views/
yifu-visual/yifu-codegen/src/main/resources/application-test.yml
0 → 100644
View file @
4393a5da
# 数据源配置
spring
:
config
:
activate
:
on-profile
:
test
redis
:
host
:
192.168.1.65
port
:
22379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_codegen?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
web
:
resources
:
static-locations
:
classpath:/static/,classpath:/views/
\ No newline at end of file
yifu-visual/yifu-codegen/src/main/resources/application.yml
View file @
4393a5da
...
@@ -40,44 +40,4 @@ springdoc:
...
@@ -40,44 +40,4 @@ springdoc:
#分组名
#分组名
-
group
:
codegen
-
group
:
codegen
#按包路径匹配
#按包路径匹配
packagesToScan
:
com.yifu.cloud.plus.v1.yifu.codegen.controller
packagesToScan
:
com.yifu.cloud.plus.v1.yifu.codegen.controller
---
\ No newline at end of file
# 数据源配置
spring
:
config
:
activate
:
on-profile
:
test
redis
:
host
:
192.168.1.65
port
:
22379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_codegen?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
web
:
resources
:
static-locations
:
classpath:/static/,classpath:/views/
---
# 数据源配置
spring
:
config
:
activate
:
on-profile
:
dev
redis
:
host
:
127.0.0.1
port
:
6379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_codegen?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
web
:
resources
:
static-locations
:
classpath:/static/,classpath:/views/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment