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
eadfbad2
Commit
eadfbad2
authored
Mar 12, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2dd0cf9d
f4e39365
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
118 additions
and
18 deletions
+118
-18
InfoManagementApi.java
src/main/java/com/yxproject/start/api/InfoManagementApi.java
+3
-2
ReceiptApi.java
src/main/java/com/yxproject/start/api/ReceiptApi.java
+38
-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
service.js
src/main/resources/static/js/service.js
+12
-0
tagPrint.html
src/main/resources/static/views/tagPrint/tagPrint.html
+15
-3
tagPrint.js
src/main/resources/static/views/tagPrint/tagPrint.js
+24
-2
No files found.
src/main/java/com/yxproject/start/api/InfoManagementApi.java
View file @
eadfbad2
...
@@ -62,8 +62,9 @@ public class InfoManagementApi {
...
@@ -62,8 +62,9 @@ public class InfoManagementApi {
@RequestMapping
(
"deleteInfo"
)
@RequestMapping
(
"deleteInfo"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@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
){
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 @
eadfbad2
package
com
.
yxproject
.
start
.
api
;
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
com.yxproject.start.service.ReceiptService
;
import
com.yxproject.start.service.ReceiptService
;
import
net.sf.json.JSONArray
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.omg.CORBA.PUBLIC_MEMBER
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.text.ParseException
;
import
java.text.ParseException
;
...
@@ -209,6 +210,40 @@ public class ReceiptApi {
...
@@ -209,6 +210,40 @@ public class ReceiptApi {
}
}
/**
* 根据受理号查询详单信息
* @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 jsonStr
* @return
*/
@RequestMapping
(
"updateDetailNote"
)
public
boolean
updateDetailNote
(
@RequestBody
String
jsonStr
){
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
jsonStr
);
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
Map
<
String
,
Object
>
resultMap
=
(
Map
<
String
,
Object
>)
jsonArray
.
get
(
i
);
receiptService
.
updateDetail
(
resultMap
.
get
(
"acceptNo"
).
toString
(),
resultMap
.
get
(
"note"
).
toString
());
}
return
true
;
}
/**
/**
* 生成交接单
* 生成交接单
* @param receiptId
* @param receiptId
...
...
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
eadfbad2
package
com
.
yxproject
.
start
.
mapper
;
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
org.apache.ibatis.annotations.*
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -111,14 +112,6 @@ public interface ReceiptMapper {
...
@@ -111,14 +112,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"
+
@Select
(
"select \n"
+
"count(prod_trace_t.download_no)as download,\n"
+
"count(prod_trace_t.download_no)as download,\n"
+
"count(prod_trace_t.checker_no) as checkerCount,\n"
+
"count(prod_trace_t.checker_no) as checkerCount,\n"
+
...
@@ -145,4 +138,11 @@ public interface ReceiptMapper {
...
@@ -145,4 +138,11 @@ public interface ReceiptMapper {
public
List
<
Map
<
String
,
Object
>>
selectReceiptDateByCheckDate
(
@Param
(
"date"
)
String
date
);
public
List
<
Map
<
String
,
Object
>>
selectReceiptDateByCheckDate
(
@Param
(
"date"
)
String
date
);
@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 @
eadfbad2
package
com
.
yxproject
.
start
.
service
;
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -57,4 +58,8 @@ public interface ReceiptService {
...
@@ -57,4 +58,8 @@ public interface ReceiptService {
public
Map
<
String
,
Object
>
selectTimes
(
String
groupNo
);
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 @
eadfbad2
package
com
.
yxproject
.
start
.
service
.
impl
;
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.DetailReceiptListEntity
;
import
com.yxproject.start.mapper.ReceiptMapper
;
import
com.yxproject.start.mapper.ReceiptMapper
;
import
com.yxproject.start.service.ReceiptService
;
import
com.yxproject.start.service.ReceiptService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -133,6 +134,18 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -133,6 +134,18 @@ public class ReceiptServiceImpl implements ReceiptService {
return
maps
;
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
;
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
selectReceiptDateByCheckDate
(
String
date
)
{
public
List
<
Map
<
String
,
Object
>>
selectReceiptDateByCheckDate
(
String
date
)
{
List
<
Map
<
String
,
Object
>>
mapList
=
receiptMapper
.
selectReceiptDateByCheckDate
(
date
);
List
<
Map
<
String
,
Object
>>
mapList
=
receiptMapper
.
selectReceiptDateByCheckDate
(
date
);
...
...
src/main/resources/static/js/service.js
View file @
eadfbad2
...
@@ -334,6 +334,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -334,6 +334,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
updateReceiptList
:
function
(
id
,
success
)
{
$http
({
method
:
'GET'
,
url
:
"../LogApi/selectNewFileLogCount"
+
urlTimeStamp
(),
params
:{
receiptId
:
id
,
checkName
:
$rootScope
.
loginData
.
name
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
selectAnalyseLogCount
:
function
(
oldPackageName
,
date
,
success
)
{
selectAnalyseLogCount
:
function
(
oldPackageName
,
date
,
success
)
{
if
(
angular
.
isUndefined
(
oldPackageName
)){
if
(
angular
.
isUndefined
(
oldPackageName
)){
oldPackageName
=
''
;
oldPackageName
=
''
;
...
...
src/main/resources/static/views/tagPrint/tagPrint.html
View file @
eadfbad2
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</table>
</table>
<div
class=
"box-footer clearfix"
style=
"border: 0;"
>
<div
class=
"box-footer clearfix"
style=
"border: 0;"
>
<button
class=
"btn btn-success pull-right"
style=
"margin-right: 20px;"
ng-click=
"checkSame(json.id)"
>
复核一致
</button>
<button
class=
"btn btn-success pull-right"
style=
"margin-right: 20px;"
ng-click=
"checkSame(json.id)"
>
复核一致
</button>
<button
class=
"btn btn-info pull-right"
style=
"margin-right: 20px;"
>
打印标签
</button>
<button
class=
"btn btn-info pull-right"
style=
"margin-right: 20px;"
ng-click=
"PreviewMytableRotate()"
>
打印标签
</button>
</div>
</div>
</div>
</div>
<h4
class=
"col-md-7"
ng-if=
"json.policeCardsList.length==0"
>
<h4
class=
"col-md-7"
ng-if=
"json.policeCardsList.length==0"
>
...
@@ -119,4 +119,16 @@
...
@@ -119,4 +119,16 @@
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
\ No newline at end of file
<div
style=
"display: none;"
>
<div
id=
"div1"
>
<p>
<object
id=
"LODOP_OB"
classid=
"clsid:2105C259-1E0C-4534-8141-A753534CB4CA"
width=
0
height=
0
>
<embed
id=
"LODOP_EM"
type=
"application/x-print-lodop"
width=
0
height=
0
pluginspage=
"install_lodop32.exe"
></embed>
</object>
</p>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:5mm;left:5mm;"
>
密云分局
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:12mm;left:3mm;"
>
河南寨派出所
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:20mm;left:5mm;"
>
数量:1张
</div>
</div>
</div>
\ No newline at end of file
src/main/resources/static/views/tagPrint/tagPrint.js
View file @
eadfbad2
...
@@ -61,9 +61,31 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
...
@@ -61,9 +61,31 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
})
})
}
}
$scope
.
checkSame
=
function
()
{
$scope
.
checkSame
=
function
(
id
)
{
HttpService
.
updateReceiptList
(
id
,
function
(
data
)
{
if
(
data
){
getPoliceListDataNotChecked
();
}
else
{
MessageService
.
showAlert
(
"复核失败"
)
}
})
}
}
$scope
.
PreviewMytableRotate
=
function
(){
var
LODOP
=
getLodop
();
LODOP
.
SET_LICENSES
(
""
,
"15F0BE661E7F32F37491843CB2510905"
,
"C94CEE276DB2187AE6B65D56B3FC2848"
,
""
);
LODOP
.
SET_PRINT_STYLE
(
"FontName"
,
"黑体"
);
LODOP
.
PRINT_INIT
(
"标签"
);
LODOP
.
SET_PRINT_PAGESIZE
(
1
,
"70mm"
,
"40mm"
,
""
);
LODOP
=
getLodop
(
document
.
getElementById
(
'LODOP1'
),
document
.
getElementById
(
'LODOP_EM'
));
LODOP
.
SET_PRINT_STYLE
(
"FontName"
,
"黑体"
);
LODOP
.
ADD_PRINT_BARCODE
(
7
,
20
,
242
,
60
,
"128A"
,
"E1006155001"
);
LODOP
.
ADD_PRINT_HTM
(
60
,
80
,
300
,
300
,
document
.
getElementById
(
"div1"
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"AngleOfPageInside"
,
0
);
LODOP
.
PREVIEW
();
// LODOP.PRINT();
};
});
});
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