Commit cf881f2c authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 9cdf9f97
package com.mortals.xhx.module.platform.service.impl; package com.mortals.xhx.module.platform.service.impl;
import cn.hutool.core.lang.PatternPool; import cn.hutool.core.lang.PatternPool;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import org.springframework.stereotype.Service; import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.xhx.module.platform.dao.PlatformDao; import com.mortals.xhx.module.platform.dao.PlatformDao;
import com.mortals.xhx.module.platform.model.PlatformEntity; import com.mortals.xhx.module.platform.model.PlatformEntity;
import com.mortals.xhx.module.platform.service.PlatformService; import com.mortals.xhx.module.platform.service.PlatformService;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
/** /**
...@@ -17,7 +18,7 @@ import org.springframework.util.ObjectUtils; ...@@ -17,7 +18,7 @@ import org.springframework.util.ObjectUtils;
* @date 2022-06-27 * @date 2022-06-27
*/ */
@Service("platformService") @Service("platformService")
public class PlatformServiceImpl extends AbstractCRUDServiceImpl<PlatformDao, PlatformEntity, Long> implements PlatformService { public class PlatformServiceImpl extends AbstractCRUDCacheServiceImpl<PlatformDao, PlatformEntity, Long> implements PlatformService {
@Override @Override
protected void validData(PlatformEntity entity, Context context) throws AppException { protected void validData(PlatformEntity entity, Context context) throws AppException {
......
...@@ -8,7 +8,7 @@ import com.mortals.framework.ap.GlobalSysInfo; ...@@ -8,7 +8,7 @@ import com.mortals.framework.ap.GlobalSysInfo;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.framework.model.OrderCol; import com.mortals.framework.model.OrderCol;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.framework.util.DateUtils; import com.mortals.framework.util.DateUtils;
import com.mortals.xhx.base.system.message.impl.MessageProducer; import com.mortals.xhx.base.system.message.impl.MessageProducer;
import com.mortals.xhx.busiz.rsp.ProductVersionInfo; import com.mortals.xhx.busiz.rsp.ProductVersionInfo;
...@@ -61,7 +61,7 @@ import static com.mortals.xhx.common.key.ErrorCode.DEVICE_VERSION_UNEXIST_CONTEN ...@@ -61,7 +61,7 @@ import static com.mortals.xhx.common.key.ErrorCode.DEVICE_VERSION_UNEXIST_CONTEN
*/ */
@Service("productService") @Service("productService")
@Slf4j @Slf4j
public class ProductServiceImpl extends AbstractCRUDServiceImpl<ProductDao, ProductEntity, Long> implements ProductService { public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao, ProductEntity, Long> implements ProductService {
@Autowired @Autowired
private ProductVersionService productVersionService; private ProductVersionService productVersionService;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment