Commit c7027851 by 王军业

[账款状态的更新]

1 parent e5b937ed
......@@ -73,4 +73,5 @@ public class ContractController extends BaseController {
public Object importExcel(@RequestParam("file") MultipartFile file) {
return contractService.importExcel(file);
}
}
package com.vion.financial.handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class Timer {
private final Logger logger = LoggerFactory.getLogger(Timer.class);
@Scheduled(fixedRate=7200000)
public void start() {
}
}
......@@ -353,6 +353,42 @@ public class ContractServiceImpl implements ContractService {
}
}
}
if(contractVo.getAmount_state_unid()!=null) {
switch(contractVo.getAmount_state_unid()) {
case "50001" :
contractVo.setAmount_state_unid_name("正常验收款");
break;
case "50002" :
contractVo.setAmount_state_unid_name("正常维保");
break;
case "50003" :
contractVo.setAmount_state_unid_name("正常预付款");
break;
case "50004" :
contractVo.setAmount_state_unid_name("正常到货款");
break;
case "50005" :
contractVo.setAmount_state_unid_name("正常质保款");
break;
case "50006" :
contractVo.setAmount_state_unid_name("逾期预付款");
break;
case "50007" :
contractVo.setAmount_state_unid_name("逾期到货款");
break;
case "50008" :
contractVo.setAmount_state_unid_name("逾期验收款");
break;
case "50009" :
contractVo.setAmount_state_unid_name("逾期质保款");
break;
case "50012" :
contractVo.setAmount_state_unid_name("逾期维保款");
break;
default:
break;
}
}
/* if(contractVo.getProduct_line_type()!=null) {
switch(contractVo.getProduct_line_type()) {
case "1" :
......@@ -578,11 +614,8 @@ public class ContractServiceImpl implements ContractService {
case "50009" :
exportModel.setAmount_state_unid_name("逾期质保款");
break;
case "50010" :
exportModel.setAmount_state_unid_name("暂停");
break;
case "50011" :
exportModel.setAmount_state_unid_name("质量问题");
case "50012" :
exportModel.setAmount_state_unid_name("逾期维保款");
break;
default:
break;
......@@ -898,12 +931,12 @@ public class ContractServiceImpl implements ContractService {
case "进行中":
contractVo.setContract_state("30003");
break;
/* case "待发货":
contractVo.setContract_state("30002");
break;
case "项目暂停":
case "暂停":
contractVo.setContract_state("30004");
break;*/
break;
case "质量问题":
contractVo.setContract_state("30005");
break;
default:
break;
}
......@@ -920,9 +953,9 @@ public class ContractServiceImpl implements ContractService {
case "集成":
contractVo.setContract_type("40003");
break;
/* case "维保":
case "维保":
contractVo.setContract_type("40004");
break;*/
break;
default:
break;
}
......@@ -964,12 +997,8 @@ public class ContractServiceImpl implements ContractService {
contractVo.setAmount_state_unid("50009");
break;
case "暂停":
contractVo.setAmount_state_unid("50010");
break;
case "质量问题":
contractVo.setAmount_state_unid("50011");
case "逾期维保款":
contractVo.setAmount_state_unid("50012");
break;
default:
......@@ -1244,4 +1273,5 @@ public class ContractServiceImpl implements ContractService {
return listValues;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!