21 changed files with 951 additions and 42 deletions
@ -0,0 +1,76 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_distrilbution_bill_stock") |
||||
@ApiModel(value = "DistrilbutionBillStock对象", description = "提货单订单信息关联") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistrilbutionBillStockEntity extends TenantEntity { |
||||
|
||||
|
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ApiModelProperty(value = "预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ApiModelProperty(value = "预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ApiModelProperty(value = "预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ApiModelProperty(value = "预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ApiModelProperty(value = "预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 提货单ID |
||||
*/ |
||||
@ApiModelProperty(value = "提货单ID") |
||||
private Long billLadingId; |
||||
/** |
||||
* 在库订单 |
||||
*/ |
||||
@ApiModelProperty(value = "在库订单") |
||||
private Long stockArticleId; |
||||
|
||||
|
||||
} |
@ -0,0 +1,49 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.feign; |
||||
|
||||
import org.springblade.core.mp.support.BladePage; |
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 Feign接口类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@FeignClient( |
||||
value = "blade-distrilbutionBillStock" |
||||
) |
||||
public interface IDistrilbutionBillStockClient { |
||||
|
||||
String API_PREFIX = "/cl1ient"; |
||||
String TOP = API_PREFIX + "/top"; |
||||
|
||||
/** |
||||
* 获取提货单订单信息关联列表 |
||||
* |
||||
* @param current 页号 |
||||
* @param size 页数 |
||||
* @return BladePage |
||||
*/ |
||||
@GetMapping(TOP) |
||||
BladePage<DistrilbutionBillStockEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||
|
||||
} |
@ -0,0 +1,51 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.vo; |
||||
|
||||
import com.logpm.distribution.entity.DistributionDeliveryChargeEntity; |
||||
import com.logpm.distribution.entity.DistributionPrintEntity; |
||||
import com.logpm.distribution.entity.DistrilbutionBillLadingEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 提货单 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-14 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistrilbutionBillLadingDetailsVO extends DistrilbutionBillLadingEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 订单数据 |
||||
*/ |
||||
private List<DistributionStockArticleVO> stockArticleVOS; |
||||
/** |
||||
* 库存品数据 |
||||
*/ |
||||
private List<DistributionStockListVO> stockListVOS; |
||||
/** |
||||
* 图片信息 |
||||
*/ |
||||
private List<DistributionPrintEntity> printVOS; |
||||
|
||||
|
||||
} |
@ -0,0 +1,60 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.vo; |
||||
|
||||
import com.logpm.distribution.entity.DistributionDeliveryChargeEntity; |
||||
import com.logpm.distribution.entity.DistrilbutionBillLadingEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 提货单 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-14 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistrilbutionBillLadingOwnVO extends DistrilbutionBillLadingEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
private String orderSelfNumbering; |
||||
private String descriptionGoods; |
||||
private Integer totalNumber; |
||||
private String stockupStatus; |
||||
//库位信息
|
||||
private String stockipAllocation; |
||||
private Integer esau; |
||||
|
||||
private String packetBarCode; |
||||
private String firsts; |
||||
private String second; |
||||
private String thirdProduct; |
||||
//物料名称
|
||||
private String materialName; |
||||
private String goodsAllocation; |
||||
private String pallet; |
||||
private String StockUp; |
||||
private String sku; |
||||
private Integer quantity; |
||||
private Integer number; |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,35 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.vo; |
||||
|
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import org.springblade.core.tool.node.INode; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistrilbutionBillStockVO extends DistrilbutionBillStockEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,150 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.controller; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import javax.validation.Valid; |
||||
|
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import com.logpm.distribution.vo.DistrilbutionBillStockVO; |
||||
import com.logpm.distribution.excel.DistrilbutionBillStockExcel; |
||||
import com.logpm.distribution.service.IDistrilbutionBillStockService; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.tool.constant.BladeConstant; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
import java.util.Map; |
||||
import java.util.List; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 控制器 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("blade-distrilbutionBillStock/distrilbutionBillStock") |
||||
@Api(value = "提货单订单信息关联", tags = "提货单订单信息关联接口") |
||||
public class DistrilbutionBillStockController extends BladeController { |
||||
|
||||
private final IDistrilbutionBillStockService distrilbutionBillStockService; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入distrilbutionBillStock") |
||||
public R<DistrilbutionBillStockEntity> detail(DistrilbutionBillStockEntity distrilbutionBillStock) { |
||||
DistrilbutionBillStockEntity detail = distrilbutionBillStockService.getOne(Condition.getQueryWrapper(distrilbutionBillStock)); |
||||
return R.data(detail); |
||||
} |
||||
/** |
||||
* 提货单订单信息关联 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入distrilbutionBillStock") |
||||
public R<IPage<DistrilbutionBillStockEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillStock, Query query) { |
||||
IPage<DistrilbutionBillStockEntity> pages = distrilbutionBillStockService.page(Condition.getPage(query), Condition.getQueryWrapper(distrilbutionBillStock, DistrilbutionBillStockEntity.class)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 提货单订单信息关联 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入distrilbutionBillStock") |
||||
public R<IPage<DistrilbutionBillStockVO>> page(DistrilbutionBillStockVO distrilbutionBillStock, Query query) { |
||||
IPage<DistrilbutionBillStockVO> pages = distrilbutionBillStockService.selectDistrilbutionBillStockPage(Condition.getPage(query), distrilbutionBillStock); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 提货单订单信息关联 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入distrilbutionBillStock") |
||||
public R save(@Valid @RequestBody DistrilbutionBillStockEntity distrilbutionBillStock) { |
||||
return R.status(distrilbutionBillStockService.save(distrilbutionBillStock)); |
||||
} |
||||
|
||||
/** |
||||
* 提货单订单信息关联 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入distrilbutionBillStock") |
||||
public R update(@Valid @RequestBody DistrilbutionBillStockEntity distrilbutionBillStock) { |
||||
return R.status(distrilbutionBillStockService.updateById(distrilbutionBillStock)); |
||||
} |
||||
|
||||
/** |
||||
* 提货单订单信息关联 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入distrilbutionBillStock") |
||||
public R submit(@Valid @RequestBody DistrilbutionBillStockEntity distrilbutionBillStock) { |
||||
return R.status(distrilbutionBillStockService.saveOrUpdate(distrilbutionBillStock)); |
||||
} |
||||
|
||||
/** |
||||
* 提货单订单信息关联 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(distrilbutionBillStockService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-distrilbutionBillStock") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出数据", notes = "传入distrilbutionBillStock") |
||||
public void exportDistrilbutionBillStock(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillStock, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<DistrilbutionBillStockEntity> queryWrapper = Condition.getQueryWrapper(distrilbutionBillStock, DistrilbutionBillStockEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(DistrilbutionBillStock::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
queryWrapper.lambda().eq(DistrilbutionBillStockEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||
List<DistrilbutionBillStockExcel> list = distrilbutionBillStockService.exportDistrilbutionBillStock(queryWrapper); |
||||
ExcelUtil.export(response, "提货单订单信息关联数据" + DateUtil.time(), "提货单订单信息关联数据表", list, DistrilbutionBillStockExcel.class); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.dto; |
||||
|
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 数据传输对象实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistrilbutionBillStockDTO extends DistrilbutionBillStockEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,44 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
|
||||
|
||||
/** |
||||
* 提货单订单信息关联 Excel实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class DistrilbutionBillStockExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
|
||||
} |
@ -0,0 +1,53 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.feign; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.mp.support.BladePage; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import com.logpm.distribution.service.IDistrilbutionBillStockService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 Feign实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class DistrilbutionBillStockClient implements IDistrilbutionBillStockClient { |
||||
|
||||
private final IDistrilbutionBillStockService distrilbutionBillStockService; |
||||
|
||||
@Override |
||||
@GetMapping(TOP) |
||||
public BladePage<DistrilbutionBillStockEntity> top(Integer current, Integer size) { |
||||
Query query = new Query(); |
||||
query.setCurrent(current); |
||||
query.setSize(size); |
||||
IPage<DistrilbutionBillStockEntity> page = distrilbutionBillStockService.page(Condition.getPage(query)); |
||||
return BladePage.of(page); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,54 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.mapper; |
||||
|
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import com.logpm.distribution.vo.DistrilbutionBillStockVO; |
||||
import com.logpm.distribution.excel.DistrilbutionBillStockExcel; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 Mapper 接口 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
public interface DistrilbutionBillStockMapper extends BaseMapper<DistrilbutionBillStockEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param distrilbutionBillStock |
||||
* @return |
||||
*/ |
||||
List<DistrilbutionBillStockVO> selectDistrilbutionBillStockPage(IPage page, DistrilbutionBillStockVO distrilbutionBillStock); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<DistrilbutionBillStockExcel> exportDistrilbutionBillStock(@Param("ew") Wrapper<DistrilbutionBillStockEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.logpm.distribution.mapper.DistrilbutionBillStockMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="distrilbutionBillStockResultMap" type="com.logpm.distribution.entity.DistrilbutionBillStockEntity"> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectDistrilbutionBillStockPage" resultMap="distrilbutionBillStockResultMap"> |
||||
select * from logpm_distrilbution_bill_stock where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="exportDistrilbutionBillStock" resultType="com.logpm.distribution.excel.DistrilbutionBillStockExcel"> |
||||
SELECT * FROM logpm_distrilbution_bill_stock ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
@ -0,0 +1,52 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import com.logpm.distribution.vo.DistrilbutionBillStockVO; |
||||
import com.logpm.distribution.excel.DistrilbutionBillStockExcel; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 服务类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
public interface IDistrilbutionBillStockService extends BaseService<DistrilbutionBillStockEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param distrilbutionBillStock |
||||
* @return |
||||
*/ |
||||
IPage<DistrilbutionBillStockVO> selectDistrilbutionBillStockPage(IPage<DistrilbutionBillStockVO> page, DistrilbutionBillStockVO distrilbutionBillStock); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<DistrilbutionBillStockExcel> exportDistrilbutionBillStock(Wrapper<DistrilbutionBillStockEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,54 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.distribution.service.impl; |
||||
|
||||
import com.logpm.distribution.entity.DistrilbutionBillStockEntity; |
||||
import com.logpm.distribution.vo.DistrilbutionBillStockVO; |
||||
import com.logpm.distribution.excel.DistrilbutionBillStockExcel; |
||||
import com.logpm.distribution.mapper.DistrilbutionBillStockMapper; |
||||
import com.logpm.distribution.service.IDistrilbutionBillStockService; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 提货单订单信息关联 服务实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-07-25 |
||||
*/ |
||||
@Service |
||||
public class DistrilbutionBillStockServiceImpl extends BaseServiceImpl<DistrilbutionBillStockMapper, DistrilbutionBillStockEntity> implements IDistrilbutionBillStockService { |
||||
|
||||
@Override |
||||
public IPage<DistrilbutionBillStockVO> selectDistrilbutionBillStockPage(IPage<DistrilbutionBillStockVO> page, DistrilbutionBillStockVO distrilbutionBillStock) { |
||||
return page.setRecords(baseMapper.selectDistrilbutionBillStockPage(page, distrilbutionBillStock)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<DistrilbutionBillStockExcel> exportDistrilbutionBillStock(Wrapper<DistrilbutionBillStockEntity> queryWrapper) { |
||||
List<DistrilbutionBillStockExcel> distrilbutionBillStockList = baseMapper.exportDistrilbutionBillStock(queryWrapper); |
||||
//distrilbutionBillStockList.forEach(distrilbutionBillStock -> {
|
||||
// distrilbutionBillStock.setTypeName(DictCache.getValue(DictEnum.YES_NO, DistrilbutionBillStock.getType()));
|
||||
//});
|
||||
return distrilbutionBillStockList; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue