1.文件下载导入功能(由于关联字段改为了存数字,所以暂时将对应数字添加,以后再优化)
This commit is contained in:
parent
3216ffa3c0
commit
5e423205c0
@ -21,7 +21,7 @@ public class FileCopyToOtherPath {
|
||||
private String userid;
|
||||
private String fileSavePath_temp;
|
||||
|
||||
public String doCopy(String contractNo,String bacthNo,String type){
|
||||
public String doCopy(String contractNo,String bacthNo,String type,String archive){
|
||||
Transaction Sqlca = Transaction.createTransaction("als");
|
||||
//覩쨌쓺
|
||||
String srcPath ;
|
||||
@ -35,7 +35,8 @@ public class FileCopyToOtherPath {
|
||||
+" LEFT JOIN LB_DOCLIBRARY LDL ON LDL.ID = O.LIBRARY_ID"
|
||||
+" LEFT JOIN LB_DOCRELATIVE LDR ON LDL.RELATIVE_ID = LDR.ID"
|
||||
+" LEFT JOIN LB_CONTRACT_INFO LCI ON LDR.CONTRACT_ID = LCI.ID"
|
||||
+" WHERE (O.DELETEED <>'Y' OR O.DELETEED IS NULL) AND LCI.CONTRACT_NO ='"+contractNo+"' AND LDL.DOC_TYPE LIKE '"+type+"%'";
|
||||
+" WHERE (O.DELETEED <>'Y' OR O.DELETEED IS NULL) AND LCI.CONTRACT_NO ='"+contractNo+"' AND (LDL.DOC_TYPE LIKE '"+type+"%'"
|
||||
+" or LDL.DOC_TYPE in "+archive+")";
|
||||
Map<String,String> params=new HashMap<String,String>();
|
||||
List<Map<String, String>> pathList = DataOperatorUtil.getDataBySql(Sqlca,sql,params);
|
||||
if(pathList.size()>0){
|
||||
@ -75,11 +76,14 @@ public class FileCopyToOtherPath {
|
||||
|
||||
public String copyFile(String type){
|
||||
String failNo="";
|
||||
String archive="";
|
||||
if("PayFileList".equals(type)){
|
||||
type="렴운栗죕";
|
||||
archive = "('007','008','016','031','033')";
|
||||
}
|
||||
if("FileList".equals(type)){
|
||||
type="백도栗죕";
|
||||
archive = "('002','009','010','011','018','034')";
|
||||
}
|
||||
List<String> cns = Arrays.asList(contractNos.split("@"));
|
||||
List<String> bns = Arrays.asList(batchNos.split("@"));
|
||||
@ -87,7 +91,7 @@ public class FileCopyToOtherPath {
|
||||
if("".equals(cns.get(i))||cns.get(i)==null){
|
||||
continue;
|
||||
}
|
||||
String result = doCopy(cns.get(i),bns.get(i),type);
|
||||
String result = doCopy(cns.get(i),bns.get(i),type,archive);
|
||||
if(!"Y".equals(result)){
|
||||
failNo+=cns.get(i)+";";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user