1.文件下载增加其它(初版)

This commit is contained in:
zhangbb 2020-05-21 17:16:57 +08:00
parent 4ef791127a
commit e99b0b5cb8
2 changed files with 15 additions and 0 deletions

View File

@ -43,6 +43,9 @@
if(sParam.contains("FileList")){
cp.copyFile("FileList");
}
if(sParam.contains("Other")){
cp.copyFile("Other");
}
if(sParam.contains("RentPlan")){
String[] contractNoArray = contractNos.split("@");

View File

@ -41,6 +41,14 @@ public class FileCopyToOtherPath {
+" 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+"%'"
+" or LDL.DOC_TYPE in "+archive+")";
if("ÆäËü".equals(type)){
sql = "SELECT O.FULLPATH AS FULLPATH, CONCAT(REPLACE(LCI.CONTRACT_NO,'/','-'), '/','"+type+"','/', REPLACE(LDL.ONE_CLASSIFY,'/','-'), '/' , REPLACE(LDL.DOC_NAME,'/','-'), '/', REPLACE(O.FILENAME,'/','-')) AS TARGET_FILE_PATH FROM LB_DOCATTRIBUTE O"
+" 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 one_classify='ÆäËûÎļþ'"
+" and LDL.DOC_NAME ='ÆäËü'";
}
Map<String,String> params=new HashMap<String,String>();
List<Map<String, String>> pathList = DataOperatorUtil.getDataBySql(Sqlca,sql,params);
if(pathList.size()>0){
@ -97,6 +105,10 @@ public class FileCopyToOtherPath {
type="¹éµµ×ÊÁÏ";
archive = "('002','009','010','011','018','034')";
}
if("Other".equals(type)){
type="ÆäËü";
archive = "";
}
List<String> cns = Arrays.asList(contractNos.split("@"));
List<String> bns = Arrays.asList(batchNos.split("@"));
for(int i=0;i<cns.size();i++){