|  |  |  | 
|---|
|  |  |  | * @param automaticClose | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Map planedOpenTimedClose(AutomaticClose automaticClose, Date startTime, Integer duration) { | 
|---|
|  |  |  | public Map planedOpenTimedClose(AutomaticClose automaticClose, Long planId, Date startTime, Integer duration) { | 
|---|
|  |  |  | Long intakeId = automaticClose.getIntakeId(); | 
|---|
|  |  |  | Long vcId = automaticClose.getVcId(); | 
|---|
|  |  |  | Date plannedOpenTime = automaticClose.getPlannedOpenTime(); | 
|---|
|  |  |  | 
|---|
|  |  |  | Byte openType = automaticClose.getOpenType(); | 
|---|
|  |  |  | Long comId = new IDLongGenerator().generate(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(openType == 1) { | 
|---|
|  |  |  | if(openType != null && openType == 1) { | 
|---|
|  |  |  | IrIntakeOperate irIntakeOperate = new IrIntakeOperate(); | 
|---|
|  |  |  | irIntakeOperate.setPlanId(planId); | 
|---|
|  |  |  | irIntakeOperate.setOperateType((byte)1); | 
|---|
|  |  |  | irIntakeOperate.setCommandId(comId); | 
|---|
|  |  |  | irIntakeOperate.setIntakeId(intakeId); | 
|---|
|  |  |  | irIntakeOperate.setStartTime(startTime); | 
|---|