Commit 569af724 by 王军业

125231456

1 parent 4f33e316
......@@ -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>
......
......@@ -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);
int count = contractMapper.count(selectVo);
if(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());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!