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
a097571e
Commit
a097571e
authored
Mar 11, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
95991ced
b48ebe2b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
39 deletions
+66
-39
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+21
-0
ReceiptListMapper.java
...in/java/com/yxproject/start/mapper/ReceiptListMapper.java
+0
-11
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+19
-4
ReceiptListService.java
.../java/com/yxproject/start/service/ReceiptListService.java
+0
-8
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+7
-0
ReceiptListServiceImpl.java
.../yxproject/start/service/impl/ReceiptListServiceImpl.java
+0
-16
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+19
-0
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
a097571e
...
...
@@ -3,8 +3,11 @@ package com.yxproject.start.api;
import
com.yxproject.start.service.ReceiptService
;
import
org.apache.ibatis.annotations.Param
;
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.RestController
;
import
java.util.List
;
import
java.util.Map
;
@RestController
...
...
@@ -22,6 +25,7 @@ public class ReceiptApi {
* @return
*/
@RequestMapping
(
"createReceiptList"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
createReceiptList
(
@Param
(
"id"
)
String
id
)
{
//判断是否是特证
...
...
@@ -81,4 +85,21 @@ public class ReceiptApi {
}
return
true
;
}
@RequestMapping
(
"selectReceipt"
)
public
Map
<
String
,
Object
>
selectReceipt
(
String
id
){
Map
<
String
,
Object
>
resultMap
=
receiptService
.
selectReceiptListOfSpecialCard
(
id
);
if
(
resultMap
==
null
){
resultMap
=
receiptService
.
selectReceiptList
(
id
);
}
return
resultMap
;
}
@RequestMapping
(
"selectDetailList"
)
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
String
receiptId
){
List
<
Map
<
String
,
Object
>>
resultList
=
receiptService
.
selectDetailList
(
receiptId
);
return
resultList
;
}
}
src/main/java/com/yxproject/start/mapper/ReceiptListMapper.java
deleted
100644 → 0
View file @
95991ced
package
com
.
yxproject
.
start
.
mapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @auther zhangyusheng
* 2019/3/1 21:41
*/
@Mapper
public
interface
ReceiptListMapper
{
}
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
a097571e
...
...
@@ -2,14 +2,12 @@ package com.yxproject.start.mapper;
import
org.apache.ibatis.annotations.*
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
public
interface
ReceiptMapper
{
//根据身份证号查询交接单信息
@Select
(
"select prod_group_t.group_no,prod_card_t.accept_no,subStr(prod_card_t.UPLOAD_NO,0,9) as GAJG_DM,prod_group_t.valid_count\n"
+
"from prod_card_t@PROD_LINK\n"
+
...
...
@@ -56,7 +54,7 @@ public interface ReceiptMapper {
"WHERE QR_CODE=#{GROUP_NO})-#{COUNT})"
)
public
boolean
detailedTallyDown
(
int
COUNT
,
String
GROUP_NO
);
//根据身份证号查询特证表
//根据身份证号查询特证表
count
@Select
(
"select count(*) from SPECIAL_CARD \n"
+
"left join prod_card_t@prod_link on special_card.accept_no = prod_card_t.accept_no\n"
+
"where prod_card_t.id_no = #{id}"
)
...
...
@@ -64,6 +62,23 @@ public interface ReceiptMapper {
//根据身份证号查询特证交接单
@Select
(
"SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n"
+
"LEFT JOIN PROD_CARD_T@PROD_LINK ON PROD_CARD_T.ACCEPT_NO =RECEIPT_LIST.QR_CODE\n"
+
"WHERE PROD_CARD_T.ID_NO =#{id}"
)
public
Map
<
String
,
Object
>
selectReceiptListOfSpecialCard
(
String
id
);
//根据身份证号查询普通证交接单
@Select
(
"SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n"
+
"LEFT JOIN PROD_CARD_T@PROD_LINK ON subStr(PROD_CARD_T.ACCEPT_NO,0,8) =RECEIPT_LIST.QR_CODE\n"
+
"WHERE PROD_CARD_T.ID_NO =#{id}"
)
public
Map
<
String
,
Object
>
selectReceiptList
(
String
id
);
//根据交接单号查详单信息
@Select
(
"select * from detail_receipt_list where receipt=#{RECEIPT_ID}"
)
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
String
receiptId
);
...
...
src/main/java/com/yxproject/start/service/ReceiptListService.java
deleted
100644 → 0
View file @
95991ced
package
com
.
yxproject
.
start
.
service
;
/**
* @auther zhangyusheng
* 2019/3/1 21:41
*/
public
interface
ReceiptListService
{
}
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
a097571e
...
...
@@ -2,6 +2,7 @@ package com.yxproject.start.service;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
public
interface
ReceiptService
{
...
...
@@ -21,4 +22,10 @@ public interface ReceiptService {
public
int
selectByGroupNo
(
String
groupNo
);
public
int
selectSpecialCardByAcceptNo
(
String
id
);
public
Map
<
String
,
Object
>
selectReceiptListOfSpecialCard
(
String
id
);
public
Map
<
String
,
Object
>
selectReceiptList
(
String
id
);
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
String
receiptId
);
}
src/main/java/com/yxproject/start/service/impl/ReceiptListServiceImpl.java
deleted
100644 → 0
View file @
95991ced
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.mapper.ReceiptListMapper
;
import
com.yxproject.start.service.ReceiptListService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* @auther zhangyusheng
* 2019/3/1 21:42
*/
@Service
public
class
ReceiptListServiceImpl
implements
ReceiptListService
{
@Autowired
private
ReceiptListMapper
receiptListMapper
;
}
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
a097571e
...
...
@@ -5,6 +5,7 @@ import com.yxproject.start.service.ReceiptService;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
@Service
...
...
@@ -60,5 +61,23 @@ public class ReceiptServiceImpl implements ReceiptService {
return
countSpecial
;
}
@Override
public
Map
<
String
,
Object
>
selectReceiptListOfSpecialCard
(
String
id
)
{
Map
<
String
,
Object
>
resultMap
=
receiptMapper
.
selectReceiptListOfSpecialCard
(
id
);
return
resultMap
;
}
@Override
public
Map
<
String
,
Object
>
selectReceiptList
(
String
id
)
{
Map
<
String
,
Object
>
resultMap
=
receiptMapper
.
selectReceiptList
(
id
);
return
resultMap
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
String
receiptId
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
receiptMapper
.
selectDetailList
(
receiptId
);
return
resultList
;
}
}
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