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
a079a3c4
Commit
a079a3c4
authored
Mar 04, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
aca3b659
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
16 deletions
+56
-16
PreproPersonMapper.java
...n/java/com/yxproject/start/mapper/PreproPersonMapper.java
+55
-15
PreproPersonServiceImpl.java
...yxproject/start/service/impl/PreproPersonServiceImpl.java
+1
-1
No files found.
src/main/java/com/yxproject/start/mapper/PreproPersonMapper.java
View file @
a079a3c4
...
@@ -24,21 +24,61 @@ public interface PreproPersonMapper {
...
@@ -24,21 +24,61 @@ public interface PreproPersonMapper {
/*按条件查询制证数据*/
/*按条件查询制证数据*/
@Select
(
"select * from PREPRO_PERSON \n"
+
@Select
({
"<script>"
+
"left join files on PREPRO_PERSON.FILE_ID = files.ID\n"
+
"select * from PREPRO_PERSON left join files on PREPRO_PERSON.FILE_ID = files.ID left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID "
+
"left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID "
+
"<where> "
+
"where 1=1 "
+
" 1=1"
+
" <where>"
+
"<if test='uploadNo != null '>"
+
" <if test='uploadNo != null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </if>"
+
"and PREPRO_PERSON.JMSFZSLH = #{uploadNo}"
+
" <if test='IDCard != null'> and GMSFHM = #{IDCard} </if> "
+
"</if>"
+
" <if test='oldFile != null'> and files.SOURCE_FILE_NAME =#{oldFile} </if> "
+
// "<if test='uploadNo != "''" '>"+
" <if test='newFile != null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </if> "
+
// "and PREPRO_PERSON.JMSFZSLH = #{uploadNo}"+
" <if test='SSXQDM != null'> and PREPRO_PERSON.SSXQDM =#{SSXQDM} </if> "
+
// "</if>"+
" <if test='cardType != null'> and PREPRO_PERSON.CARD_TYPE_ID =#{cardType} </if> "
+
" <if test='IDCard != null '> "
,
" <if test='state != null'> and PREPRO_PERSON.state = #{state} </if> "
+
"and GMSFHM = #{IDCard} "
,
" <if test='uploadDate != null'> and files.CREAT_TIME = #{uploadDate} </if> "
+
"</if> "
,
" </where>"
)
// " <if test='IDCard != '' '> ",
public
List
<
PreproPersonEntity
>
selectPreproPerson
(
@Param
(
"uploadNo"
)
String
uploadNo
,
@Param
(
"IDCard"
)
String
IDCard
,
@Param
(
"oldFile"
)
String
oldFile
,
@Param
(
"newFile"
)
String
newFile
,
@Param
(
"SSXQDM"
)
String
SSXQDM
,
@Param
(
"cardType"
)
String
cardType
,
@Param
(
"state"
)
String
state
,
@Param
(
"uploadDate"
)
String
uploadDate
);
// "and GMSFHM = #{IDCard} ",
// "</if> " ,
" <if test='oldFile != null '> "
,
"and files.SOURCE_FILE_NAME =#{oldFile} "
,
" </if> "
,
// " <if test='oldFile != '' '> ",
// "and files.SOURCE_FILE_NAME =#{oldFile} ",
// " </if> " ,
" <if test='newFile != null'> "
,
"and NEW_FILES.NEW_FILE_NAME = #{newFile}"
,
" </if> "
,
// " <if test='newFile != '' '> ",
// "and NEW_FILES.NEW_FILE_NAME = #{newFile}",
// " </if> " ,
" <if test='SSXQDM != null '> "
,
"and PREPRO_PERSON.SSXQDM =#{SSXQDM}"
,
" </if>"
,
// " <if test='SSXQDM != '' '> ",
// "and PREPRO_PERSON.SSXQDM =#{SSXQDM}",
// " </if> " ,
" <if test='cardType != null '>"
,
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"
,
" </if> "
,
// " <if test='cardType != '' '>",
// " and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}",
// " </if> " ,
" <if test='state != null'>"
,
" and PREPRO_PERSON.state = #{state}"
,
" </if> "
,
// " <if test='state != '' '>",
// " and PREPRO_PERSON.state = #{state}",
// " </if> " ,
" <if test='uploadDate != null '>"
,
" and files.CREAT_TIME = #{uploadDate}"
,
" </if> "
,
// " <if test='uploadDate != '' '>",
// " and files.CREAT_TIME = #{uploadDate}",
// " </if> ",
"</where>"
+
"</script>"
})
public
List
<
PreproPersonEntity
>
selectPreproPerson
(
@Param
(
"uploadNo"
)
String
uploadNo
,
@Param
(
"IDCard"
)
String
IDCard
,
@Param
(
"oldFile"
)
String
oldFile
,
@Param
(
"newFile"
)
String
newFile
,
@Param
(
"SSXQDM"
)
String
SSXQDM
,
@Param
(
"cardType"
)
long
cardType
,
@Param
(
"state"
)
String
state
,
@Param
(
"uploadDate"
)
String
uploadDate
);
/*修改标记制证数据状态*/
/*修改标记制证数据状态*/
@Update
(
"UPDATE PREPRO_PERSON SET STATE = #{state} WHERE JMSFZSLH=#{acceptNo}"
)
@Update
(
"UPDATE PREPRO_PERSON SET STATE = #{state} WHERE JMSFZSLH=#{acceptNo}"
)
...
...
src/main/java/com/yxproject/start/service/impl/PreproPersonServiceImpl.java
View file @
a079a3c4
...
@@ -24,7 +24,7 @@ public class PreproPersonServiceImpl implements PreproPersonService {
...
@@ -24,7 +24,7 @@ public class PreproPersonServiceImpl implements PreproPersonService {
}
}
@Override
@Override
public
List
<
PreproPersonEntity
>
selectPreproPerson
(
String
uploadNo
,
String
IDCard
,
String
oldFile
,
String
newFile
,
String
SSXQDM
,
String
cardType
,
String
state
,
String
uploadDate
)
{
public
List
<
PreproPersonEntity
>
selectPreproPerson
(
String
uploadNo
,
String
IDCard
,
String
oldFile
,
String
newFile
,
String
SSXQDM
,
String
cardType
,
String
state
,
String
uploadDate
)
{
List
<
PreproPersonEntity
>
preproPersonEntities
=
preproPersonMapper
.
selectPreproPerson
(
null
,
null
,
null
,
null
,
null
,
0
+
""
,
null
,
null
);
List
<
PreproPersonEntity
>
preproPersonEntities
=
preproPersonMapper
.
selectPreproPerson
(
""
,
""
,
""
,
""
,
""
,
0
,
""
,
""
);
return
preproPersonEntities
;
return
preproPersonEntities
;
}
}
}
}
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