Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
erp-service
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
ximai
erp-service
Commits
bdf58a0c
Commit
bdf58a0c
authored
Nov 23, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
看板接口完成、完工入库接口调整
parent
8c77756e
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
53 additions
and
186 deletions
+53
-186
AppConfig.java
...java/com/topsunit/scanservice/ximai/common/AppConfig.java
+8
-0
MoctgCreateParams.java
...com/topsunit/scanservice/ximai/dto/MoctgCreateParams.java
+2
-0
Moctg.java
...ain/java/com/topsunit/scanservice/ximai/entity/Moctg.java
+6
-0
AuthenticationInterceptor.java
...scanservice/ximai/security/AuthenticationInterceptor.java
+1
-1
MoctfService.java
.../com/topsunit/scanservice/ximai/service/MoctfService.java
+1
-0
application-demo.yml
src/main/resources/application-demo.yml
+5
-4
application-dev.yml
src/main/resources/application-dev.yml
+22
-4
application-dscsys.yml
src/main/resources/application-dscsys.yml
+0
-57
application-local.yml
src/main/resources/application-local.yml
+0
-57
application-prd.yml
src/main/resources/application-prd.yml
+0
-57
application-thximai.yml
src/main/resources/application-thximai.yml
+1
-0
application-ximai.yml
src/main/resources/application-ximai.yml
+6
-5
application.yml
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/com/topsunit/scanservice/ximai/common/AppConfig.java
View file @
bdf58a0c
...
...
@@ -26,6 +26,9 @@ public class AppConfig {
@Value
(
"${topsunit.authentication-enabled}"
)
private
Boolean
authenticationEnabled
;
@Value
(
"${topsunit.db-name}"
)
private
String
dbName
;
public
boolean
getAuthenticationEnabled
(){
if
(
authenticationEnabled
==
null
){
return
true
;
...
...
@@ -46,4 +49,9 @@ public class AppConfig {
public
String
getDefaultPassword
(){
return
defaultPassword
;
}
public
String
getDbName
()
{
return
dbName
;
}
}
src/main/java/com/topsunit/scanservice/ximai/dto/MoctgCreateParams.java
View file @
bdf58a0c
...
...
@@ -39,6 +39,8 @@ public class MoctgCreateParams {
private
Integer
tg009
=
1
;
@ApiModelProperty
(
"仓库"
)
private
String
tg010
;
@ApiModelProperty
(
"审核码"
)
private
String
tg022
=
"N"
;
@ApiModelProperty
(
"库位"
)
private
String
tg036
;
@ApiModelProperty
(
"库存单位"
)
...
...
src/main/java/com/topsunit/scanservice/ximai/entity/Moctg.java
View file @
bdf58a0c
...
...
@@ -63,6 +63,12 @@ public class Moctg extends EntityBase {
private
String
tg037
;
@ApiModelProperty
(
"入库数量"
)
private
BigDecimal
tg011
;
@ApiModelProperty
(
"审核码"
)
private
String
tg022
;
@ApiModelProperty
(
"库存数量"
)
private
BigDecimal
tg038
;
/**
* 工单单别
*/
...
...
src/main/java/com/topsunit/scanservice/ximai/security/AuthenticationInterceptor.java
View file @
bdf58a0c
...
...
@@ -56,7 +56,7 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
if
(!
appConfig
.
getAuthenticationEnabled
()){
CurrentActorSetter
currentActorSetter
=
applicationContext
.
getBean
(
CurrentActorSetter
.
class
);
currentActorSetter
.
setActor
(
"CRMDS"
);
currentActorSetter
.
setCompany
(
"DEMO"
);
currentActorSetter
.
setCompany
(
appConfig
.
getDbName
()
);
return
true
;
}
else
{
...
...
src/main/java/com/topsunit/scanservice/ximai/service/MoctfService.java
View file @
bdf58a0c
...
...
@@ -54,6 +54,7 @@ public class MoctfService {
Invmc
invmc
=
invmcDao
.
findById
(
new
InvmcId
(
invmb
.
getMb001
(),
invmb
.
getMb017
())).
orElseThrow
(()->
new
TopsunitException
(
String
.
format
(
"未找到对应物料默认库:%s,%s"
,
invmb
.
getMb001
(),
invmb
.
getMb017
())));
moctg
.
setTg036
(
invmc
.
getMc015
());
moctg
.
setTg030
(
currStr
);
moctg
.
setTg038
(
moctg
.
getTg011
());
moctgDao
.
save
(
moctg
);
});
moctf
.
setTf033
(
ta083
.
get
());
...
...
src/main/resources/application-demo.yml
View file @
bdf58a0c
topsunit
:
token-expires-hour
:
8760
authentication-enabled
:
tru
e
authentication-enabled
:
fals
e
print-api-url
:
http://192.168.1.107:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
db-name
:
demo
server
:
port
:
2009
0
port
:
2009
1
servlet
:
context-path
:
/
logging
:
...
...
@@ -26,8 +27,8 @@ spring:
datasource
:
name
:
DEMO
username
:
sa
password
:
1
71sS171
url
:
jdbc:sqlserver://192.168.1
0.128
:1433;DatabaseName=DEMO
password
:
1
23qweQWE
url
:
jdbc:sqlserver://192.168.1
.21
:1433;DatabaseName=DEMO
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
...
...
src/main/resources/application-dev.yml
View file @
bdf58a0c
...
...
@@ -3,8 +3,9 @@ topsunit:
authentication-enabled
:
false
print-api-url
:
http://127.0.0.1:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
db-name
:
TEST
server
:
port
:
2009
0
port
:
2009
1
servlet
:
context-path
:
/
logging
:
...
...
@@ -14,6 +15,9 @@ logging:
springframework
:
web
:
debug
com.topsunit
:
debug
druid
:
sql
:
Statement
:
debug
spring
:
devtools
:
restart
:
...
...
@@ -25,9 +29,9 @@ spring:
-
classpath:/public/
datasource
:
name
:
DEMO
username
:
top
password
:
t0psunit
url
:
jdbc:sqlserver://
192.168.222.51:1433;DatabaseName=DEMO
username
:
sa
password
:
123qweQWE
url
:
jdbc:sqlserver://
localhost:1433;DatabaseName=Leader
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
...
...
@@ -43,6 +47,20 @@ spring:
test-on-return
:
false
pool-prepared-statements
:
true
max-open-prepared-statements
:
20
filter
:
slf4j
:
enabled
:
true
statement-log-enabled
:
true
statement-create-after-log-enabled
:
false
statement-close-after-log-enabled
:
false
statement-executable-sql-log-enable
:
true
statement-prepare-after-log-enabled
:
false
statement-parameter-set-log-enabled
:
false
statement-execute-after-log-enabled
:
false
statement-execute-query-after-log-enabled
:
false
statement-execute-update-after-log-enabled
:
false
statement-execute-batch-after-log-enabled
:
false
statement-sql-pretty-format
:
false
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
jackson
:
serialization
:
...
...
src/main/resources/application-dscsys.yml
deleted
100644 → 0
View file @
8c77756e
topsunit
:
token-expires-hour
:
8760
authentication-enabled
:
true
print-api-url
:
http://192.168.1.107:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
server
:
port
:
20090
servlet
:
context-path
:
/
logging
:
level
:
root
:
info
org
:
springframework
:
web
:
info
com.topsunit
:
info
spring
:
devtools
:
restart
:
additional-paths
:
-
src/main/resources
resources
:
static-locations
:
-
classpath:/static/
-
classpath:/public/
datasource
:
name
:
DEMO
username
:
top
password
:
t0psunit
url
:
jdbc:sqlserver://192.168.1.21:1433;DatabaseName=DSCSYS
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
max-active
:
20
initial-size
:
1
max-wait
:
60000
min-idle
:
1
time-between-eviction-runs-millis
:
60000
min-evictable-idle-time-millis
:
30000
validation-query
:
select 'x'
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
pool-prepared-statements
:
true
max-open-prepared-statements
:
20
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
jackson
:
serialization
:
indent-output
:
true
jpa
:
hibernate
:
ddl-auto
:
none
naming
:
physical-strategy
:
com.topsunit.scanservice.ximai.common.PhysicalNamingStrategyUpperCaseImpl
show-sql
:
true
application
:
name
:
topsunit-scan-dscsys
src/main/resources/application-local.yml
deleted
100644 → 0
View file @
8c77756e
topsunit
:
token-expires-hour
:
8760
authentication-enabled
:
true
print-api-url
:
http://192.168.31.210:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
server
:
port
:
20090
servlet
:
context-path
:
/
logging
:
level
:
root
:
warn
org
:
springframework
:
web
:
debug
com.topsunit
:
debug
spring
:
devtools
:
restart
:
additional-paths
:
-
src/main/resources
resources
:
static-locations
:
-
classpath:/static/
-
classpath:/public/
datasource
:
name
:
DEMO
username
:
top
password
:
t0psunit
url
:
jdbc:sqlserver://192.168.31.131:1433;DatabaseName=DEMO
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
max-active
:
20
initial-size
:
1
max-wait
:
60000
min-idle
:
1
time-between-eviction-runs-millis
:
60000
min-evictable-idle-time-millis
:
30000
validation-query
:
select 'x'
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
pool-prepared-statements
:
true
max-open-prepared-statements
:
20
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
jackson
:
serialization
:
indent-output
:
true
jpa
:
hibernate
:
ddl-auto
:
none
naming
:
physical-strategy
:
com.topsunit.scanservice.ximai.common.PhysicalNamingStrategyUpperCaseImpl
show-sql
:
true
application
:
name
:
topsunit-scan-ximai
src/main/resources/application-prd.yml
deleted
100644 → 0
View file @
8c77756e
topsunit
:
token-expires-hour
:
8760
authentication-enabled
:
true
print-api-url
:
http://127.0.0.1:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
server
:
port
:
20090
servlet
:
context-path
:
/
logging
:
level
:
root
:
info
org
:
springframework
:
web
:
info
com.topsunit
:
info
spring
:
devtools
:
restart
:
additional-paths
:
-
src/main/resources
resources
:
static-locations
:
-
classpath:/static/
-
classpath:/public/
datasource
:
name
:
DEMO
username
:
top
password
:
t0psunit
url
:
jdbc:sqlserver://192.168.222.51:1433;DatabaseName=DEMO
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
max-active
:
20
initial-size
:
1
max-wait
:
60000
min-idle
:
1
time-between-eviction-runs-millis
:
60000
min-evictable-idle-time-millis
:
30000
validation-query
:
select 'x'
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
pool-prepared-statements
:
true
max-open-prepared-statements
:
20
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
jackson
:
serialization
:
indent-output
:
true
jpa
:
hibernate
:
ddl-auto
:
none
naming
:
physical-strategy
:
com.topsunit.scanservice.ximai.common.PhysicalNamingStrategyUpperCaseImpl
show-sql
:
true
application
:
name
:
topsunit-scan-ximai
src/main/resources/application-thximai.yml
View file @
bdf58a0c
...
...
@@ -3,6 +3,7 @@ topsunit:
authentication-enabled
:
false
print-api-url
:
http://192.168.1.107:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
db-name
:
Leader
server
:
port
:
20091
servlet
:
...
...
src/main/resources/application-ximai.yml
View file @
bdf58a0c
topsunit
:
token-expires-hour
:
8760
authentication-enabled
:
tru
e
authentication-enabled
:
fals
e
print-api-url
:
http://192.168.1.107:8085/ximaiprintservice/print/PrintLabelByBarTender
default-password
:
123456
db-name
:
XIMAI
server
:
port
:
20091
servlet
:
...
...
@@ -24,10 +25,10 @@ spring:
-
classpath:/static/
-
classpath:/public/
datasource
:
name
:
XIMAI
username
:
top
password
:
t0psunit
url
:
jdbc:sqlserver://192.168.1.21:1433;DatabaseName=
XIMAI
name
:
Leader
username
:
sa
password
:
123qweQWE
url
:
jdbc:sqlserver://192.168.1.21:1433;DatabaseName=
Leader
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
...
...
src/main/resources/application.yml
View file @
bdf58a0c
spring
:
profiles
:
active
:
-
de
mo
-
de
v
\ No newline at end of file
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