22 changed files with 950 additions and 41 deletions
@ -0,0 +1,85 @@
|
||||
/* |
||||
* 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-09-28 |
||||
*/ |
||||
@Data |
||||
@TableName("logpm_distribution_sign_print") |
||||
@ApiModel(value = "DistributionSignPrint对象", description = "签收图片") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistributionSignPrintEntity 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; |
||||
/** |
||||
* 类型 |
||||
*/ |
||||
@ApiModelProperty(value = "类型") |
||||
private String type; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@ApiModelProperty(value = "名称") |
||||
private String name; |
||||
/** |
||||
* 路径 |
||||
*/ |
||||
@ApiModelProperty(value = "路径") |
||||
private String urlRoute; |
||||
/** |
||||
* 预约id |
||||
*/ |
||||
@ApiModelProperty(value = "预约id") |
||||
private Long reservationId; |
||||
|
||||
} |
@ -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.DistributionSignPrintEntity; |
||||
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-09-28 |
||||
*/ |
||||
@FeignClient( |
||||
value = "blade-distributionSignPrint" |
||||
) |
||||
public interface IDistributionSignPrintClient { |
||||
|
||||
String API_PREFIX = "/client"; |
||||
String TOP = API_PREFIX + "/top"; |
||||
|
||||
/** |
||||
* 获取签收图片列表 |
||||
* |
||||
* @param current 页号 |
||||
* @param size 页数 |
||||
* @return BladePage |
||||
*/ |
||||
@GetMapping(TOP) |
||||
BladePage<DistributionSignPrintEntity> 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.DistributionSignPrintEntity; |
||||
import org.springblade.core.tool.node.INode; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 签收图片 视图实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-09-28 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistributionSignPrintVO extends DistributionSignPrintEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,20 @@
|
||||
package com.logpm.distribution.vo; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
public class DistributionStockListAllocationVO { |
||||
|
||||
private String allocationTitle; // 货位
|
||||
private String marketName; //商场名称
|
||||
private Integer num; //托盘数量
|
||||
private Date createTime; // 上架时间
|
||||
private String cargoUnit; // 单位
|
||||
private Boolean unpack; // 是否拆包
|
||||
private Integer quantityStock; // 在库数量
|
||||
private Integer unpackingQuantity; // 拆包数量
|
||||
private String descriptionGoods; // 物料名称
|
||||
|
||||
} |
@ -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.DistributionSignPrintEntity; |
||||
import com.logpm.distribution.vo.DistributionSignPrintVO; |
||||
import com.logpm.distribution.excel.DistributionSignPrintExcel; |
||||
import com.logpm.distribution.service.IDistributionSignPrintService; |
||||
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-09-28 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/distributionSignPrint") |
||||
@Api(value = "签收图片", tags = "签收图片接口") |
||||
public class DistributionSignPrintController extends BladeController { |
||||
|
||||
private final IDistributionSignPrintService distributionSignPrintService; |
||||
|
||||
/** |
||||
* 签收图片 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@ApiOperation(value = "详情", notes = "传入distributionSignPrint") |
||||
public R<DistributionSignPrintEntity> detail(DistributionSignPrintEntity distributionSignPrint) { |
||||
DistributionSignPrintEntity detail = distributionSignPrintService.getOne(Condition.getQueryWrapper(distributionSignPrint)); |
||||
return R.data(detail); |
||||
} |
||||
/** |
||||
* 签收图片 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入distributionSignPrint") |
||||
public R<IPage<DistributionSignPrintEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionSignPrint, Query query) { |
||||
IPage<DistributionSignPrintEntity> pages = distributionSignPrintService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionSignPrint, DistributionSignPrintEntity.class)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 签收图片 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@ApiOperation(value = "分页", notes = "传入distributionSignPrint") |
||||
public R<IPage<DistributionSignPrintVO>> page(DistributionSignPrintVO distributionSignPrint, Query query) { |
||||
IPage<DistributionSignPrintVO> pages = distributionSignPrintService.selectDistributionSignPrintPage(Condition.getPage(query), distributionSignPrint); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 签收图片 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@ApiOperation(value = "新增", notes = "传入distributionSignPrint") |
||||
public R save(@Valid @RequestBody DistributionSignPrintEntity distributionSignPrint) { |
||||
return R.status(distributionSignPrintService.save(distributionSignPrint)); |
||||
} |
||||
|
||||
/** |
||||
* 签收图片 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@ApiOperation(value = "修改", notes = "传入distributionSignPrint") |
||||
public R update(@Valid @RequestBody DistributionSignPrintEntity distributionSignPrint) { |
||||
return R.status(distributionSignPrintService.updateById(distributionSignPrint)); |
||||
} |
||||
|
||||
/** |
||||
* 签收图片 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@ApiOperation(value = "新增或修改", notes = "传入distributionSignPrint") |
||||
public R submit(@Valid @RequestBody DistributionSignPrintEntity distributionSignPrint) { |
||||
return R.status(distributionSignPrintService.saveOrUpdate(distributionSignPrint)); |
||||
} |
||||
|
||||
/** |
||||
* 签收图片 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(distributionSignPrintService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@GetMapping("/export-distributionSignPrint") |
||||
@ApiOperationSupport(order = 9) |
||||
@ApiOperation(value = "导出数据", notes = "传入distributionSignPrint") |
||||
public void exportDistributionSignPrint(@ApiIgnore @RequestParam Map<String, Object> distributionSignPrint, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<DistributionSignPrintEntity> queryWrapper = Condition.getQueryWrapper(distributionSignPrint, DistributionSignPrintEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(DistributionSignPrint::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
queryWrapper.lambda().eq(DistributionSignPrintEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||
List<DistributionSignPrintExcel> list = distributionSignPrintService.exportDistributionSignPrint(queryWrapper); |
||||
ExcelUtil.export(response, "签收图片数据" + DateUtil.time(), "签收图片数据表", list, DistributionSignPrintExcel.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.DistributionSignPrintEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 签收图片 数据传输对象实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-09-28 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DistributionSignPrintDTO extends DistributionSignPrintEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,111 @@
|
||||
/* |
||||
* 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-09-28 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class DistributionSignPrintExcel 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; |
||||
/** |
||||
* 类型 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("类型") |
||||
private Integer type; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("名称") |
||||
private String name; |
||||
/** |
||||
* 路径 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("路径") |
||||
private String urlRoute; |
||||
/** |
||||
* 预约id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("预约id") |
||||
private String reservationId; |
||||
|
||||
} |
@ -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.DistributionSignPrintEntity; |
||||
import com.logpm.distribution.service.IDistributionSignPrintService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* 签收图片 Feign实现类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-09-28 |
||||
*/ |
||||
@ApiIgnore() |
||||
@RestController |
||||
@AllArgsConstructor |
||||
public class DistributionSignPrintClient implements IDistributionSignPrintClient { |
||||
|
||||
private final IDistributionSignPrintService distributionSignPrintService; |
||||
|
||||
@Override |
||||
@GetMapping(TOP) |
||||
public BladePage<DistributionSignPrintEntity> top(Integer current, Integer size) { |
||||
Query query = new Query(); |
||||
query.setCurrent(current); |
||||
query.setSize(size); |
||||
IPage<DistributionSignPrintEntity> page = distributionSignPrintService.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.DistributionSignPrintEntity; |
||||
import com.logpm.distribution.vo.DistributionSignPrintVO; |
||||
import com.logpm.distribution.excel.DistributionSignPrintExcel; |
||||
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-09-28 |
||||
*/ |
||||
public interface DistributionSignPrintMapper extends BaseMapper<DistributionSignPrintEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param distributionSignPrint |
||||
* @return |
||||
*/ |
||||
List<DistributionSignPrintVO> selectDistributionSignPrintPage(IPage page, DistributionSignPrintVO distributionSignPrint); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<DistributionSignPrintExcel> exportDistributionSignPrint(@Param("ew") Wrapper<DistributionSignPrintEntity> queryWrapper); |
||||
|
||||
} |
@ -0,0 +1,37 @@
|
||||
<?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.DistributionSignPrintMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="distributionSignPrintResultMap" type="com.logpm.distribution.entity.DistributionSignPrintEntity"> |
||||
<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="type" property="type"/> |
||||
<result column="name" property="name"/> |
||||
<result column="url_route" property="urlRoute"/> |
||||
<result column="reservation_id" property="reservationId"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectDistributionSignPrintPage" resultMap="distributionSignPrintResultMap"> |
||||
select * from logpm_distribution_sign_print where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="exportDistributionSignPrint" resultType="com.logpm.distribution.excel.DistributionSignPrintExcel"> |
||||
SELECT * FROM logpm_distribution_sign_print ${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.DistributionSignPrintEntity; |
||||
import com.logpm.distribution.vo.DistributionSignPrintVO; |
||||
import com.logpm.distribution.excel.DistributionSignPrintExcel; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收图片 服务类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-09-28 |
||||
*/ |
||||
public interface IDistributionSignPrintService extends BaseService<DistributionSignPrintEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page |
||||
* @param distributionSignPrint |
||||
* @return |
||||
*/ |
||||
IPage<DistributionSignPrintVO> selectDistributionSignPrintPage(IPage<DistributionSignPrintVO> page, DistributionSignPrintVO distributionSignPrint); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper |
||||
* @return |
||||
*/ |
||||
List<DistributionSignPrintExcel> exportDistributionSignPrint(Wrapper<DistributionSignPrintEntity> 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.DistributionSignPrintEntity; |
||||
import com.logpm.distribution.vo.DistributionSignPrintVO; |
||||
import com.logpm.distribution.excel.DistributionSignPrintExcel; |
||||
import com.logpm.distribution.mapper.DistributionSignPrintMapper; |
||||
import com.logpm.distribution.service.IDistributionSignPrintService; |
||||
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-09-28 |
||||
*/ |
||||
@Service |
||||
public class DistributionSignPrintServiceImpl extends BaseServiceImpl<DistributionSignPrintMapper, DistributionSignPrintEntity> implements IDistributionSignPrintService { |
||||
|
||||
@Override |
||||
public IPage<DistributionSignPrintVO> selectDistributionSignPrintPage(IPage<DistributionSignPrintVO> page, DistributionSignPrintVO distributionSignPrint) { |
||||
return page.setRecords(baseMapper.selectDistributionSignPrintPage(page, distributionSignPrint)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<DistributionSignPrintExcel> exportDistributionSignPrint(Wrapper<DistributionSignPrintEntity> queryWrapper) { |
||||
List<DistributionSignPrintExcel> distributionSignPrintList = baseMapper.exportDistributionSignPrint(queryWrapper); |
||||
//distributionSignPrintList.forEach(distributionSignPrint -> {
|
||||
// distributionSignPrint.setTypeName(DictCache.getValue(DictEnum.YES_NO, DistributionSignPrint.getType()));
|
||||
//});
|
||||
return distributionSignPrintList; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue