录波文件下载优化

This commit is contained in:
xy
2024-09-14 11:43:44 +08:00
parent d54ec83d1c
commit 5a6677ce3d
5 changed files with 35 additions and 0 deletions

View File

@@ -297,4 +297,13 @@ public class EquipmentDeliveryController extends BaseController {
}
}
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
@PostMapping("/getAll")
@ApiOperation("获取所有装置")
public HttpResult<List<CsEquipmentDeliveryPO>> getAll(){
String methodDescribe = getMethodDescribe("getAll");
List<CsEquipmentDeliveryPO> result = csEquipmentDeliveryService.getAll();
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
}
}

View File

@@ -14,6 +14,7 @@ import com.njcn.csdevice.pojo.vo.ProjectEquipmentVO;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
*
@@ -116,4 +117,10 @@ public interface CsEquipmentDeliveryService extends IService<CsEquipmentDelivery
void updateModuleNumber(String nDid, Integer number);
boolean rebootDevice(String nDid);
/**
* 获取所有装置信息
* @return
*/
List<CsEquipmentDeliveryPO> getAll();
}

View File

@@ -619,6 +619,11 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl<CsEquipmentDeliv
return result;
}
@Override
public List<CsEquipmentDeliveryPO> getAll() {
return this.lambdaQuery().ne(CsEquipmentDeliveryPO::getRunStatus,0).list();
}
/**
* 根据ndid生成二维码
* @param ndid