赞
踩
- public interface WmsSendOrderLinesMapper extends BaseMapperPlus<WmsSendOrderLinesMapper, WmsSendOrderLines, WmsSendOrderLinesVo> {
- List<WmsSendOrderLines> getBindProductLines(@Param(Constants.WRAPPER) Wrapper<WmsSendOrderLinesBo> queryWrapper);
- }
- <select id="getBindProductLines" resultType="com.smart.wms.send.bean.WmsSendOrderLines">
- select wsol.*, wp.bind_id
- from wms_send_order_lines wsol
- left join wms_product wp on wp.id = wsol.product_id
- ${ew.getCustomSqlSegment}
- </select>
List<WmsSendOrderLines> getBindProductLines(WmsSendOrderLinesBo bo);
- @Override
- public List<WmsSendOrderLines> getBindProductLines(WmsSendOrderLinesBo bo) {
- return baseMapper.getBindProductLines(buildBindQueryWrapper(bo));
- }
-
- private QueryWrapper<WmsSendOrderLinesBo> buildBindQueryWrapper(WmsSendOrderLinesBo bo) {
- QueryWrapper<WmsSendOrderLinesBo> lqw = Wrappers.query();
- lqw.eq(bo.getSendOrderId() != null, "wsol.send_order_id", bo.getSendOrderId());
- lqw.in(CollUtil.isNotEmpty(bo.getReturnOrderIds()),"wsol.returnOrderIds", bo.getReturnOrderIds());
- lqw.groupBy("wsol.return_order_id,wsol.item_bar_code");
- return lqw;
- }
-
- @RequestMapping("/test")
- public void test() {
- List<WmsSendOrderLines> orderLinesList = iWmsSendOrderLinesService.getBindProductLines(wmsSendOrderLinesBo);
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。