Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 569af724
authored
Aug 08, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
125231456
1 parent
4f33e316
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
code/finance_serv/src/main/java/com/vion/financial/mapping/ContractMapper.xml
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/mapping/ContractMapper.xml
View file @
569af72
...
...
@@ -378,12 +378,6 @@
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point
<![CDATA[<=]]>
#{leave_amount_end_point})
</if>
and is_delete=false
<if
test=
"limit !=null and limit!=0 "
>
limit #{limit}
</if>
<if
test=
"offset !=0 and offset !=null"
>
offset #{offset}
</if>
</select>
<select
id=
"selectByCondition"
parameterType=
"com.vion.financial.vo.SelectVo"
resultType=
"com.vion.financial.vo.ContractVo"
>
...
...
@@ -443,7 +437,7 @@
and
county=#{county}
</if>
<if
test=
"guarantee_period !=null and guarantee_period !=
0
"
>
<if
test=
"guarantee_period !=null and guarantee_period !=
'0'
"
>
and
guarantee_period=#{guarantee_period}
</if>
...
...
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
569af72
...
...
@@ -186,6 +186,7 @@ public class ContractServiceImpl implements ContractService {
List
<
Map
>
list_province
=
null
;
List
<
Map
>
list_city
=
null
;
List
<
Map
>
list_county
=
null
;
int
count
=
0
;
if
(
StringUtils
.
isNotBlank
(
selectVo
.
getSalesperson_name__like
()))
{
// 调用auth服务的接口获取用户列表信息
String
url
=
financeConfig
.
getAuthurl
();
...
...
@@ -207,8 +208,9 @@ public class ContractServiceImpl implements ContractService {
}
}
count
=
contractMapper
.
count
(
selectVo
);
List
<
ContractVo
>
list
=
contractMapper
.
selectByCondition
(
selectVo
);
i
nt
count
=
contractMapper
.
count
(
selectVo
);
i
f
(
list
!=
null
)
{
for
(
ContractVo
contractVo
:
list
)
{
contractVo
.
setPaymentAgree_list
(
paymentAgreeMapper
.
queryPaymentAgree
(
contractVo
.
getContract_unid
()));
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
...
...
@@ -218,6 +220,7 @@ public class ContractServiceImpl implements ContractService {
}
}
}
if
(
contractVo
.
getProduct_line_type
()!=
null
)
{
switch
(
contractVo
.
getProduct_line_type
())
{
case
"1"
:
contractVo
.
setProduct_line_type_name
(
"安防"
);
...
...
@@ -234,6 +237,7 @@ public class ContractServiceImpl implements ContractService {
default
:
break
;
}
}
}
String
provinceurl
=
financeConfig
.
getProvinceurl
();
String
province_results
=
HttpNetClient
.
doGet
(
provinceurl
,
null
);
...
...
@@ -287,6 +291,7 @@ public class ContractServiceImpl implements ContractService {
}
}
}
resultVo
.
setList_data
(
list
);
resultVo
.
setList_size
(
selectVo
.
getLimit
());
resultVo
.
setOffset
(
selectVo
.
getOffset
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment