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
Hide 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 @@
<version>
RELEASE
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
...
...
src/main/resources/application-common.yml
View file @
59ee545e
...
...
@@ -13,11 +13,14 @@ server:
mybatis-plus
:
mapper-locations
:
"
classpath*:mapper/**/**/*.xml"
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
global-config
:
db-config
:
logic-delete-value
:
1
# 逻辑已删除值(默认为 1)
logic-not-delete-value
:
0
# 逻辑未删除值(默认为 0)
# ------------spring component------------------
spring
:
main
:
...
...
@@ -61,7 +64,7 @@ spring:
timeout
:
3000
jedis
:
pool
:
max-active
:
32
max-active
:
32
max-idle
:
16
max-wait
:
300ms
min-idle
:
8
...
...
@@ -115,15 +118,15 @@ spring:
#---------5.1 MYSQL-------------
# mysql5.0
#driver-class-name: com.mysql.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
# username: ${cy_db.username}
# password: ${cy_db.password}
# 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
# username: ${cy_db.username}
# password: ${cy_db.password}
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
username
:
root
password
:
mosheng
password
:
123456
#----------5.2 POSTGRES------------
...
...
src/main/resources/application.yml
View file @
59ee545e
...
...
@@ -5,4 +5,12 @@ spring:
dev
:
dev-conf,common,spbt
prod
:
prod-conf,common,spbt
kube
:
kube-conf,common,spbt
test
:
test-conf,common,spbt
\ No newline at end of file
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,91 +25,94 @@
<result
column=
"out_goods"
jdbcType=
"VARCHAR"
property=
"outGoods"
/>
</resultMap>
<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=
","
>
(#{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})
</foreach></insert>
</foreach>
</insert>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select
id=
"queryWmsGoodsApplys"
resultMap=
"BaseResultMap"
>
select * from wms_goods_apply
where 1=1
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.ioType !=null and entity.ioType != '' "
>
and io_type = #{entity.ioType}
</if>
<if
test=
"entity.dealStatus !=null and entity.dealStatus != '' "
>
and deal_status = #{entity.dealStatus}
</if>
<if
test=
"entity.goodsCounts !=null and entity.goodsCounts != '' "
>
and goods_counts = #{entity.goodsCounts}
</if>
<if
test=
"entity.appCode !=null and entity.appCode != '' "
>
and app_code like concat('%',#{entity.appCode},'%')
</if>
<if
test=
"entity.shipper !=null and entity.shipper != '' "
>
and shipper like concat('%',#{entity.shipper},'%')
</if>
<if
test=
"entity.shipperAddress !=null and entity.shipperAddress != '' "
>
and shipper_address like concat('%',#{entity.shipperAddress},'%')
</if>
<if
test=
"entity.shipperPhone !=null and entity.shipperPhone != '' "
>
and shipper_phone
like concat('%',#{entity.shipperPhone},'%')
</if>
<if
test=
"entity.goodsCheck !=null and entity.goodsCheck != '' "
>
and goods_check = #{entity.goodsCheck}
</if>
<if
test=
"entity.salesman !=null and entity.salesman != '' "
>
and salesman like concat('%',#{entity.salesman},'%')
</if>
<if
test=
"entity.maker !=null and entity.maker != '' "
>
and maker like concat('%',#{entity.maker},'%')
</if>
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.ioType !=null and entity.ioType != '' "
>
and io_type = #{entity.ioType}
</if>
<if
test=
"entity.dealStatus !=null and entity.dealStatus != '' "
>
and deal_status = #{entity.dealStatus}
</if>
<if
test=
"entity.goodsCounts !=null and entity.goodsCounts != '' "
>
and goods_counts = #{entity.goodsCounts}
</if>
<if
test=
"entity.appCode !=null and entity.appCode != '' "
>
and app_code like concat('%',#{entity.appCode},'%')
</if>
<if
test=
"entity.shipper !=null and entity.shipper != '' "
>
and shipper like concat('%',#{entity.shipper},'%')
</if>
<if
test=
"entity.shipperAddress !=null and entity.shipperAddress != '' "
>
and shipper_address like concat('%',#{entity.shipperAddress},'%')
</if>
<if
test=
"entity.shipperPhone !=null and entity.shipperPhone != '' "
>
and shipper_phone
like concat('%',#{entity.shipperPhone},'%')
</if>
<if
test=
"entity.goodsCheck !=null and entity.goodsCheck != '' "
>
and goods_check = #{entity.goodsCheck}
</if>
<if
test=
"entity.salesman !=null and entity.salesman != '' "
>
and salesman like concat('%',#{entity.salesman},'%')
</if>
<if
test=
"entity.maker !=null and entity.maker != '' "
>
and maker like concat('%',#{entity.maker},'%')
</if>
ORDER BY business_id DESC
</select>
<select
id=
"queryWmsGoodsApplysPaged"
resultMap=
"BaseResultMap"
>
select * from wms_goods_apply
where 1=1
and del_flag = '0' and io_type='0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.ioType !=null and entity.ioType != '' "
>
and io_type = #{entity.ioType}
</if>
<if
test=
"entity.dealStatus !=null and entity.dealStatus != '' "
>
and deal_status = #{entity.dealStatus}
</if>
<if
test=
"entity.goodsCounts !=null and entity.goodsCounts != '' "
>
and goods_counts = #{entity.goodsCounts}
</if>
<if
test=
"entity.appCode !=null and entity.appCode != '' "
>
and app_code like concat('%',#{entity.appCode},'%')
</if>
<if
test=
"entity.shipper !=null and entity.shipper != '' "
>
and shipper like concat('%',#{entity.shipper},'%')
</if>
<if
test=
"entity.shipperAddress !=null and entity.shipperAddress != '' "
>
and shipper_address like concat('%',#{entity.shipperAddress},'%')
</if>
<if
test=
"entity.shipperPhone !=null and entity.shipperPhone != '' "
>
and shipper_phone
like concat('%',#{entity.shipperPhone},'%')
</if>
<if
test=
"entity.goodsCheck !=null and entity.goodsCheck != '' "
>
and goods_check = #{entity.goodsCheck}
</if>
<if
test=
"entity.salesman !=null and entity.salesman != '' "
>
and salesman like concat('%',#{entity.salesman},'%')
</if>
<if
test=
"entity.maker !=null and entity.maker != '' "
>
and maker like concat('%',#{entity.maker},'%')
</if>
and del_flag = '0' and io_type='0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.ioType !=null and entity.ioType != '' "
>
and io_type = #{entity.ioType}
</if>
<if
test=
"entity.dealStatus !=null and entity.dealStatus != '' "
>
and deal_status = #{entity.dealStatus}
</if>
<if
test=
"entity.goodsCounts !=null and entity.goodsCounts != '' "
>
and goods_counts = #{entity.goodsCounts}
</if>
<if
test=
"entity.appCode !=null and entity.appCode != '' "
>
and app_code like concat('%',#{entity.appCode},'%')
</if>
<if
test=
"entity.shipper !=null and entity.shipper != '' "
>
and shipper like concat('%',#{entity.shipper},'%')
</if>
<if
test=
"entity.shipperAddress !=null and entity.shipperAddress != '' "
>
and shipper_address like concat('%',#{entity.shipperAddress},'%')
</if>
<if
test=
"entity.shipperPhone !=null and entity.shipperPhone != '' "
>
and shipper_phone
like concat('%',#{entity.shipperPhone},'%')
</if>
<if
test=
"entity.goodsCheck !=null and entity.goodsCheck != '' "
>
and goods_check = #{entity.goodsCheck}
</if>
<if
test=
"entity.salesman !=null and entity.salesman != '' "
>
and salesman like concat('%',#{entity.salesman},'%')
</if>
<if
test=
"entity.maker !=null and entity.maker != '' "
>
and maker like concat('%',#{entity.maker},'%')
</if>
ORDER BY business_id DESC
</select>
<select
id=
"getOrderCodeCount"
resultType=
"java.lang.Integer"
>
SELECT COALESCE(
(SELECT MAX(RIGHT(app_code, 3)) FROM wms_goods_apply WHERE app_code LIKE CONCAT(#{data}, '%')),
...
...
@@ -143,7 +146,7 @@
and shipper_address like concat('%',#{entity.shipperAddress},'%')
</if>
<if
test=
"entity.shipperPhone !=null and entity.shipperPhone != '' "
>
and shipper_phone
like concat('%',#{entity.shipperPhone},'%')
and shipper_phone like concat('%',#{entity.shipperPhone},'%')
</if>
<if
test=
"entity.goodsCheck !=null and entity.goodsCheck != '' "
>
and goods_check = #{entity.goodsCheck}
...
...
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