Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
njzsb
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
徐州
njzsb
Commits
42a68fd0
Commit
42a68fd0
authored
Dec 15, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字符编码
parent
f873629b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
system.properties
conf/system.properties
+2
-4
FsRequest.java
src/com/jshx/fstzs/fsutil/FsRequest.java
+8
-1
FstzsAction.java
src/com/jshx/fstzs/web/FstzsAction.java
+1
-4
No files found.
conf/system.properties
View file @
42a68fd0
...
@@ -123,11 +123,9 @@ newMessageHost=http://127.0.0.1:9000/api/sms/sendMessage
...
@@ -123,11 +123,9 @@ newMessageHost=http://127.0.0.1:9000/api/sms/sendMessage
#newMessageHost=http://192.168.1.193:9000/api/sms/sendMessage
#newMessageHost=http://192.168.1.193:9000/api/sms/sendMessage
#��ʽ����
waiwangip
=
192.168.1.248
waiwangip
=
192.168.1.248
#waiwangip=127.0.0.1
#waiwangip=127.0.0.1
wwCommonAction
=
/zsbwwsb/util/getInfo.action
wwCommonAction
=
/zsbwwsb/util/getInfo.action
#���Ի���
#waiwangip=192.168.1.152
#waiwangip=192.168.1.152
#wwCommonAction=/util/getInfo.action
#wwCommonAction=/util/getInfo.action
waiwangduankou
=
8080
waiwangduankou
=
8080
...
@@ -152,4 +150,4 @@ fs-sfxmbh:10304240101
...
@@ -152,4 +150,4 @@ fs-sfxmbh:10304240101
#fs-sfxmbh:103015601
#fs-sfxmbh:103015601
#非税开票
#非税开票
EInvoiceContent
:
<Header><EInvoiceTag>CZ-EI-32</EInvoiceTag><EInvoiceID>0986189200-02101023</EInvoiceID><Version>1.1.0</Version></Header><EInvoiceData><Main><EInvoiceName>江苏省非税收入统一票据(电子)</EInvoiceName><EInvoiceCode>{{EInvoiceCode}}</EInvoiceCode><EInvoiceNumber>{{EInvoiceNumber}}</EInvoiceNumber><RandomNumber>{{random}}</RandomNumber><EInvoiceSpecimenCode>3201012010</EInvoiceSpecimenCode><SupervisorAreaCode>320100</SupervisorAreaCode><TotalAmount>{{yjje}}</TotalAmount><IssueDate>{{kprq}}</IssueDate><IssueTime>{{kpsj}}</IssueTime><InvoicingParty><InvoicingPartyCode>708002</InvoicingPartyCode><InvoicingPartyName>南京市城市建设费用征收服务中心</InvoicingPartyName><RecName>南京市城市建设费用征收服务中心</RecName><RecAcct>10105901040000062</RecAcct><RecOpBk>南京农行鼓楼支行</RecOpBk></InvoicingParty><PayerParty><PayerPartyType>2</PayerPartyType><PayerPartyCode/><PayerPartyName>{{jkr}}</PayerPartyName><PayerAcct/><PayerOpBk/></PayerParty><PayMode/><BizCode>{{lsh}}</BizCode><CurrencyType/><ExchangeRate/><Remark>{{beizhu}}</Remark><HandlingPerson>南京市城市建设费用征收服务中心</HandlingPerson><Checker/><SupervisorRemark/><InvoicingPartySeal><SealId>f2ae8a477d7247148adf2e5cd48630e6</SealId><SealName/><SealHash/></InvoicingPartySeal><SupervisorPartySeal><SealId>f2ae8a477d7247148adf2e5cd48630e6</SealId><SealName/><SealHash/></SupervisorPartySeal><MainExt><RelatedInvoiceCode/><RelatedInvoiceNumber/><PayCode>{{jkm}}</PayCode><BusinessNumber/><BusinessDate/><Gender/><Age/><Address/><School/><Faculty/><Major/><Classes/><StudentID/><MedicalType/><MedicalDate/><CaseNumber/><PatientNumber/><HospitalizationNumber/><DepartmentName/><InHospitalDate/><OutHospitalDate/><PrepayAmount/><RechargeAmount/><RefundAmount/><OrgType/><MedicalInsuranceType/><MedicalInsuranceID/><FundPayAmount/><OtherPayAmount/><AccountPayAmount/><OwnPayAmount/><SelfpaymentAmount/><SelfpaymentCost/><Custom1/><Custom2/><Custom3/><Custom4/><Custom5/><Custom6/><Custom7/><Custom8/><Custom9/><Custom10/><Custom11/><Custom12/></MainExt></Main><Details><Item><ItemCode>{{itemCode}}</ItemCode><ItemName>城市基础设施配套费-城区</ItemName><ItemQuantity>{{yjmj}}</ItemQuantity><ItemUnit>元</ItemUnit><ItemStd>150.00</ItemStd><ItemAmount>{{yjje}}</ItemAmount><ItemRemark/><ItemExt><ItemDetailName/></ItemExt></Item></Details></EInvoiceData>
EInvoiceContent
:
<Header><EInvoiceTag>CZ-EI-32</EInvoiceTag><EInvoiceID>0986189200-02101023</EInvoiceID><Version>1.1.0</Version></Header><EInvoiceData><Main><EInvoiceName>
\u
6c5f
\u
82cf
\u7701\u
975e
\u
7a0e
\u6536\u5165\u
7edf
\u
4e00
\u7968\u
636e
\u
ff08
\u7535\u
5b50
\u
ff09</EInvoiceName><EInvoiceCode>{{EInvoiceCode}}</EInvoiceCode><EInvoiceNumber>{{EInvoiceNumber}}</EInvoiceNumber><RandomNumber>{{random}}</RandomNumber><EInvoiceSpecimenCode>3201012010</EInvoiceSpecimenCode><SupervisorAreaCode>320100</SupervisorAreaCode><TotalAmount>{{yjje}}</TotalAmount><IssueDate>{{kprq}}</IssueDate><IssueTime>{{kpsj}}</IssueTime><InvoicingParty><InvoicingPartyCode>708002</InvoicingPartyCode><InvoicingPartyName>
\u5357\u
4eac
\u
5e02
\u
57ce
\u
5e02
\u
5efa
\u
8bbe
\u
8d39
\u7528\u
5f81
\u6536\u
670d
\u
52a1
\u
4e2d
\u
5fc3</InvoicingPartyName><RecName>
\u5357\u
4eac
\u
5e02
\u
57ce
\u
5e02
\u
5efa
\u
8bbe
\u
8d39
\u7528\u
5f81
\u6536\u
670d
\u
52a1
\u
4e2d
\u
5fc3</RecName><RecAcct>10105901040000062</RecAcct><RecOpBk>
\u5357\u
4eac
\u
519c
\u
884c
\u
9f13
\u
697c
\u
652f
\u
884c</RecOpBk></InvoicingParty><PayerParty><PayerPartyType>2</PayerPartyType><PayerPartyCode/><PayerPartyName>{{jkr}}</PayerPartyName><PayerAcct/><PayerOpBk/></PayerParty><PayMode/><BizCode>{{lsh}}</BizCode><CurrencyType/><ExchangeRate/><Remark>{{beizhu}}</Remark><HandlingPerson>
\u5357\u
4eac
\u
5e02
\u
57ce
\u
5e02
\u
5efa
\u
8bbe
\u
8d39
\u7528\u
5f81
\u6536\u
670d
\u
52a1
\u
4e2d
\u
5fc3</HandlingPerson><Checker/><SupervisorRemark/><InvoicingPartySeal><SealId>f2ae8a477d7247148adf2e5cd48630e6</SealId><SealName/><SealHash/></InvoicingPartySeal><SupervisorPartySeal><SealId>f2ae8a477d7247148adf2e5cd48630e6</SealId><SealName/><SealHash/></SupervisorPartySeal><MainExt><RelatedInvoiceCode/><RelatedInvoiceNumber/><PayCode>{{jkm}}</PayCode><BusinessNumber/><BusinessDate/><Gender/><Age/><Address/><School/><Faculty/><Major/><Classes/><StudentID/><MedicalType/><MedicalDate/><CaseNumber/><PatientNumber/><HospitalizationNumber/><DepartmentName/><InHospitalDate/><OutHospitalDate/><PrepayAmount/><RechargeAmount/><RefundAmount/><OrgType/><MedicalInsuranceType/><MedicalInsuranceID/><FundPayAmount/><OtherPayAmount/><AccountPayAmount/><OwnPayAmount/><SelfpaymentAmount/><SelfpaymentCost/><Custom1/><Custom2/><Custom3/><Custom4/><Custom5/><Custom6/><Custom7/><Custom8/><Custom9/><Custom10/><Custom11/><Custom12/></MainExt></Main><Details><Item><ItemCode>{{itemCode}}</ItemCode><ItemName>
\u
57ce
\u
5e02
\u
57fa
\u7840\u
8bbe
\u
65bd
\u
914d
\u5957\u
8d39-
\u
57ce
\u
533a</ItemName><ItemQuantity>{{yjmj}}</ItemQuantity><ItemUnit>
\u5143
</ItemUnit><ItemStd>150.00</ItemStd><ItemAmount>{{yjje}}</ItemAmount><ItemRemark/><ItemExt><ItemDetailName/></ItemExt></Item></Details></EInvoiceData>
\ No newline at end of file
\ No newline at end of file
src/com/jshx/fstzs/fsutil/FsRequest.java
View file @
42a68fd0
...
@@ -11,6 +11,7 @@ import com.jshx.fstzs.fsutil.bean.*;
...
@@ -11,6 +11,7 @@ import com.jshx.fstzs.fsutil.bean.*;
import
com.jshx.fstzs.service.FstzsService
;
import
com.jshx.fstzs.service.FstzsService
;
import
com.jshx.http.HttpclientUtil
;
import
com.jshx.http.HttpclientUtil
;
import
java.io.UnsupportedEncodingException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
...
@@ -166,7 +167,8 @@ public class FsRequest {
...
@@ -166,7 +167,8 @@ public class FsRequest {
xml
=
xml
.
replaceAll
(
"\\{\\{yjmj}}"
,
fstzs
.
getYjmj
());
xml
=
xml
.
replaceAll
(
"\\{\\{yjmj}}"
,
fstzs
.
getYjmj
());
xml
=
xml
.
replaceAll
(
"\\{\\{itemCode}}"
,
getProp
(
"fs-sfxmbh"
));
xml
=
xml
.
replaceAll
(
"\\{\\{itemCode}}"
,
getProp
(
"fs-sfxmbh"
));
String
xmlBase64
=
Base64
.
getEncoder
().
encodeToString
(
xml
.
getBytes
());
try
{
String
xmlBase64
=
Base64
.
getEncoder
().
encodeToString
(
xml
.
getBytes
(
"utf-8"
));
map
.
put
(
"invoice_data"
,
xmlBase64
);
// 电子票据头部、票面信息进行base64编码后内容。
map
.
put
(
"invoice_data"
,
xmlBase64
);
// 电子票据头部、票面信息进行base64编码后内容。
Map
<
String
,
String
>
signInfo
=
new
HashMap
<>();
Map
<
String
,
String
>
signInfo
=
new
HashMap
<>();
...
@@ -180,6 +182,11 @@ public class FsRequest {
...
@@ -180,6 +182,11 @@ public class FsRequest {
FsResp
<
CaozuoResp
>
resp
=
new
Gson
().
fromJson
(
request
,
new
TypeToken
<
FsResp
<
CaozuoResp
>>()
{
FsResp
<
CaozuoResp
>
resp
=
new
Gson
().
fromJson
(
request
,
new
TypeToken
<
FsResp
<
CaozuoResp
>>()
{
}.
getType
());
}.
getType
());
return
resp
.
message
!=
null
&&
"0000"
.
equals
(
resp
.
message
.
succCode
);
return
resp
.
message
!=
null
&&
"0000"
.
equals
(
resp
.
message
.
succCode
);
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
return
false
;
}
}
}
...
...
src/com/jshx/fstzs/web/FstzsAction.java
View file @
42a68fd0
...
@@ -437,11 +437,8 @@ public class FstzsAction extends BaseAction {
...
@@ -437,11 +437,8 @@ public class FstzsAction extends BaseAction {
result
=
false
;
result
=
false
;
message
=
"请重新操作!"
;
message
=
"请重新操作!"
;
}
}
this
.
getResponse
().
getWriter
().
println
(
"{\"result\":"
+
result
+
",\"message\":\""
+
message
+
"!"
+
"\"}"
);
}
}
this
.
getResponse
().
getWriter
().
println
(
"{\"result\":"
+
result
+
",\"message\":\""
+
message
+
"!"
+
"\"}"
);
}
}
/**
/**
...
...
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