Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_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
高宇
dataC_api
Commits
b5bc504f
Commit
b5bc504f
authored
Jun 11, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1d3a3636
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
45 deletions
+78
-45
BPnSypn.java
src/main/java/org/rcisoft/bus/bpnsypn/entity/BPnSypn.java
+12
-10
application-common.yml
src/main/resources/application-common.yml
+3
-3
BPnSypnMapper.xml
...ain/resources/mapper/bus/bpnsypn/mapper/BPnSypnMapper.xml
+63
-32
No files found.
src/main/java/org/rcisoft/bus/bpnsypn/entity/BPnSypn.java
View file @
b5bc504f
...
...
@@ -3,16 +3,7 @@ package org.rcisoft.bus.bpnsypn.entity;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.*
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
org.rcisoft.core.entity.CyIdEntity
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.rcisoft.core.entity.CyIdIncreEntity
;
/**
...
...
@@ -40,6 +31,17 @@ public class BPnSypn extends CyIdIncreEntity<BPnSypn> {
@Excel
(
name
=
"sypn"
,
orderNum
=
"1"
,
width
=
20
)
private
String
sypn
;
@Excel
(
name
=
"jlpm"
,
orderNum
=
"2"
,
width
=
20
)
private
String
jlpm
;
@Excel
(
name
=
"sizes"
,
orderNum
=
"3"
,
width
=
20
)
private
String
sizes
;
@Excel
(
name
=
"product"
,
orderNum
=
"4"
,
width
=
20
)
private
String
product
;
@Excel
(
name
=
"pn2"
,
orderNum
=
"5"
,
width
=
20
)
private
String
pn2
;
/**
* 月度信息pn查询
* **/
...
...
src/main/resources/application-common.yml
View file @
b5bc504f
...
...
@@ -160,9 +160,9 @@ spring:
#---------SQL SERVER-------------
driver-class-name
:
com.microsoft.sqlserver.jdbc.SQLServerDriver
url
:
jdbc:sqlserver://
${cy_db.ip}:${cy_db.port};DatabaseName=${cy_db.db}
;encrypt=false
username
:
${cy_db.username}
password
:
${cy_db.password}
url
:
jdbc:sqlserver://
106.3.99.36:20002;DatabaseName=dbo
;encrypt=false
username
:
sa
password
:
zdwd519@zdw
type
:
com.zaxxer.hikari.HikariDataSource
hikari
:
minimum-idle
:
50
...
...
src/main/resources/mapper/bus/bpnsypn/mapper/BPnSypnMapper.xml
View file @
b5bc504f
...
...
@@ -12,52 +12,83 @@
<result
column=
"update_date"
jdbcType=
"TIMESTAMP"
property=
"updateDate"
/>
<result
column=
"remarks"
jdbcType=
"VARCHAR"
property=
"remarks"
/>
<result
column=
"del_flag"
jdbcType=
"NCHAR"
property=
"delFlag"
/>
<result
column=
"jlpm"
jdbcType=
"VARCHAR"
property=
"jlpm"
/>
<result
column=
"sizes"
jdbcType=
"VARCHAR"
property=
"sizes"
/>
<result
column=
"product"
jdbcType=
"VARCHAR"
property=
"product"
/>
<result
column=
"pn2"
jdbcType=
"VARCHAR"
property=
"pn2"
/>
</resultMap>
<select
id=
"queryBPnSypns"
resultMap=
"BaseResultMap"
>
select * from b_pn_sypn
where 1=1
<if
test=
"entity.delFlag !=null and entity.delFlag != '' "
>
and del_flag = #{entity.delFlag}
</if>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.pn !=null and entity.pn != '' "
>
and pn like concat('%',#{entity.pn},'%')
</if>
<if
test=
"entity.copyPn!=null and entity.copyPn != '' "
>
and pn = #{entity.copyPn}
</if>
<if
test=
"entity.sypn !=null and entity.sypn != '' "
>
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if
test=
"entity.delFlag !=null and entity.delFlag != '' "
>
and del_flag = #{entity.delFlag}
</if>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.pn !=null and entity.pn != '' "
>
and pn like concat('%',#{entity.pn},'%')
</if>
<if
test=
"entity.copyPn!=null and entity.copyPn != '' "
>
and pn = #{entity.copyPn}
</if>
<if
test=
"entity.sypn !=null and entity.sypn != '' "
>
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if
test=
"entity.jlpm !=null and entity.jlpm != '' "
>
and jlpm like concat('%',#{entity.jlpm},'%')
</if>
<if
test=
"entity.sizes !=null and entity.sizes != '' "
>
and sizes like concat('%',#{entity.sizes},'%')
</if>
<if
test=
"entity.product !=null and entity.product != '' "
>
and product like concat('%',#{entity.product},'%')
</if>
<if
test=
"entity.pn2 !=null and entity.pn2 != '' "
>
and pn2 like concat('%',#{entity.pn2},'%')
</if>
</select>
<select
id=
"queryBPnSypnsPaged"
resultMap=
"BaseResultMap"
>
select * from b_pn_sypn
where 1=1
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.pn !=null and entity.pn != '' "
>
and pn like concat('%',#{entity.pn},'%')
</if>
<if
test=
"entity.sypn !=null and entity.sypn != '' "
>
and sypn like concat('%',#{entity.sypn},'%')
</if>
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
</if>
<if
test=
"entity.pn !=null and entity.pn != '' "
>
and pn like concat('%',#{entity.pn},'%')
</if>
<if
test=
"entity.sypn !=null and entity.sypn != '' "
>
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if
test=
"entity.jlpm !=null and entity.jlpm != '' "
>
and jlpm like concat('%',#{entity.jlpm},'%')
</if>
<if
test=
"entity.sizes !=null and entity.sizes != '' "
>
and sizes like concat('%',#{entity.sizes},'%')
</if>
<if
test=
"entity.product !=null and entity.product != '' "
>
and product like concat('%',#{entity.product},'%')
</if>
<if
test=
"entity.pn2 !=null and entity.pn2 != '' "
>
and pn2 like concat('%',#{entity.pn2},'%')
</if>
</select>
<select
id=
"querySomePn"
resultType=
"java.lang.Integer"
>
SELECT
count(*)
count(*)
FROM
b_pn_sypn
b_pn_sypn
where
del_flag = 0
and pn = #{pn}
<if
test=
"businessId != null and businessId != ''"
>
and business_id != #{businessId}
</if>
del_flag = 0
and pn = #{pn}
<if
test=
"businessId != null and businessId != ''"
>
and business_id != #{businessId}
</if>
</select>
</mapper>
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