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
27eb0673
Commit
27eb0673
authored
Mar 11, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
dfc3c02d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
33 deletions
+36
-33
PreproPersonMapper.java
...n/java/com/yxproject/start/mapper/PreproPersonMapper.java
+36
-33
No files found.
src/main/java/com/yxproject/start/mapper/PreproPersonMapper.java
View file @
27eb0673
...
...
@@ -25,61 +25,63 @@ public interface PreproPersonMapper {
/*按条件查询制证数据*/
@Select
({
"<script>"
+
"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 "
+
@Select
({
"<script>"
+
"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 "
+
"<where> "
+
" 1=1"
+
"<if test='uploadNo != null '>"
+
"and PREPRO_PERSON.JMSFZSLH = #{uploadNo}"
+
"</if>"
+
" <if test='IDCard != null '> "
,
"and GMSFHM = #{IDCard} "
,
"</if> "
,
" <if test='oldFile != null '> "
,
"and files.SOURCE_FILE_NAME =#{oldFile} "
,
" </if> "
,
" <if test='newFile != null'> "
,
"and NEW_FILES.NEW_FILE_NAME = #{newFile}"
,
" </if> "
,
" <if test='SSXQDM != null '> "
,
"and PREPRO_PERSON.SSXQDM =#{SSXQDM}"
,
" </if>"
,
" <if test='cardType != null '>"
,
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"
,
" </if> "
,
" <if test='state != null'>"
,
" and PREPRO_PERSON.state = #{state}"
,
" </if> "
,
" <if test='uploadDate != null '>"
,
" 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"
)
String
cardType
,
@Param
(
"state"
)
String
state
,
@Param
(
"uploadDate"
)
String
uploadDate
);
"<if test='uploadNo != null '>"
+
"and PREPRO_PERSON.JMSFZSLH = #{uploadNo}"
+
"</if>"
+
" <if test='IDCard != null '> "
,
"and GMSFHM = #{IDCard} "
,
"</if> "
,
" <if test='oldFile != null '> "
,
"and files.SOURCE_FILE_NAME =#{oldFile} "
,
" </if> "
,
" <if test='newFile != null'> "
,
"and NEW_FILES.NEW_FILE_NAME = #{newFile}"
,
" </if> "
,
" <if test='SSXQDM != null '> "
,
"and PREPRO_PERSON.SSXQDM =#{SSXQDM}"
,
" </if>"
,
" <if test='cardType != null '>"
,
" and PREPRO_PERSON.CARD_TYPE_ID =#{cardType}"
,
" </if> "
,
" <if test='state != null'>"
,
" and PREPRO_PERSON.state = #{state}"
,
" </if> "
,
" <if test='uploadDate != null '>"
,
" 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"
)
String
cardType
,
@Param
(
"state"
)
String
state
,
@Param
(
"uploadDate"
)
String
uploadDate
);
/*修改标记制证数据状态*/
@Update
(
"UPDATE PREPRO_PERSON SET STATE = #{state} WHERE JMSFZSLH=#{acceptNo}"
)
public
boolean
updateState
(
@Param
(
"state"
)
String
state
,
@Param
(
"acceptNo"
)
String
acceptNo
);
public
boolean
updateState
(
@Param
(
"state"
)
String
state
,
@Param
(
"acceptNo"
)
String
acceptNo
);
@Update
(
"UPDATE PREPRO_PERSON SET NEW_FILE_ID=#{newFileId} where JMSFZSLH=#{jmsfzslh}"
)
public
boolean
updateNewFileName
(
PreproPersonEntity
personEntity
);
public
boolean
updateNewFileName
(
PreproPersonEntity
personEntity
);
/**
* 更新制证数据是否有效
*
* @param personEntity
* @return
*/
@Update
(
"UPDATE PREPRO_PERSON SET IS_VALID=#{isValid} where JMSFZSLH=#{jmsfzslh}"
)
public
boolean
updatePreproPersonIsValid
(
PreproPersonEntity
personEntity
);
public
boolean
updatePreproPersonIsValid
(
PreproPersonEntity
personEntity
);
/**
* 查询制证信息的上传受理号
* 受理库和制证库
*
* @param acceptNo 受理组号
* @return
*/
@Select
(
"select UPLOAD_NO,ACCEPT_NO from ACC_CARD_T@ACCU_LINK WHERE ACCEPT_NO =#{acceptNo}\n"
+
"UNION all \n"
+
"select UPLOAD_NO,ACCEPT_NO from PROD_CARD_T@PROD_LINK WHERE ACCEPT_NO =#{acceptNo}"
)
public
List
<
Map
<
String
,
Object
>>
selectUploadNoByAcceptNo
(
String
acceptNo
);
public
List
<
Map
<
String
,
Object
>>
selectUploadNoByAcceptNo
(
String
acceptNo
);
}
\ No newline at end of file
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