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
220e4483
Commit
220e4483
authored
Mar 12, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交接单修改3.0
parent
90c70513
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
5 deletions
+97
-5
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+0
-0
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+41
-3
ReceiptService.java
...main/java/com/yxproject/start/service/ReceiptService.java
+21
-1
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+35
-1
No files found.
src/main/java/com/yxproject/start/api/ReceiptApi.java
View file @
220e4483
This diff is collapsed.
Click to expand it.
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
220e4483
...
@@ -65,11 +65,10 @@ public interface ReceiptMapper {
...
@@ -65,11 +65,10 @@ public interface ReceiptMapper {
//
根据身份证号查询特证
交接单
//
查询未复核
交接单
@Select
(
"SELECT RECEIPT_LIST.* FROM RECEIPT_LIST where state=0\n"
)
@Select
(
"SELECT RECEIPT_LIST.* FROM RECEIPT_LIST where state=0\n"
)
public
List
<
Map
<
String
,
Object
>>
selectReceiptListOfSpecialCard
();
public
List
<
Map
<
String
,
Object
>>
selectReceiptListOfSpecialCard
();
//根据身份证号查询普通证交接单
//根据身份证号查询普通证交接单
@Select
(
"SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n"
+
@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"
+
"LEFT JOIN PROD_CARD_T@PROD_LINK ON subStr(PROD_CARD_T.ACCEPT_NO,0,8) =RECEIPT_LIST.QR_CODE\n"
+
...
@@ -87,9 +86,48 @@ public interface ReceiptMapper {
...
@@ -87,9 +86,48 @@ public interface ReceiptMapper {
"check_date = #{date},\n"
+
"check_date = #{date},\n"
+
"check_name=#{checkName} \n"
+
"check_name=#{checkName} \n"
+
"where id=#{receiptId}"
)
"where id=#{receiptId}"
)
public
boolean
updateReceiptList
(
int
receiptId
,
String
checkName
,
Date
date
);
public
boolean
updateReceiptList
(
String
receiptId
,
String
checkName
,
Date
date
);
//根据输入id查询交接单是否生成
@Select
(
"select count(*) from RECEIPT_LIST where QR_CODE=(select accept_no from prod_card_t@prod_link where id_no=#{id})"
)
public
int
selectCountById
(
@Param
(
"id"
)
String
id
);
//根据输入id查询是否生成详单
@Select
(
"select count(*) from DETAIL_RECEIPT_LIST where ACCEPT_NO=(select accept_no from prod_card_t@prod_link where id_no=#{id})"
)
public
int
selectReceiptById
(
@Param
(
"id"
)
String
id
);
//复核一致,按交接单编号查询证件数量
@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 RECEIPT_LIST.*FROM RECEIPT_LIST where state=0;\n"
+
"select \n"
+
"count(prod_trace_t.download_no)as download,\n"
+
"count(prod_trace_t.checker_no) as checkerCount,\n"
+
"count(prod_trace_t.ELECTRIC_WRITER_NO)as electricCount\n"
+
"from prod_trace_t@PROD_LINK \n"
+
"WHERE subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}"
)
public
Map
<
String
,
Object
>
selectCountTime
(
String
groupNo
);
@Select
(
"SELECT RECEIPT_LIST.*FROM RECEIPT_LIST where state=0;\n"
+
"select \n"
+
"prod_trace_t.DOWNLOAD_DATE as downloadDate,\n"
+
"prod_trace_t.CHECK_DATE as checkDate,\n"
+
"prod_trace_t.ELECTRIC_WRITE_DATE as electricDate\n"
+
"from prod_trace_t@PROD_LINK \n"
+
"WHERE subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}"
)
public
Map
<
String
,
Object
>
selectTimes
(
String
groupNo
);
}
}
src/main/java/com/yxproject/start/service/ReceiptService.java
View file @
220e4483
...
@@ -28,9 +28,29 @@ public interface ReceiptService {
...
@@ -28,9 +28,29 @@ public interface ReceiptService {
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
String
receiptId
);
public
List
<
Map
<
String
,
Object
>>
selectDetailList
(
String
receiptId
);
public
boolean
updateReceiptList
(
int
receiptId
,
String
checkName
,
Date
date
);
public
boolean
updateReceiptList
(
String
receiptId
,
String
checkName
,
Date
date
);
public
int
selectCount
(
String
GROUP_NO
);
public
int
selectCount
(
String
GROUP_NO
);
public
boolean
updateFinishCount
(
String
GROUP_NO
,
int
count
);
public
boolean
updateFinishCount
(
String
GROUP_NO
,
int
count
);
//特证查询是否生成交接单
public
int
selectCountById
(
@Param
(
"id"
)
String
id
);
//查询是否已生成交接单详单
public
int
selectReceiptById
(
@Param
(
"id"
)
String
id
);
//复核一致,按交接单编号查询证件数量
public
int
selectCountByReceiptId
(
@Param
(
"receiptId"
)
String
receiptId
);
//符合一致,按交接单编号查询详单库数量
public
int
selectDetailCountByReceiptId
(
@Param
(
"receiptId"
)
String
receiptId
);
public
Map
<
String
,
Object
>
selectCountTime
(
String
groupNo
);
public
Map
<
String
,
Object
>
selectTimes
(
String
groupNo
);
}
}
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
220e4483
...
@@ -77,7 +77,7 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -77,7 +77,7 @@ public class ReceiptServiceImpl implements ReceiptService {
}
}
@Override
@Override
public
boolean
updateReceiptList
(
int
receiptId
,
String
checkName
,
Date
date
)
{
public
boolean
updateReceiptList
(
String
receiptId
,
String
checkName
,
Date
date
)
{
receiptMapper
.
updateReceiptList
(
receiptId
,
checkName
,
date
);
receiptMapper
.
updateReceiptList
(
receiptId
,
checkName
,
date
);
return
true
;
return
true
;
}
}
...
@@ -94,5 +94,39 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -94,5 +94,39 @@ public class ReceiptServiceImpl implements ReceiptService {
return
true
;
return
true
;
}
}
@Override
public
int
selectCountById
(
String
id
)
{
int
countAccept
=
receiptMapper
.
selectCountById
(
id
);
return
countAccept
;
}
@Override
public
int
selectReceiptById
(
String
id
)
{
int
receiptCount
=
receiptMapper
.
selectReceiptById
(
id
);
return
receiptCount
;
}
@Override
public
int
selectCountByReceiptId
(
String
receiptId
)
{
int
finishCount
=
selectCountByReceiptId
(
receiptId
);
return
finishCount
;
}
@Override
public
int
selectDetailCountByReceiptId
(
String
receiptId
)
{
int
detailCount
=
selectDetailCountByReceiptId
(
receiptId
);
return
detailCount
;
}
@Override
public
Map
<
String
,
Object
>
selectCountTime
(
String
groupNo
)
{
Map
<
String
,
Object
>
maps
=
receiptMapper
.
selectCountTime
(
groupNo
);
return
maps
;
}
@Override
public
Map
<
String
,
Object
>
selectTimes
(
String
groupNo
)
{
Map
<
String
,
Object
>
maps
=
receiptMapper
.
selectTimes
(
groupNo
);
return
maps
;
}
}
}
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