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
413f81e2
Commit
413f81e2
authored
Mar 19, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加更新交接单已打印状态
parent
0c801cd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
ExportExcelApi.java
src/main/java/com/yxproject/start/api/ExportExcelApi.java
+1
-2
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+11
-1
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+2
-0
No files found.
src/main/java/com/yxproject/start/api/ExportExcelApi.java
View file @
413f81e2
...
...
@@ -134,9 +134,8 @@ public class ExportExcelApi {
fis
.
read
(
b
);
fis
.
close
();
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setContentType
(
"
APPLICATION/OCTET-STREAM
"
);
response
.
setContentType
(
"
application/octet-stream
"
);
response
.
addHeader
(
"Content-Disposition"
,
"attachment;"
+
new
String
(
outFile
.
getBytes
(),
"iso-8859-1"
)
+
".xls"
);
//
return
b
;
}
catch
(
FileNotFoundException
e
)
{
e
.
printStackTrace
();
...
...
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
413f81e2
...
...
@@ -186,7 +186,7 @@ public interface ReceiptMapper {
@Select
(
"select RECEIPT_LIST.id,RECEIPT_LIST.QR_CODE,RECEIPT_LIST.RECEIPT_DATE,RECEIPT_LIST.POLICE_CODE,decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID) CARD_TYPE_ID,\n"
+
"RECEIPT_LIST.FINISH_COUNT,GAJG_DM.GAJG_DM,GAJG_DM.GAJG_MC,RECEIPT_LIST.CHECK_DATE,RECEIPT_LIST.CHECK_NAME\n"
+
",CARD_TYPE_DIC.CARD_TYPE,COUNTY_DIC.COUNTY_CODE ,COUNTY_DIC.COUNTYNAME from RECEIPT_LIST \n"
+
",CARD_TYPE_DIC.CARD_TYPE,COUNTY_DIC.COUNTY_CODE ,COUNTY_DIC.COUNTYNAME
,RECEIPT_LIST.state,RECEIPT_LIST.IS_PRINT
from RECEIPT_LIST \n"
+
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)\n"
+
"left join GAJG_DM on GAJG_DM.GAJG_DM = RECEIPT_LIST.POLICE_CODE\n"
+
"left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE"
+
...
...
@@ -210,6 +210,16 @@ public interface ReceiptMapper {
@Update
(
"update DETAIL_RECEIPT_LIST set NOTE = #{note} WHERE ACCEPT_NO=#{acceptNo}"
)
public
boolean
updateDetail
(
@Param
(
"acceptNo"
)
String
accept
,
@Param
(
"note"
)
String
note
);
/**
* 更新交接单是否已打印
* @param date 查询时间
* @param string 派出所代码
* @param type 制证类型
* @return
*/
@Update
(
"update RECEIPT_LIST set IS_PRINT = 1 where to_char(CHECK_DATE,'yyyyMMdd') = ${date} and RECEIPT_LIST.POLICE_CODE in (${string}) and CARD_TYPE_ID=${type}"
)
public
boolean
updateReceiptDate
(
@Param
(
"date"
)
String
date
,
@Param
(
"string"
)
String
string
,
@Param
(
"type"
)
long
type
);
...
...
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
413f81e2
...
...
@@ -164,6 +164,8 @@ public class ReceiptServiceImpl implements ReceiptService {
str
+=
"'"
+
stringList
.
get
(
i
)+
"',"
;
}
}
//更改交接单已打印状态
boolean
b
=
receiptMapper
.
updateReceiptDate
(
date
,
str
,
typeCode
);
return
receiptMapper
.
selectReceiptDate
(
date
,
str
,
typeCode
);
}
...
...
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