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
f97ca76b
Commit
f97ca76b
authored
Jun 19, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提前领取登记 添加登记时间、登记人姓名
添加查询提前领取登记记录
parent
b7e30dfd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
6 deletions
+35
-6
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+12
-1
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+11
-2
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+3
-1
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+9
-2
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
f97ca76b
...
...
@@ -356,7 +356,7 @@ public class ReceiptApi {
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
Map
<
String
,
Object
>
resultMap
=
(
Map
<
String
,
Object
>)
jsonArray
.
get
(
i
);
receiptService
.
updateDetail
(
formateAcceptNo
(
resultMap
.
get
(
"acceptNo"
).
toString
()),
resultMap
.
get
(
"note"
).
toString
());
receiptService
.
updateDetail
(
formateAcceptNo
(
resultMap
.
get
(
"acceptNo"
).
toString
()),
resultMap
.
get
(
"note"
).
toString
()
,
resultMap
.
get
(
"name"
).
toString
()
);
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"备注信息:"
+
jsonStr
);
...
...
@@ -365,6 +365,17 @@ public class ReceiptApi {
return
true
;
}
/**
* 查询提前领取登记记录
*
* @return
*/
@RequestMapping
(
"queryDetailNote"
)
public
List
<
DetailReceiptListEntity
>
queryDetailNote
(
@RequestParam
(
"startDate"
)
String
startDate
,
@RequestParam
(
"endDate"
)
String
endDate
,
@RequestParam
(
"name"
)
String
name
)
{
List
<
DetailReceiptListEntity
>
detailReceiptListEntityList
=
receiptService
.
selectDetailNote
(
replaceDate
(
startDate
),
replaceDate
(
endDate
),
replaceNullString
(
name
));
return
detailReceiptListEntityList
;
}
/**
* 生成交接单
...
...
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
f97ca76b
...
...
@@ -232,8 +232,8 @@ public interface ReceiptMapper {
public
DetailReceiptListEntity
selectDetailByAcceptNo
(
@Param
(
"acceptNo"
)
String
acceptNo
);
@Update
(
"update DETAIL_RECEIPT_LIST set NOTE = #{note} WHERE ACCEPT_NO=#{acceptNo} or CARD_ID= #{acceptNo}"
)
public
boolean
updateDetail
(
@Param
(
"acceptNo"
)
String
accept
,
@Param
(
"note"
)
String
note
);
@Update
(
"update DETAIL_RECEIPT_LIST set NOTE = #{note}
,submit_date = sysdate,submit_name = #{name}
WHERE ACCEPT_NO=#{acceptNo} or CARD_ID= #{acceptNo}"
)
public
boolean
updateDetail
(
@Param
(
"acceptNo"
)
String
accept
,
@Param
(
"note"
)
String
note
,
@Param
(
"name"
)
String
name
);
/**
* 更新交接单是否已打印
...
...
@@ -269,4 +269,13 @@ public interface ReceiptMapper {
"where to_char(DOWNLOAD_DATE,'yyyyMMdd') BETWEEN #{startDate} and #{endDate}"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceDataByDownLoadDate
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Select
(
"<script> select * from DETAIL_RECEIPT_LIST "
+
"where to_char(SUBMIT_DATE,'yyyyMMdd') between #{startDate} and #{endDate} "
+
"<if test = 'name != null'> "
+
" and SUBMIT_NAME = #{name} "
+
" </if>"
+
"</script>"
)
public
List
<
DetailReceiptListEntity
>
selectDetailNote
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"name"
)
String
name
);
}
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
f97ca76b
...
...
@@ -62,7 +62,9 @@ public interface ReceiptService {
public
DetailReceiptListEntity
selectDetailByAcceptNo
(
String
acceptNo
);
public
boolean
updateDetail
(
String
accept
,
String
note
);
public
boolean
updateDetail
(
String
accept
,
String
note
,
String
name
);
public
List
<
DetailReceiptListEntity
>
selectDetailNote
(
String
startDate
,
String
endDate
,
String
name
);
public
Map
<
String
,
Object
>
selectReceiptList
(
List
<
Integer
>
stringList
,
long
typeCode
);
...
...
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
f97ca76b
...
...
@@ -143,9 +143,9 @@ public class ReceiptServiceImpl implements ReceiptService {
}
@Override
public
boolean
updateDetail
(
String
accept
,
String
not
e
)
{
public
boolean
updateDetail
(
String
accept
,
String
note
,
String
nam
e
)
{
return
receiptMapper
.
updateDetail
(
accept
,
note
);
return
receiptMapper
.
updateDetail
(
accept
,
note
,
name
);
}
@Override
...
...
@@ -341,6 +341,13 @@ public class ReceiptServiceImpl implements ReceiptService {
}
@Override
public
List
<
DetailReceiptListEntity
>
selectDetailNote
(
String
startDate
,
String
endDate
,
String
name
)
{
List
<
DetailReceiptListEntity
>
detailReceiptListEntityList
=
receiptMapper
.
selectDetailNote
(
startDate
,
endDate
,
name
);
return
detailReceiptListEntityList
;
}
private
List
<
Map
<
String
,
Object
>>
formateMap
(
List
<
Map
<
String
,
Object
>>
maplist
)
{
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
for
(
Map
o
:
maplist
)
{
...
...
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