diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/contract/make/service/impl/ContractMakeServiceImpl.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/contract/make/service/impl/ContractMakeServiceImpl.java index 037a50ee1..2423633f8 100644 --- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/contract/make/service/impl/ContractMakeServiceImpl.java +++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/contract/make/service/impl/ContractMakeServiceImpl.java @@ -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();