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

添加客户端资源部署

parent 712008c0
......@@ -47,6 +47,18 @@ public class DeviceModuleDistributeServiceImpl extends AbstractCRUDServiceImpl<D
super.saveBefore(entity, context);
}
@Override
protected void updateBefore(DeviceModuleDistributeEntity entity, Context context) throws AppException {
ProductEntity productEntity = productService.get(entity.getProductId(), context);
entity.setProductCode(productEntity.getProductCode());
entity.setProductName(productEntity.getProductName());
entity.setImageResolutionValue(ImageReEnum.getByValue(Integer.parseInt(entity.getImageResolution())).getDesc());
super.updateBefore(entity, context);
}
@Override
public void active(DeviceModuleDistributeEntity distributeEntity, Context context) {
//判断文件是否存在
......
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