56 changed files with 1839 additions and 178 deletions
@ -0,0 +1,100 @@
|
||||
/* |
||||
* 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 java.util.Date; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
|
||||
/** |
||||
* 包件清单详情 实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-30 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_distribution_parcel_details") |
||||
@ApiModel(value = "DistributionParcelDetails对象", description = "包件清单详情") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistributionParcelDetailsEntity 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 String parcelListId; |
||||
/** |
||||
* 订单ID |
||||
*/ |
||||
@ApiModelProperty(value = "订单ID") |
||||
private String stockArticleId; |
||||
/** |
||||
* 包件码 |
||||
*/ |
||||
@ApiModelProperty(value = "包件码") |
||||
private String packageCode; |
||||
/** |
||||
* 编码 |
||||
*/ |
||||
@ApiModelProperty(value = "编码") |
||||
private String encoded; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@ApiModelProperty(value = "名称") |
||||
private String name; |
||||
/** |
||||
* 尺寸 |
||||
*/ |
||||
@ApiModelProperty(value = "尺寸") |
||||
private String dimensions; |
||||
/** |
||||
* 数量 |
||||
*/ |
||||
@ApiModelProperty(value = "数量") |
||||
private Integer number; |
||||
|
||||
} |
@ -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.DistributionParcelDetailsEntity; |
||||
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-06-30 |
||||
*/ |
||||
@FeignClient( |
||||
value = "blade-distributionParcelDetails" |
||||
) |
||||
public interface IDistributionParcelDetailsClient { |
||||
|
||||
String API_PREFIX = "/client"; |
||||
String TOP = API_PREFIX + "/top"; |
||||
|
||||
/** |
||||
* 获取包件清单详情列表 |
||||
* |
||||
* @param current 页号 |
||||
* @param size 页数 |
||||
* @return BladePage |
||||
*/ |
||||
@GetMapping(TOP) |
||||
BladePage<DistributionParcelDetailsEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||
|
||||
} |
@ -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.DistributionParcelDetailsEntity; |
||||
import org.springblade.core.tool.node.INode; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 包件清单详情 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-30 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistributionParcelDetailsVO extends DistributionParcelDetailsEntity { |
||||
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.DistributionParcelDetailsEntity; |
||||
import com.logpm.distribution.vo.DistributionParcelDetailsVO; |
||||
import com.logpm.distribution.excel.DistributionParcelDetailsExcel; |
||||
import com.logpm.distribution.service.IDistributionParcelDetailsService; |
||||
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-06-30 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/distributionParcelDetails") |
||||
@Api(value = "包件清单详情", tags = "包件清单详情接口") |
||||
public class DistributionParcelDetailsController extends BladeController { |
||||
|
||||
private final IDistributionParcelDetailsService distributionParcelDetailsService; |
||||
|
||||
/** |
||||
* 包件清单详情 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入distributionParcelDetails") |
||||
public R<DistributionParcelDetailsEntity> detail(DistributionParcelDetailsEntity distributionParcelDetails) { |
||||
DistributionParcelDetailsEntity detail = distributionParcelDetailsService.getOne(Condition.getQueryWrapper(distributionParcelDetails)); |
||||
return R.data(detail); |
||||
} |
||||
/** |
||||
* 包件清单详情 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入distributionParcelDetails") |
||||
public R<IPage<DistributionParcelDetailsEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionParcelDetails, Query query) { |
||||
IPage<DistributionParcelDetailsEntity> pages = distributionParcelDetailsService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionParcelDetails, DistributionParcelDetailsEntity.class)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 包件清单详情 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入distributionParcelDetails") |
||||
public R<IPage<DistributionParcelDetailsVO>> page(DistributionParcelDetailsVO distributionParcelDetails, Query query) { |
||||
IPage<DistributionParcelDetailsVO> pages = distributionParcelDetailsService.selectDistributionParcelDetailsPage(Condition.getPage(query), distributionParcelDetails); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 包件清单详情 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入distributionParcelDetails") |
||||
public R save(@Valid @RequestBody DistributionParcelDetailsEntity distributionParcelDetails) { |
||||
return R.status(distributionParcelDetailsService.save(distributionParcelDetails)); |
||||
} |
||||
|
||||
/** |
||||
* 包件清单详情 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入distributionParcelDetails") |
||||
public R update(@Valid @RequestBody DistributionParcelDetailsEntity distributionParcelDetails) { |
||||
return R.status(distributionParcelDetailsService.updateById(distributionParcelDetails)); |
||||
} |
||||
|
||||
/** |
||||
* 包件清单详情 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入distributionParcelDetails") |
||||
public R submit(@Valid @RequestBody DistributionParcelDetailsEntity distributionParcelDetails) { |
||||
return R.status(distributionParcelDetailsService.saveOrUpdate(distributionParcelDetails)); |
||||
} |
||||
|
||||
/** |
||||
* 包件清单详情 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(distributionParcelDetailsService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-distributionParcelDetails") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出数据", notes = "传入distributionParcelDetails") |
||||
public void exportDistributionParcelDetails(@ApiIgnore @RequestParam Map<String, Object> distributionParcelDetails, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<DistributionParcelDetailsEntity> queryWrapper = Condition.getQueryWrapper(distributionParcelDetails, DistributionParcelDetailsEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(DistributionParcelDetails::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
queryWrapper.lambda().eq(DistributionParcelDetailsEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||
List<DistributionParcelDetailsExcel> list = distributionParcelDetailsService.exportDistributionParcelDetails(queryWrapper); |
||||
ExcelUtil.export(response, "包件清单详情数据" + DateUtil.time(), "包件清单详情数据表", list, DistributionParcelDetailsExcel.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.DistributionParcelDetailsEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 包件清单详情 数据传输对象实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-30 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistributionParcelDetailsDTO extends DistributionParcelDetailsEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,31 @@
|
||||
package com.logpm.distribution.dto; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import javax.validation.constraints.NotEmpty; |
||||
|
||||
@Data |
||||
public class DistrilbutionloadingackDTO { |
||||
|
||||
|
||||
/** |
||||
* pda信息 |
||||
*/ |
||||
@ApiModelProperty(value = "pda信息") |
||||
private String pdaInformation; |
||||
|
||||
/** |
||||
* 扫描包条信息 |
||||
*/ |
||||
@ApiModelProperty(value = "扫描包条信息") |
||||
@NotEmpty(message = "扫描单号不能为空") |
||||
private String barcode; |
||||
|
||||
|
||||
/** |
||||
* 确认类型 |
||||
*/ |
||||
@ApiModelProperty(value = "确认类型(1-整车确认,2-零星确认)") |
||||
private Integer ackType; |
||||
} |
@ -0,0 +1,129 @@
|
||||
/* |
||||
* 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 java.util.Date; |
||||
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-06-30 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class DistributionParcelDetailsExcel implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 租户号 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("租户号") |
||||
private String tenantId; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否已删除") |
||||
private Integer isDeleted; |
||||
/** |
||||
* 预留1 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留1") |
||||
private String reserve1; |
||||
/** |
||||
* 预留2 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留2") |
||||
private String reserve2; |
||||
/** |
||||
* 预留3 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留3") |
||||
private String reserve3; |
||||
/** |
||||
* 预留4 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留4") |
||||
private String reserve4; |
||||
/** |
||||
* 预留5 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预留5") |
||||
private String reserve5; |
||||
/** |
||||
* 包件清单id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("包件清单id") |
||||
private String parcelListId; |
||||
/** |
||||
* 订单ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("订单ID") |
||||
private String stockArticleId; |
||||
/** |
||||
* 包件码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("包件码") |
||||
private String packageCode; |
||||
/** |
||||
* 编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("编码") |
||||
private String encoded; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("名称") |
||||
private String name; |
||||
/** |
||||
* 尺寸 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("尺寸") |
||||
private String dimensions; |
||||
/** |
||||
* 数量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("数量") |
||||
private Integer number; |
||||
|
||||
} |
@ -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.DistributionParcelDetailsEntity; |
||||
import com.logpm.distribution.service.IDistributionParcelDetailsService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 包件清单详情 Feign实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-30 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class DistributionParcelDetailsClient implements IDistributionParcelDetailsClient { |
||||
|
||||
private final IDistributionParcelDetailsService distributionParcelDetailsService; |
||||
|
||||
@Override |
||||
@GetMapping(TOP) |
||||
public BladePage<DistributionParcelDetailsEntity> top(Integer current, Integer size) { |
||||
Query query = new Query(); |
||||
query.setCurrent(current); |
||||
query.setSize(size); |
||||
IPage<DistributionParcelDetailsEntity> page = distributionParcelDetailsService.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.DistributionParcelDetailsEntity; |
||||
import com.logpm.distribution.vo.DistributionParcelDetailsVO; |
||||
import com.logpm.distribution.excel.DistributionParcelDetailsExcel; |
||||
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-06-30 |
||||
*/ |
||||
public interface DistributionParcelDetailsMapper extends BaseMapper<DistributionParcelDetailsEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param distributionParcelDetails |
||||
* @return |
||||
*/ |
||||
List<DistributionParcelDetailsVO> selectDistributionParcelDetailsPage(IPage page, DistributionParcelDetailsVO distributionParcelDetails); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<DistributionParcelDetailsExcel> exportDistributionParcelDetails(@Param("ew") Wrapper<DistributionParcelDetailsEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,40 @@
|
||||
<?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.DistributionParcelDetailsMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="distributionParcelDetailsResultMap" type="com.logpm.distribution.entity.DistributionParcelDetailsEntity"> |
||||
<result column="tenant_id" property="tenantId"/> |
||||
<result column="create_user" property="createUser"/> |
||||
<result column="create_time" property="createTime"/> |
||||
<result column="update_user" property="updateUser"/> |
||||
<result column="update_time" property="updateTime"/> |
||||
<result column="status" property="status"/> |
||||
<result column="is_deleted" property="isDeleted"/> |
||||
<result column="create_dept" property="createDept"/> |
||||
<result column="id" property="id"/> |
||||
<result column="reserve1" property="reserve1"/> |
||||
<result column="reserve2" property="reserve2"/> |
||||
<result column="reserve3" property="reserve3"/> |
||||
<result column="reserve4" property="reserve4"/> |
||||
<result column="reserve5" property="reserve5"/> |
||||
<result column="parcel_list_id" property="parcelListId"/> |
||||
<result column="stock_article_id" property="stockArticleId"/> |
||||
<result column="package_code" property="packageCode"/> |
||||
<result column="encoded" property="encoded"/> |
||||
<result column="name" property="name"/> |
||||
<result column="dimensions" property="dimensions"/> |
||||
<result column="number" property="number"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectDistributionParcelDetailsPage" resultMap="distributionParcelDetailsResultMap"> |
||||
select * from logpm_distribution_parcel_details where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="exportDistributionParcelDetails" resultType="com.logpm.distribution.excel.DistributionParcelDetailsExcel"> |
||||
SELECT * FROM logpm_distribution_parcel_details ${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.DistributionParcelDetailsEntity; |
||||
import com.logpm.distribution.vo.DistributionParcelDetailsVO; |
||||
import com.logpm.distribution.excel.DistributionParcelDetailsExcel; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 包件清单详情 服务类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-30 |
||||
*/ |
||||
public interface IDistributionParcelDetailsService extends BaseService<DistributionParcelDetailsEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param distributionParcelDetails |
||||
* @return |
||||
*/ |
||||
IPage<DistributionParcelDetailsVO> selectDistributionParcelDetailsPage(IPage<DistributionParcelDetailsVO> page, DistributionParcelDetailsVO distributionParcelDetails); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<DistributionParcelDetailsExcel> exportDistributionParcelDetails(Wrapper<DistributionParcelDetailsEntity> 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.DistributionParcelDetailsEntity; |
||||
import com.logpm.distribution.vo.DistributionParcelDetailsVO; |
||||
import com.logpm.distribution.excel.DistributionParcelDetailsExcel; |
||||
import com.logpm.distribution.mapper.DistributionParcelDetailsMapper; |
||||
import com.logpm.distribution.service.IDistributionParcelDetailsService; |
||||
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-06-30 |
||||
*/ |
||||
@Service |
||||
public class DistributionParcelDetailsServiceImpl extends BaseServiceImpl<DistributionParcelDetailsMapper, DistributionParcelDetailsEntity> implements IDistributionParcelDetailsService { |
||||
|
||||
@Override |
||||
public IPage<DistributionParcelDetailsVO> selectDistributionParcelDetailsPage(IPage<DistributionParcelDetailsVO> page, DistributionParcelDetailsVO distributionParcelDetails) { |
||||
return page.setRecords(baseMapper.selectDistributionParcelDetailsPage(page, distributionParcelDetails)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<DistributionParcelDetailsExcel> exportDistributionParcelDetails(Wrapper<DistributionParcelDetailsEntity> queryWrapper) { |
||||
List<DistributionParcelDetailsExcel> distributionParcelDetailsList = baseMapper.exportDistributionParcelDetails(queryWrapper); |
||||
//distributionParcelDetailsList.forEach(distributionParcelDetails -> {
|
||||
// distributionParcelDetails.setTypeName(DictCache.getValue(DictEnum.YES_NO, DistributionParcelDetails.getType()));
|
||||
//});
|
||||
return distributionParcelDetailsList; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue