|
|
@@ -1,8 +1,8 @@
|
|
|
package com.tuoren.web.layer.controller;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.tuoren.common.api.CommonResult;
|
|
|
-import com.tuoren.web.layer.entity.BusReceiveRecordUpdateEntity;
|
|
|
+import com.tuoren.web.layer.d0.BusReceiveRecordUpdateDTO;
|
|
|
import com.tuoren.web.layer.service.IBusReceiveRecordUpdateService;
|
|
|
import com.tuoren.web.layer.vo.ReceiveRecordUpdateQueryParam;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -30,17 +30,19 @@ public class BusReceiveRecordUpdateController {
|
|
|
private IBusReceiveRecordUpdateService iBusReceiveRecordEntityService;
|
|
|
|
|
|
/**
|
|
|
- * 分页查询所有数据(模糊查询)
|
|
|
+ * 查询所有数据(模糊查询)
|
|
|
*
|
|
|
- * @param pageNo 页码
|
|
|
- * @param pageSize 条数
|
|
|
* @param param 查询实体
|
|
|
* @return 所有数据
|
|
|
*/
|
|
|
@ApiOperation("分页查询数据")
|
|
|
@PostMapping("/list")
|
|
|
- public CommonResult<IPage<BusReceiveRecordUpdateEntity>> selectCopyAll(Integer pageNo, Integer pageSize, @RequestBody @Validated ReceiveRecordUpdateQueryParam param) {
|
|
|
- IPage<BusReceiveRecordUpdateEntity> result = iBusReceiveRecordEntityService.queryUpdateList(pageNo, pageSize, param);
|
|
|
- return CommonResult.success(result);
|
|
|
+ public CommonResult<BusReceiveRecordUpdateDTO> selectCopyAll(@RequestBody @Validated ReceiveRecordUpdateQueryParam param) {
|
|
|
+ BusReceiveRecordUpdateDTO busReceiveRecordUpdateDTO = iBusReceiveRecordEntityService.queryUpdateList(param);
|
|
|
+ if (ObjectUtil.isNotEmpty(busReceiveRecordUpdateDTO)) {
|
|
|
+ return CommonResult.success(busReceiveRecordUpdateDTO);
|
|
|
+ } else {
|
|
|
+ return CommonResult.noData();
|
|
|
+ }
|
|
|
}
|
|
|
}
|