You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.9 KiB
Java
59 lines
1.9 KiB
Java
2 years ago
|
package com.glxp.api.controller.inout;
|
||
|
|
||
2 years ago
|
import com.github.pagehelper.PageInfo;
|
||
2 years ago
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
||
|
import com.glxp.api.common.res.BaseResponse;
|
||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||
|
import com.glxp.api.dao.inout.IoOrderDetailCodeDao;
|
||
|
import com.glxp.api.entity.inout.IoOrderDetailCodeEntity;
|
||
2 years ago
|
import com.glxp.api.req.inout.FilterOrderDetailCodeRequest;
|
||
2 years ago
|
import com.glxp.api.res.PageSimpleResponse;
|
||
2 years ago
|
import com.glxp.api.res.inout.IoOrderDetailCodeResponse;
|
||
|
import com.glxp.api.service.inout.IoOrderDetailCodeService;
|
||
2 years ago
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
import javax.annotation.Resource;
|
||
|
import java.util.List;
|
||
|
|
||
2 years ago
|
/**
|
||
|
* 单据扫码详情接口
|
||
|
*/
|
||
2 years ago
|
@RestController
|
||
2 years ago
|
public class IoOrderDetailCodeController {
|
||
2 years ago
|
|
||
|
|
||
|
@Resource
|
||
|
IoOrderDetailCodeDao ioOrderDetailCodeDao;
|
||
|
|
||
2 years ago
|
@Resource
|
||
|
private IoOrderDetailCodeService ioOrderDetailCodeService;
|
||
|
|
||
2 years ago
|
|
||
2 years ago
|
//获取新增扫码单据详情---临时接口查询
|
||
|
@AuthRuleAnnotation("")
|
||
|
@GetMapping("udiwms/inout/order/draft/detailCode")
|
||
|
public BaseResponse getDraftsDetailCode() {
|
||
|
List<IoOrderDetailCodeEntity> orderEntityList = ioOrderDetailCodeDao.selectList();
|
||
|
PageSimpleResponse<IoOrderDetailCodeEntity> pageSimpleResponse = new PageSimpleResponse<>();
|
||
|
pageSimpleResponse.setTotal(100l);
|
||
|
pageSimpleResponse.setList(orderEntityList);
|
||
|
return ResultVOUtils.success(pageSimpleResponse);
|
||
|
}
|
||
|
|
||
2 years ago
|
/**
|
||
|
* 查询单据详情
|
||
|
*
|
||
2 years ago
|
* @param detailCodeRequest
|
||
2 years ago
|
* @return
|
||
|
*/
|
||
|
@GetMapping("udiwms/inout/order/filterList")
|
||
2 years ago
|
public BaseResponse filterList(FilterOrderDetailCodeRequest detailCodeRequest) {
|
||
|
List<IoOrderDetailCodeResponse> list = ioOrderDetailCodeService.filterList(detailCodeRequest);
|
||
|
PageInfo<IoOrderDetailCodeResponse> pageInfo = new PageInfo<>(list);
|
||
|
return ResultVOUtils.page(pageInfo);
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
2 years ago
|
|
||
|
}
|