parent
44c725f8af
commit
05a2d72958
@ -0,0 +1,46 @@
|
||||
package com.glxp.udi.admin.controller.product;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.glxp.udi.admin.common.enums.ResultEnum;
|
||||
import com.glxp.udi.admin.common.res.BaseResponse;
|
||||
import com.glxp.udi.admin.common.util.ResultVOUtils;
|
||||
import com.glxp.udi.admin.entity.product.StackCode;
|
||||
import com.glxp.udi.admin.req.product.FilterStackCodeRequest;
|
||||
import com.glxp.udi.admin.res.PageSimpleResponse;
|
||||
import com.glxp.udi.admin.service.product.StackCodeService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 垛码 - 码表接口
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
public class StackCodeController {
|
||||
|
||||
@Resource
|
||||
private StackCodeService stackCodeService;
|
||||
|
||||
/**
|
||||
* 查询垛码明细
|
||||
*
|
||||
* @param filterStackCodeRequest
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/udims/stack/code/filter")
|
||||
public BaseResponse filterList(FilterStackCodeRequest filterStackCodeRequest) {
|
||||
if (null == filterStackCodeRequest || StrUtil.isBlank(filterStackCodeRequest.getOrderIdFk())) {
|
||||
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
||||
}
|
||||
IPage<StackCode> page = stackCodeService.filterList(filterStackCodeRequest);
|
||||
PageSimpleResponse pageSimpleResponse = new PageSimpleResponse();
|
||||
pageSimpleResponse.setList(page.getRecords());
|
||||
pageSimpleResponse.setTotal(page.getTotal());
|
||||
return ResultVOUtils.success(pageSimpleResponse);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.glxp.udi.admin.req.product;
|
||||
|
||||
import com.glxp.udi.admin.req.ListPageRequest;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 垛码明细查询参数
|
||||
*/
|
||||
@Data
|
||||
public class FilterStackCodeRequest extends ListPageRequest {
|
||||
|
||||
/**
|
||||
* 垛号
|
||||
*/
|
||||
private String orderIdFk;
|
||||
|
||||
}
|
Loading…
Reference in New Issue