Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c9667e84
authored
Dec 26, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
再一次修改mysql字符范围
parent
45790c35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
cmd/main.go
internal/logic/tianyancha.go
cmd/main.go
View file @
c9667e84
...
...
@@ -4,6 +4,8 @@ import "fmt"
func
main
()
{
fmt
.
Print
(
1
)
str
:=
`{"result":{"total":5000,"items":[{"submittime":"1576512000000","casereason":"网络购物合同纠纷","agent":null,"defendants":"被上诉人-<a href='https://www.tianyancha.com/company/2342277323' target='_blank'>中国建设银行股份有限公司济宁古槐路支行</a><br><a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/0377a66c03f342b7bc8cd7ecf0055cbe","court":"山东省济宁市中级人民法院","title":"梁辉、青岛华银商品交易中心有限公司网络购物合同纠纷二审民事判决书","caseno":"(2019)鲁08民终4040号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=78d6075487fd4734bd49ab1e017f9a7a","SplitGids":null,"doctype":"民事判决书","thirdParties":null,"casetype":"民事案件","id":"280466103","plaintiffs":"上诉人-梁辉<br><a href='https://www.tianyancha.com/company/2318254620' target='_blank'>青岛华银商品交易中心有限公司</a>"},{"submittime":"1576425600000","casereason":"劳动争议","agent":null,"defendants":"被告-王强","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/6d999619cda2437bbf6de87e0ad681c6","court":"太原市迎泽区人民法院","title":"平安银行股份有限公司与王强劳动争议一审民事判决书","caseno":"(2019)晋0106民初13号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=10bf7f3300624688a6c5ab2301887d1b","SplitGids":null,"doctype":"民事判决书","thirdParties":null,"casetype":"民事案件","id":"280483526","plaintiffs":"原告-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-秦金岭","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/1029164cc2ca4a0fa7a54fb3c27fc396","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉秦金岭金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3024号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=b7efd311890742cda3d1ab23012d9088","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214694","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-郭彪","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/c651d1c90a7e4e32826ae95b0dd001a7","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉郭彪金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3027号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=bf5a5022a8b8471aace9ab23012d90cf","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214695","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-杨丰伟","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/d5b1746d118542e6a087878621827e9e","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉杨丰伟金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3075号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=cdc3895a51e04b2eb74aab23012d9018","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214697","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-朱元明<br>李玉蕊","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/13aa75ce50ed4a0bafdbefb2232fc000","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉朱元明、李玉蕊金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3797号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=e6f2f4c769b14b29b291ab23012d8fe0","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214702","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-张阿敏<br>赵兵","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/cbd5ca067b424d4ead68134cd63e0f33","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉张阿敏、赵兵金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3795号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=786d42b8d9a04931ab06ab23012d8fcd","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214704","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-李红丽","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/2d59db2257f0421ab02b6cc62caaa1bb","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉李红丽金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3063号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=6deaa876757046e6a42fab23012d9005","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214706","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-杨常委","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/88de23cf14c34e42990f55e73de0c78b","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉杨常委金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3073号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=cdced44f32554c9b9714ab23012d902f","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214732","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-张英英","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/6e07947fe4544044b6adfdd08b39ce89","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉张英英金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3061号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=9c2e86a68e844adabb6cab23012d8fbf","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214736","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-高金亮<br>范渠娃","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/167a0505d22e48949f4f59874bc2fcab","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉高金亮、范渠娃金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3029号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=2d581aeba2b94e3aa390ab23012d90ef","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214738","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576252800000","casereason":"金融借款合同纠纷","agent":null,"defendants":"被申请人-郑少峰<br>郑小辉","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/08183a451851437ea21d0b6a9c4c1b8d","court":"洛阳市洛龙区人民法院","title":"平安银行股份有限公司诉郑少峰、郑小辉金融借款合同纠纷民事裁定书","caseno":"(2019)豫0311民初3066号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=07d8c01db4b64f55b197ab23012d90c0","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280214776","plaintiffs":"申请人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1576166400000","casereason":"侵权责任纠纷","agent":null,"defendants":"被告-<a href='https://www.tianyancha.com/company/2319818084' target='_blank'>平安银行股份有限公司深圳宝安支行</a><br><a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/11a68b31ae784f10873a5ca3d41f3baf","court":"深圳市宝安区人民法院","title":"杜春联与平安银行股份有限公司深圳宝安支行、平安银行股份有限公司侵权责任纠纷一审民事裁定书","caseno":"(2019)粤0306民初7852号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=641b69c2b1b34d2fb755ab22009eaca2","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"280132704","plaintiffs":"原告-杜春联"},{"submittime":"1575993600000","casereason":"借记卡纠纷","agent":null,"defendants":"被申请人-<a href='https://www.tianyancha.com/company/101900705' target='_blank'>中国建设银行股份有限公司北京宣武门支行</a>","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/3aed787206c14bbe93a06f1534b17de4","court":"北京市高级人民法院","title":"李六顺等与中国建设银行股份有限公司北京宣武门支行借记卡纠纷再审审查与审判监督民事裁定书","caseno":"(2019)京民申5065号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=3712ae87cd0144b8a755ab20002c5f09","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"279485483","plaintiffs":"再审申请人-李六顺"},{"submittime":"1575907200000","casereason":"信用卡纠纷","agent":null,"defendants":"被告-顾平","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/6e727640b09446b280861f5197bebab3","court":"深圳市罗湖区人民法院","title":"平安银行股份有限公司与顾平信用卡纠纷一审民事裁定书","caseno":"(2019)粤0303民初9361号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=f556938bc13149a793e6ab1c0133de25","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"279583784","plaintiffs":"原告-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1575907200000","casereason":"信用卡纠纷","agent":null,"defendants":"","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/981b813b46374e599eb753030aecaf35","court":"深圳市罗湖区人民法院","title":"平安银行股份有限公司与周锦良信用卡纠纷一审民事判决书","caseno":"(2019)粤0303民初22303-22305、22307-22309、22312-22314、22320、22321、22323号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=e6916da5222c4c94bca9ab1e012e0f97","SplitGids":null,"doctype":"民事判决书","thirdParties":null,"casetype":"民事案件","id":"279547742","plaintiffs":"原告-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a><br>与各"},{"submittime":"1575907200000","casereason":"信用卡纠纷","agent":null,"defendants":"被告-周锦良","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/c2df2863170c4960bc2b7c165f39a52f","court":"深圳市罗湖区人民法院","title":"平安银行股份有限公司与周锦良信用卡纠纷一审民事裁定书","caseno":"(2019)粤0303民初22302号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=823f9678184841dfb2a6ab1e012e15f3","SplitGids":null,"doctype":"民事裁定书","thirdParties":null,"casetype":"民事案件","id":"279370094","plaintiffs":"原告-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1575907200000","casereason":"借款合同纠纷","agent":null,"defendants":"被执行人-严宏<br>何宝玲","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/b735938fdd264ad99c990845ee61ad69","court":"西安市新城区人民法院","title":"平安银行股份有限公司西安分行与严宏,何宝玲借款合同纠纷终结本次执行程序裁定书","caseno":"(2019)陕0102执3580号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=d95711e7f3524e49b226ab1e015fc58a","SplitGids":null,"doctype":"执行裁定书","thirdParties":null,"casetype":"执行案件","id":"279551442","plaintiffs":"申请执行人-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"},{"submittime":"1575907200000","casereason":"信用卡纠纷","agent":null,"defendants":"","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/7c9d96a9e5e14cc2ac058d1287404ae2","court":"深圳市罗湖区人民法院","title":"平安银行股份有限公司与张长合信用卡纠纷一审民事判决书","caseno":"(2019)粤0303民初22099-22105、22107-22109、22111-22114号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=cea7607bc3fb461c840cab1e012e453a","SplitGids":null,"doctype":"民事判决书","thirdParties":null,"casetype":"民事案件","id":"279538932","plaintiffs":"原告-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a><br>与各"},{"submittime":"1575907200000","casereason":"信用卡纠纷","agent":null,"defendants":"被告-张勇","abstracts":"","lawsuitUrl":"https://m.tianyancha.com/app/h5/lawsuit/5f8a1f8796d14319b5545e58fdedee21","court":"深圳市罗湖区人民法院","title":"平安银行股份有限公司与张勇信用卡纠纷一审民事判决书","caseno":"(2019)粤0303民初22115号","url":"http://wenshu.court.gov.cn/website/wenshu/181107ANFZ0BXSK4/index.html?docId=662c5229cd2c4274bbafab1c01340adc","SplitGids":null,"doctype":"民事判决书","thirdParties":null,"casetype":"民事案件","id":"279538935","plaintiffs":"原告-<a href='https://www.tianyancha.com/company/199557844' target='_blank'>平安银行股份有限公司</a>"}]},"reason":"ok","error_code":0}`
fmt
.
Println
(
len
(
str
))
}
...
...
internal/logic/tianyancha.go
View file @
c9667e84
...
...
@@ -93,7 +93,7 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
respBody
=
BasicHttpGet
(
LAWSUIT
,
companyName
)
json
.
Unmarshal
(
respBody
,
&
totalNum
)
//防止sql执行字符串超长
if
len
(
string
(
respBody
))
<
2
000
{
if
len
(
string
(
respBody
))
<
120
000
{
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
}
if
totalNum
.
Result
.
Total
>
0
{
...
...
@@ -109,7 +109,7 @@ func HttpGet(companyName string)(returnDatas map[string]string) {
json
.
Unmarshal
(
respBody
,
&
totalNum
)
//防止sql执行字符串超长
if
len
(
string
(
respBody
))
<
2
000
{
if
len
(
string
(
respBody
))
<
120
000
{
returnData
[
"tianyancha_json"
]
+=
"||||"
+
string
(
respBody
)
}
var
changeInfoNum
int64
...
...
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