更新app电子签约查询

This commit is contained in:
tangfutang 2020-08-28 19:56:53 +08:00
parent 115cdbcf0a
commit 1a8eba720f

View File

@ -13,6 +13,7 @@ import jbo.com.tenwa.entity.comm.officetempalte.BF_TEMPLATE;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_TEMPLATE;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
import net.sf.json.JSONObject;
import com.amarsoft.are.jbo.BizObject;
@ -479,9 +480,11 @@ public class ContractMakeServiceImpl implements ContractMakeService{
String ContractId = flowParms.get("ContractId");
BizObjectManager lclManager=JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME,tx);
BizObjectManager lpiManager=JBOFactory.getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME,tx);
BizObjectManager lpitManager=JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME,tx);
BizObjectManager lctManager=JBOFactory.getBizObjectManager(LB_CONTRACT_TEMPLATE.CLASS_NAME,tx);
lclManager.createQuery("update O set file_flag='no',message='1' where contract_id=:contract_id").setParameter("contract_id",ContractId).executeUpdate();
lpiManager.createQuery("update O set PROJECT_STATUS=13 where id=:id").setParameter("id",projectId).executeUpdate();
lpitManager.createQuery("update O set DATA_STATE=2 where flowunid=:flowunid").setParameter("flowunid",flowunid).executeUpdate();
lctManager.createQuery("delete from O where contract_id=:contract_id ").setParameter("contract_id", ContractId).executeUpdate();
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("success").toString(), "");
return ReturnMapUtil.getReturnMap();