| | |
| | | package com.vci.web.dao.impl; |
| | | |
| | | import com.vci.corba.omd.data.BusinessObject; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.web.dao.OsCodeRuleDaoI; |
| | | import com.vci.web.model.OsCodeRuleDO; |
| | | import com.vci.web.pageModel.BatchCBO; |
| | | import com.vci.model.OsCodeRuleDO; |
| | | import com.vci.pagemodel.BatchCBO; |
| | | import com.vci.web.service.OsLifeCycleServiceI; |
| | | import com.vci.web.service.WebBoServiceI; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.vci.frameworkcore.constant.FrameWorkBusLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | import static com.vci.constant.FrameWorkBusLangCodeConstant.DATA_OID_NOT_EXIST; |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public long batchUpdateLcStatus(Collection<String> oids, String lcStatus) { |
| | | List<com.vci.client.bof.ClientBusinessObject> cbos = boService.selectCBOByOidCollection(oids, "oscoderule"); |
| | | List<BusinessObject> cbos = boService.selectCBOByOidCollection(oids, "oscoderule"); |
| | | if(CollectionUtils.isEmpty(cbos)){ |
| | | return 0; |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public int updateLcStatus(String oid, String lcStatus) { |
| | | com.vci.client.bof.ClientBusinessObject cbo = boService.selectCBOByOid(oid, "oscoderule"); |
| | | if(cbo == null || StringUtils.isBlank(cbo.getOid())){ |
| | | BusinessObject cbo = boService.selectCBOByOid(oid, "oscoderule"); |
| | | if(cbo == null || StringUtils.isBlank(cbo.oid)){ |
| | | return 0; |
| | | } |
| | | lifeCycleService.transStatus(cbo.getBusinessObject(),lcStatus); |
| | | lifeCycleService.transStatus(cbo,lcStatus); |
| | | return 1; |
| | | } |
| | | |