Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
b5c54470
Commit
b5c54470
authored
Apr 28, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改添加卡体、膜 数据时备注为空的情况
parent
7e5bf6e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
MaterialManagementMapper.java
.../com/yxproject/start/mapper/MaterialManagementMapper.java
+22
-2
No files found.
src/main/java/com/yxproject/start/mapper/MaterialManagementMapper.java
View file @
b5c54470
...
...
@@ -8,7 +8,17 @@ import java.util.List;
@Mapper
public
interface
MaterialManagementMapper
{
@Insert
(
"INSERT INTO PLASTIC_FILM (TOTAL_COUNT,PLASTIC_FILM_TYPE,NOTE,name,state) VALUES(#{totalCount},#{plasticFilmType},#{note},#{name},#{state})"
)
@Insert
(
"<script>"
+
"INSERT INTO PLASTIC_FILM (TOTAL_COUNT,PLASTIC_FILM_TYPE,"
+
"<if test='note !=null>"
+
"NOTE,"
+
"</if>"
+
"name,state) VALUES(#{totalCount},#{plasticFilmType},"
+
"<if test='note !=null>"
+
"#{note},"
+
"</if>"
+
"#{name},#{state})"
+
"</script>"
)
public
boolean
insertFilm
(
@Param
(
"totalCount"
)
String
totalCount
,
@Param
(
"plasticFilmType"
)
String
plasticFilmType
,
@Param
(
"note"
)
String
note
,
@Param
(
"name"
)
String
name
,
@Param
(
"state"
)
long
state
);
@Select
(
"<script>"
+
...
...
@@ -45,7 +55,17 @@ public interface MaterialManagementMapper {
public
String
selectFilmCount2
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"typeCode"
)
String
typeCode
,
@Param
(
"name"
)
String
name
);
@Insert
(
"INSERT INTO CARD_BODY (CARD_TYPE,TOTAL_COUNT,NOTE,name,CARD_BODY_TYPE,state)VALUES(#{cardType},#{totalCount},#{note},#{name},#{cardBodyType},#{state})"
)
@Insert
(
"<script>"
+
"INSERT INTO CARD_BODY (CARD_TYPE,TOTAL_COUNT,"
+
"<if test='note !=null>"
+
"NOTE,"
+
"</if>"
+
"name,CARD_BODY_TYPE,state)VALUES(#{cardType},#{totalCount},"
+
"<if test='note !=null>"
+
"#{note},"
+
"</if>"
+
"#{name},#{cardBodyType},#{state})"
+
"</script>"
)
public
boolean
insertCardBody
(
@Param
(
"cardType"
)
String
cardType
,
@Param
(
"totalCount"
)
String
totalCount
,
@Param
(
"note"
)
String
note
,
@Param
(
"name"
)
String
name
,
@Param
(
"cardBodyType"
)
long
cardBodyType
,
@Param
(
"state"
)
long
state
);
...
...
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