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
2b0ed62f
Commit
2b0ed62f
authored
Mar 12, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加交接单详单备注
parent
3da5d992
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
13 deletions
+62
-13
InfoManagementApi.java
src/main/java/com/yxproject/start/api/InfoManagementApi.java
+3
-2
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+33
-3
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+8
-8
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+5
-0
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+13
-0
No files found.
src/main/java/com/yxproject/start/api/InfoManagementApi.java
View file @
2b0ed62f
...
...
@@ -62,8 +62,9 @@ public class InfoManagementApi {
@RequestMapping
(
"deleteInfo"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
deleteInfo
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
){
boolean
result
=
infoManagementService
.
deleteInfo
(
beginFileName
,
endFileName
,
gajgMc
,
replaceDate
(
beginDate
),
replaceDate
(
endDate
));
return
result
;
boolean
result
=
infoManagementService
.
deleteInfo
(
beginFileName
,
endFileName
,
gajgMc
,
replaceDate
(
beginDate
),
replaceDate
(
endDate
));
return
result
;
}
/**
...
...
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
2b0ed62f
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
com.yxproject.start.service.ReceiptService
;
import
net.sf.json.JSONArray
;
import
org.apache.ibatis.annotations.Param
;
import
org.omg.CORBA.PUBLIC_MEMBER
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
java.math.BigDecimal
;
import
java.text.ParseException
;
...
...
@@ -208,4 +209,33 @@ public class ReceiptApi {
return
true
;
}
/**
* 根据受理号查询详单信息
* @param jsonStr
* @return
*/
@RequestMapping
(
"selectDetailByAcceptNo"
)
public
List
<
DetailReceiptListEntity
>
selectDetailByAcceptNo
(
@RequestBody
String
jsonStr
){
JSONArray
jsonarray
=
JSONArray
.
fromObject
(
jsonStr
);
List
<
DetailReceiptListEntity
>
resultList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
jsonarray
.
size
();
i
++){
DetailReceiptListEntity
detailReceiptListEntity
=
receiptService
.
selectDetailByAcceptNo
((
String
)
jsonarray
.
get
(
i
));
resultList
.
add
(
detailReceiptListEntity
);
}
return
resultList
;
}
/**
* 更改备注信息
* @param acceptNo
* @param note
* @return
*/
@RequestMapping
(
"updateDetailNote"
)
public
boolean
updateDetailNote
(
@RequestParam
(
"acceptNo"
)
String
acceptNo
,
@RequestParam
(
"note"
)
String
note
){
receiptService
.
updateDetail
(
acceptNo
,
note
);
return
true
;
}
}
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
2b0ed62f
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Date
;
...
...
@@ -109,14 +110,6 @@ public interface ReceiptMapper {
//复核一致,按交接单编号查询证件数量
@Select
(
"select FINISH_COUNT from RECEIPT_LIST WHERE ID=#{receiptId}"
)
public
int
selectCountByReceiptId
(
@Param
(
"receiptId"
)
String
receiptId
);
//符合一致,按交接单编号查询详单库数量
public
int
selectDetailCountByReceiptId
(
@Param
(
"receiptId"
)
String
receiptId
);
@Select
(
"select \n"
+
"count(prod_trace_t.download_no)as download,\n"
+
"count(prod_trace_t.checker_no) as checkerCount,\n"
+
...
...
@@ -134,4 +127,11 @@ public interface ReceiptMapper {
public
Map
<
String
,
Object
>
selectTimes
(
@Param
(
"groupNo"
)
String
groupNo
);
@Select
(
"select * from DETAIL_RECEIPT_LIST where ACCEPT_NO=#{acceptNo} or card_id=#{acceptNo}"
)
public
DetailReceiptListEntity
selectDetailByAcceptNo
(
@Param
(
"acceptNo"
)
String
acceptNo
);
@Update
(
"update DETAIL_RECEIPT_LIST set NOTE = #{note} WHERE ACCEPT_NO=#{acceptNo}"
)
public
boolean
updateDetail
(
@Param
(
"acceptNo"
)
String
accept
,
@Param
(
"note"
)
String
note
);
}
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
2b0ed62f
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Date
;
...
...
@@ -53,4 +54,8 @@ public interface ReceiptService {
public
Map
<
String
,
Object
>
selectTimes
(
String
groupNo
);
public
DetailReceiptListEntity
selectDetailByAcceptNo
(
@Param
(
"acceptNo"
)
String
acceptNo
);
public
boolean
updateDetail
(
@Param
(
"acceptNo"
)
String
accept
,
@Param
(
"note"
)
String
note
);
}
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
2b0ed62f
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
com.yxproject.start.mapper.ReceiptMapper
;
import
com.yxproject.start.service.ReceiptService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -129,4 +130,16 @@ public class ReceiptServiceImpl implements ReceiptService {
Map
<
String
,
Object
>
maps
=
receiptMapper
.
selectTimes
(
groupNo
);
return
maps
;
}
@Override
public
DetailReceiptListEntity
selectDetailByAcceptNo
(
String
acceptNo
)
{
DetailReceiptListEntity
detailReceiptListEntity
=
receiptMapper
.
selectDetailByAcceptNo
(
acceptNo
);
return
detailReceiptListEntity
;
}
@Override
public
boolean
updateDetail
(
String
accept
,
String
note
)
{
receiptMapper
.
updateDetail
(
accept
,
note
);
return
false
;
}
}
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