Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms_api
Project
Project
Details
Activity
Releases
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
高宇
wms_api
Commits
59ee545e
Commit
59ee545e
authored
Jul 30, 2024
by
XuYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加
parent
a2e62cbb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
78 deletions
+99
-78
pom.xml
pom.xml
+7
-0
application-common.yml
src/main/resources/application-common.yml
+9
-6
application.yml
src/main/resources/application.yml
+9
-1
WmsGoodsApplyMapper.xml
...esources/mapper/bus/wmsGoodsApply/WmsGoodsApplyMapper.xml
+74
-71
No files found.
pom.xml
View file @
59ee545e
...
@@ -57,6 +57,13 @@
...
@@ -57,6 +57,13 @@
<version>
RELEASE
</version>
<version>
RELEASE
</version>
<scope>
compile
</scope>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/resources/application-common.yml
View file @
59ee545e
...
@@ -13,11 +13,14 @@ server:
...
@@ -13,11 +13,14 @@ server:
mybatis-plus
:
mybatis-plus
:
mapper-locations
:
"
classpath*:mapper/**/**/*.xml"
mapper-locations
:
"
classpath*:mapper/**/**/*.xml"
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
global-config
:
global-config
:
db-config
:
db-config
:
logic-delete-value
:
1
# 逻辑已删除值(默认为 1)
logic-delete-value
:
1
# 逻辑已删除值(默认为 1)
logic-not-delete-value
:
0
# 逻辑未删除值(默认为 0)
logic-not-delete-value
:
0
# 逻辑未删除值(默认为 0)
# ------------spring component------------------
# ------------spring component------------------
spring
:
spring
:
main
:
main
:
...
@@ -115,15 +118,15 @@ spring:
...
@@ -115,15 +118,15 @@ spring:
#---------5.1 MYSQL-------------
#---------5.1 MYSQL-------------
# mysql5.0
# mysql5.0
#driver-class-name: com.mysql.jdbc.Driver
#driver-class-name: com.mysql.jdbc.Driver
# driver-class-name: com.mysql.cj.jdbc.Driver
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://${cy_db.ip}:${cy_db.port}/${cy_db.db}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# url: jdbc:mysql://${cy_db.ip}:${cy_db.port}/${cy_db.db}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: ${cy_db.username}
# username: ${cy_db.username}
# password: ${cy_db.password}
# password: ${cy_db.password}
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://localhost:3306/wms_db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://localhost:3306/wms_db?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username
:
root
username
:
root
password
:
mosheng
password
:
123456
#----------5.2 POSTGRES------------
#----------5.2 POSTGRES------------
...
...
src/main/resources/application.yml
View file @
59ee545e
...
@@ -6,3 +6,11 @@ spring:
...
@@ -6,3 +6,11 @@ spring:
prod
:
prod-conf,common,spbt
prod
:
prod-conf,common,spbt
kube
:
kube-conf,common,spbt
kube
:
kube-conf,common,spbt
test
:
test-conf,common,spbt
test
:
test-conf,common,spbt
servlet
:
multipart
:
max-file-size
:
10MB
max-request-size
:
20MB
localPath
:
path
:
D:\testImg\
src/main/resources/mapper/bus/wmsGoodsApply/WmsGoodsApplyMapper.xml
View file @
59ee545e
...
@@ -25,11 +25,13 @@
...
@@ -25,11 +25,13 @@
<result
column=
"out_goods"
jdbcType=
"VARCHAR"
property=
"outGoods"
/>
<result
column=
"out_goods"
jdbcType=
"VARCHAR"
property=
"outGoods"
/>
</resultMap>
</resultMap>
<insert
id=
"batchAdd"
>
insert into wms_goods_apply(flag,del_flag,create_by,create_date,update_by,update_date,remarks,
<insert
id=
"batchAdd"
>
insert into wms_goods_apply(flag,del_flag,create_by,create_date,update_by,update_date,remarks,
io_type,deal_status,goods_counts,shipper,shipper_address,shipper_phone,goods_check,salesman,maker,in_goods,out_goods,app_code) values
io_type,deal_status,goods_counts,shipper,shipper_address,shipper_phone,goods_check,salesman,maker,in_goods,out_goods,app_code)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.flag},#{item.delFlag},#{item.createBy},#{item.createDate},#{item.updateBy},#{item.updateDate},#{item.remarks},#{item.io_type},#{item.deal_status},#{item.goods_counts},#{item.shipper},#{item.shipper_address},#{item.shipper_phone},
(#{item.flag},#{item.delFlag},#{item.createBy},#{item.createDate},#{item.updateBy},#{item.updateDate},#{item.remarks},#{item.io_type},#{item.deal_status},#{item.goods_counts},#{item.shipper},#{item.shipper_address},#{item.shipper_phone},
#{item.goods_check},#{item.salesman},#{item.maker},#{item.inGoods},#{item.outGoods},#{item.appCode})
#{item.goods_check},#{item.salesman},#{item.maker},#{item.inGoods},#{item.outGoods},#{item.appCode})
</foreach></insert>
</foreach>
</insert>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select
id=
"queryWmsGoodsApplys"
resultMap=
"BaseResultMap"
>
<select
id=
"queryWmsGoodsApplys"
resultMap=
"BaseResultMap"
>
select * from wms_goods_apply
select * from wms_goods_apply
...
@@ -110,6 +112,7 @@
...
@@ -110,6 +112,7 @@
</if>
</if>
ORDER BY business_id DESC
ORDER BY business_id DESC
</select>
</select>
<select
id=
"getOrderCodeCount"
resultType=
"java.lang.Integer"
>
<select
id=
"getOrderCodeCount"
resultType=
"java.lang.Integer"
>
SELECT COALESCE(
SELECT COALESCE(
(SELECT MAX(RIGHT(app_code, 3)) FROM wms_goods_apply WHERE app_code LIKE CONCAT(#{data}, '%')),
(SELECT MAX(RIGHT(app_code, 3)) FROM wms_goods_apply WHERE app_code LIKE CONCAT(#{data}, '%')),
...
...
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