fix:邮寄资料归档流程多次部分归档,将上一次补充资料字段自动填充到新增记录中

This commit is contained in:
maliang 2020-11-02 18:11:47 +08:00
parent 3bbfc24391
commit 657ff71425

View File

@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.amarsoft.awe.util.Transaction;
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO;
import jbo.app.tenwa.doc.LB_FILE_MAILARCHIVING_INFO_TEMP;
import jbo.app.tenwa.doc.LM_APPROVALOPINION_DOC;
@ -39,6 +40,7 @@ public class DocMailAction {
Map<String,String> fromCondtion = new HashMap<String,String>();
Map<String,String> otherProperty = new HashMap<String,String>();
String [] contractlist = contractid.split("@");
Transaction Sqlca = Transaction.createTransaction(tx);
for(String contractId:contractlist){
//ÓʼÄ״̬
String ALLSTATUS = "none";
@ -67,6 +69,12 @@ public class DocMailAction {
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ARCHIVING_CABINET_NO, ARCHIVING_CABINET_NO);
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ARCHIVING_PERSON, ARCHIVING_PERSON);
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.ARCHIVING_TIME, ARCHIVING_TIME);
String sql="select opinion_comments from(select * from LB_FILE_MAILARCHIVING_INFO_TEMP t " +
"where contract_id='"+contractId+"' order by INPUTTIME desc)a limit 1";
String result = Sqlca.getString(sql);
if(null!=result&&!"".equals(result)){
bo.setAttributeValue(LB_FILE_MAILARCHIVING_INFO_TEMP.opinion_comments, result);
}
lfmitBom.saveObject(bo);
fromCondtion.put("contract_id", contractId);
otherProperty.put("flowunid", flowunid);