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
fb215872
Commit
fb215872
authored
Dec 23, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完工入库单创建字段默认调整
parent
09a28d9a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
56 additions
and
8 deletions
+56
-8
WebMvcConfig.java
...a/com/topsunit/scanservice/ximai/common/WebMvcConfig.java
+18
-0
MoctgCreateParams.java
...com/topsunit/scanservice/ximai/dto/MoctgCreateParams.java
+4
-0
PurtgCreateParams.java
...com/topsunit/scanservice/ximai/dto/PurtgCreateParams.java
+1
-1
PurthCreateParams.java
...com/topsunit/scanservice/ximai/dto/PurthCreateParams.java
+1
-1
SfctbCreateParams.java
...com/topsunit/scanservice/ximai/dto/SfctbCreateParams.java
+2
-2
Moctg.java
...ain/java/com/topsunit/scanservice/ximai/entity/Moctg.java
+4
-0
TokenService.java
...com/topsunit/scanservice/ximai/security/TokenService.java
+3
-1
application-dev.yml
src/main/resources/application-dev.yml
+20
-0
application-thximai.yml
src/main/resources/application-thximai.yml
+3
-3
No files found.
src/main/java/com/topsunit/scanservice/ximai/common/WebMvcConfig.java
0 → 100644
View file @
fb215872
package
com
.
topsunit
.
scanservice
.
ximai
.
common
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.servlet.config.annotation.CorsRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
@Configuration
public
class
WebMvcConfig
implements
WebMvcConfigurer
{
@Override
public
void
addCorsMappings
(
CorsRegistry
registry
)
{
registry
.
addMapping
(
"/**"
)
.
allowedOrigins
(
"*"
)
.
allowedMethods
(
"GET"
,
"POST"
,
"PUT"
,
"DELETE"
)
.
maxAge
(
3600
);
}
}
src/main/java/com/topsunit/scanservice/ximai/dto/MoctgCreateParams.java
View file @
fb215872
...
...
@@ -53,10 +53,14 @@ public class MoctgCreateParams {
private
String
tg015
;
@ApiModelProperty
(
"检验状态"
)
private
String
tg016
=
"0"
;
@ApiModelProperty
(
"批号"
)
private
String
tg017
=
"********************"
;
@ApiModelProperty
(
"急料"
)
private
String
tg024
;
@ApiModelProperty
(
"生产日期"
)
private
String
tg030
;
@ApiModelProperty
(
"批号说明"
)
private
String
tg031
=
""
;
@ApiModelProperty
(
"报废数量"
)
private
BigDecimal
tg012
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
"验退数量"
)
...
...
src/main/java/com/topsunit/scanservice/ximai/dto/PurtgCreateParams.java
View file @
fb215872
...
...
@@ -17,7 +17,7 @@ import java.util.List;
public
class
PurtgCreateParams
{
@ApiModelProperty
(
"到货单别"
)
private
String
cc001
;
@ApiModelProperty
(
"
gcfm
货单号"
)
@ApiModelProperty
(
"
到
货单号"
)
private
String
cc002
;
@ApiModelProperty
(
"进货单别,默认3401"
)
private
String
tg001
=
"3401"
;
...
...
src/main/java/com/topsunit/scanservice/ximai/dto/PurthCreateParams.java
View file @
fb215872
...
...
@@ -24,7 +24,7 @@ public class PurthCreateParams {
private
String
cd003
;
@ApiModelProperty
(
"仓库"
)
private
String
th009
=
""
;
@ApiModelProperty
(
"
原币单位金价
"
)
@ApiModelProperty
(
"
批号
"
)
private
String
th010
=
""
;
@ApiModelProperty
(
"验收数量,默认进货数-入库数"
)
private
BigDecimal
th015
=
BigDecimal
.
ZERO
;
...
...
src/main/java/com/topsunit/scanservice/ximai/dto/SfctbCreateParams.java
View file @
fb215872
...
...
@@ -36,10 +36,10 @@ public class SfctbCreateParams {
private
Integer
tc020
;
@ApiModelProperty
(
"使用机时"
)
private
Integer
tc021
;
@ApiModelProperty
(
""
)
@ApiModelProperty
(
"
批号
"
)
private
String
tc032
;
@ApiModelProperty
(
"转移数量"
)
private
BigDecimal
tc036
;
@ApiModelProperty
(
""
)
@ApiModelProperty
(
"
库位
"
)
private
String
tc056
;
}
src/main/java/com/topsunit/scanservice/ximai/entity/Moctg.java
View file @
fb215872
...
...
@@ -81,6 +81,8 @@ public class Moctg extends EntityBase {
private
String
tg015
;
@ApiModelProperty
(
"检验状态"
)
private
String
tg016
=
"0"
;
@ApiModelProperty
(
"批号"
)
private
String
tg017
;
@ApiModelProperty
(
"急料"
)
private
String
tg024
;
/**
...
...
@@ -96,5 +98,7 @@ public class Moctg extends EntityBase {
private
BigDecimal
tg032
;
@ApiModelProperty
(
"验收数量"
)
private
BigDecimal
tg013
;
@ApiModelProperty
(
"批号说明"
)
private
String
tg031
;
}
src/main/java/com/topsunit/scanservice/ximai/security/TokenService.java
View file @
fb215872
...
...
@@ -2,6 +2,7 @@ package com.topsunit.scanservice.ximai.security;
import
com.topsunit.scanservice.ximai.common.AppConfig
;
import
com.topsunit.scanservice.ximai.common.Constants
;
import
com.topsunit.scanservice.ximai.common.TopsunitException
;
import
com.topsunit.scanservice.ximai.dto.LoginResult
;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.Jwts
;
...
...
@@ -52,6 +53,7 @@ public class TokenService
}
catch
(
Exception
e
)
{
throw
new
TopsunitException
(
e
);
}
}
return
null
;
...
...
@@ -128,7 +130,7 @@ public class TokenService
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
throw
new
TopsunitException
(
e
);
}
}
return
null
;
...
...
src/main/resources/application-dev.yml
View file @
fb215872
...
...
@@ -7,6 +7,26 @@ topsunit:
mes-url
:
http://localhost:8088
default-password
:
123456
db-name
:
TEST
print
:
urls
:
-
code
:
1
url
:
http://192.168.1.24:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
2
url
:
http://192.168.4.198:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
3
url
:
http://192.168.2.198:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
4
url
:
http://192.168.3.198:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
5
url
:
http://192.168.1.25:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
6
url
:
http://192.168.1.26:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
7
url
:
http://192.168.2.197:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
8
url
:
http://192.168.3.197:8085/ximaiprintservice/print/PrintLabelByBarTender
-
code
:
9
url
:
http://192.168.4.197:8085/ximaiprintservice/print/PrintLabelByBarTender
server
:
port
:
20091
servlet
:
...
...
src/main/resources/application-thximai.yml
View file @
fb215872
...
...
@@ -6,7 +6,7 @@ topsunit:
share-url
:
smb://127.0.0.1/share
mes-url
:
http://localhost:8088
default-password
:
123456
db-name
:
Leader
db-name
:
DEMO
print
:
urls
:
-
code
:
1
...
...
@@ -50,10 +50,10 @@ spring:
-
classpath:/static/
-
classpath:/public/
datasource
:
name
:
Leader
name
:
DEMO
username
:
sa
password
:
123qweQWE
url
:
jdbc:sqlserver://192.168.1.21:1433;DatabaseName=
Leader
url
:
jdbc:sqlserver://192.168.1.21:1433;DatabaseName=
DEMO
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
filters
:
stat
...
...
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