Commit 35ee1332 by 谢明辉

Merge branch 'develop' of http://192.168.9.26/platform/finance_serv into develop

2 parents 53150f62 988debf1
......@@ -39,48 +39,48 @@ public class ExportModel {
private String customer_name="-"; //顾客名称
@Excel(name="项目名称",width=20)
private String project_name="-"; //项目名称
@Excel(name="合同金额",width=15,type=1,numFormat="###,###.00")
private Double contract_amount; //合同金额
@Excel(name="暂停金额",width=15,type=1,numFormat="###,###.00")
private Double stop_amount; //暂停金额
@Excel(name="坏账金额",width=15,type=1,numFormat="###,###.00")
private Double bad_amount; //坏账金额
@Excel(name="豁免金额",width=15,type=1,numFormat="###,###.00")
private Double exemptions_amount; //豁免金额
@Excel(name="折扣金额",width=15,type=1,numFormat="###,###.00")
private Double deduct_amount; //折扣金额
@Excel(name="累计已收款",width=15,type=1,numFormat="###,###.00")
private Double total_reback_amount; //累计已收款
@Excel(name="合同余额",width=15,type=1,numFormat="###,###.00")
private Double contract_remain; //合同余额
@Excel(name="合同金额",type=1,width=15,numFormat="###############.00")
private Double contract_amount=0D; //合同金额
@Excel(name="暂停金额",width=15,type=1,numFormat="###############.00")
private Double stop_amount=0D; //暂停金额
@Excel(name="坏账金额",width=15,type=1,numFormat="###############.00")
private Double bad_amount=0D; //坏账金额
@Excel(name="豁免金额",width=15,type=1,numFormat="###############.00")
private Double exemptions_amount=0D; //豁免金额
@Excel(name="折扣金额",width=15,type=1,numFormat="###############.00")
private Double deduct_amount=0D; //折扣金额
@Excel(name="累计已收款",width=15,type=1,numFormat="###############.00")
private Double total_reback_amount=0D; //累计已收款
@Excel(name="合同余额",width=15,type=1,numFormat="###############.00")
private Double contract_remain=0D; //合同余额
@Excel(name="账款状态",width=15)
private String amount_state_unid_name="-"; //账款 状态
@ExcelIgnore()
private String amount_state_unid;
@Excel(name="累计应收款",width=15,type=1,numFormat="###,###.00")
private Double total_receive_amount; //累计应收款
@Excel(name="应收账款余额",width=15,type=1,numFormat="###,###.00")
private Double total_amount_remain; //应收账款余额
@Excel(name="累计应收款",width=15,type=1,numFormat="###############.00")
private Double total_receive_amount=0D; //累计应收款
@Excel(name="应收账款余额",width=15,type=1,numFormat="###############.00")
private Double total_amount_remain=0D; //应收账款余额
@Excel(name="逾期天数")
private Integer over_days; //逾期天数
@Excel(name="预付款金额",width=15,type=1,numFormat="###,###.00")
private Double advance_pay; //预付款金额
@Excel(name="预付款金额",width=15,type=1,numFormat="###############.00")
private Double advance_pay=0D; //预付款金额
@Excel(name="预付款到期日",width=15)
private String advance_pay_date="-"; //预付款到期日
@Excel(name="到货款金额",width=15,type=1,numFormat="###,###.00")
private Double arrive_pay; //到货款金额
@Excel(name="到货款金额",width=15,type=1,numFormat="###############.00")
private Double arrive_pay=0D; //到货款金额
@Excel(name="发货日期",width=15)
private String deliver_date="-"; //发货日期
@Excel(name="到货款到期日",width=15)
private String arrive_pay_date="-"; //到货款到期日
@Excel(name="验收款金额",width=15,type=1,numFormat="###,###.00")
private Double acceptanc_pay; //验收款金额
@Excel(name="验收款金额",width=15,type=1,numFormat="###############.00")
private Double acceptanc_pay=0D; //验收款金额
@Excel(name="验收日期",width=15)
private String acceptanc_date="-"; //验收日期
@Excel(name="验收款到期日",width=15)
private String acceptanc_pay_date="-"; //验货款到期日
@Excel(name="质保金额",width=15,type=1,numFormat="###,###.00")
private Double mainten_pay; //质保金额
@Excel(name="质保金额",width=15,type=1,numFormat="###############.00")
private Double mainten_pay=0D; //质保金额
@Excel(name="质保款到期日",width=15)
private String mainten_pay_date="-"; //质保款到期日
......
......@@ -324,8 +324,8 @@
<if test="contract_states !=null and contract_states.length > 0">
and
contract_state in
<foreach collection="contract_states" index="index" item="contract_state" open="(" close=")" separator=",">
#{contract_state}
<foreach collection="contract_states" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="project_name__like !=null and project_name__like !=''">
......@@ -364,7 +364,7 @@
and
product_line_type=#{product_line_type}
</if>
<if test="contract_state !=null and contract_state!=''">
<if test="contract_state !=null and contract_state !=''">
and
contract_state=#{contract_state}
</if>
......@@ -458,7 +458,7 @@
and
contract_unid=#{contract_unid}
</if>
<if test="salesperson_unids !=null and salesperson_unids.length > 0">
<if test="salesperson_unids !=null">
and
salesperson_unid in
<foreach collection="salesperson_unids" index="index" item="salesperson_unid" open="(" close=")" separator=",">
......@@ -468,8 +468,8 @@
<if test="contract_states !=null and contract_states.length > 0">
and
contract_state in
<foreach collection="contract_states" index="index" item="contract_state" open="(" close=")" separator=",">
#{contract_state}
<foreach collection="contract_states" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="project_name__like !=null and project_name__like !=''">
......@@ -508,7 +508,7 @@
and
product_line_type=#{product_line_type}
</if>
<if test="contract_state !=null and contract_state!=''">
<if test="contract_state !=null and contract_state !=''">
and
contract_state=#{contract_state}
</if>
......@@ -532,12 +532,9 @@
and
amount_state_unid=#{amount_state_unid}
</if>
<if test="start_date != null ">
<if test="start_date != null and end_date !=null">
and
#{start_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} <![CDATA[<=]]> sign_date
</if>
<if test="end_date !=null">
and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler}
#{start_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} <![CDATA[<=]]> sign_date and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler}
</if>
<if test="amount_start_point !=null ">
and
......@@ -566,10 +563,6 @@
and
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>
<if test="salesperson_unid !=null and salesperson_unid !=''">
and
salesperson_unid = #{salesperson_unid}
</if>
and is_delete=false
and project_unid is not null
and customer_unid is not null
......@@ -639,8 +632,8 @@
<if test="contract_states !=null and contract_states.length > 0">
and
contract_state in
<foreach collection="contract_states" index="index" item="contract_state" open="(" close=")" separator=",">
#{contract_state}
<foreach collection="contract_states" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="project_name__like !=null and project_name__like !=''">
......@@ -679,7 +672,7 @@
and
product_line_type=#{product_line_type}
</if>
<if test="contract_state !=null and contract_state!=''">
<if test="contract_state !=null and contract_state !=''">
and
contract_state=#{contract_state}
</if>
......@@ -748,6 +741,7 @@
and project_unid is not null
and customer_unid is not null
) contract
order by (contract_unid,amount_state_unid) desc
</select>
......
......@@ -139,6 +139,24 @@ public class ContractServiceImpl implements ContractService {
head_title_key.put("mainten_pay_date","mainten_pay_date");
head_title_key.put("goods_acceptanc_date", "goods_acceptanc_date");
}
private static Map<String,String> num_key = new HashMap<String,String>();
{
num_key.put("contract_amount","###############.00");
num_key.put("stop_amount","###############.00");
num_key.put("bad_amount","###############.00");
num_key.put("exemptions_amount","###############.00");
num_key.put("deduct_amount","###############.00");
num_key.put("total_reback_amount","###############.00");
num_key.put("contract_remain","###############.00");
num_key.put("total_receive_amount","###############.00");
num_key.put("total_amount_remain","###############.00");
num_key.put("advance_pay","###############.00");
num_key.put("arrive_pay","###############.00");
num_key.put("acceptanc_pay","###############.00");
num_key.put("mainten_pay","###############.00");
}
@Autowired
ContractMapper contractMapper;
@Autowired
......@@ -897,11 +915,17 @@ public class ContractServiceImpl implements ContractService {
colList.add(excelExportEntity);
Object title_name = null;
Object title_key = null;
String numkey = null;
for(String clo : cloumns) {
title_name = head_title_name.get(clo);
title_key = head_title_key.get(clo);
numkey = num_key.get(clo);
if(title_name != null) {
excelExportEntity = new ExcelExportEntity(head_title_name.get(clo), head_title_key.get(clo));
if(StringUtils.isNotBlank(numkey)) {
excelExportEntity.setNumFormat(numkey);
excelExportEntity.setType(10);
}
colList.add(excelExportEntity);
}
}
......
......@@ -39,7 +39,7 @@ logging:
pattern:
level: INFO
console: "[financial_serv]-[%d{yyyy-MM-dd HH:mm:ss.SSS}]-%m%n"
path: F:\LOG\
path: /usr/local/tomcat/logs/
finance:
authurl: http://PH_AUTH_SERV_IP:20080/api/v1/auth/users
......
......@@ -5,7 +5,7 @@ cont_name="finance_serv"
prj_name="finance_serv"
serv_port=19111
host_log_dir=/data/vion-data/$cont_name/logs
cont_log_dir=/data/vion-data/$cont_name/logs
cont_log_dir=/usr/local/tomcat/logs
host_appendix_path=/data/face-web/www/static/pics/cache/finance/
cont_appendix_path=/data/finance/
#cont_log_dir=/usr/local/tomcat/logs
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!