35 changed files with 2767 additions and 226 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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("logpm_distribution_packagereceipt") |
||||||
|
@ApiModel(value = "DistributionPackagereceipt对象", description = "包条签收明细") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionPackagereceiptEntity 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 wrapBarId; |
||||||
|
/** |
||||||
|
* 签收状态 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收状态") |
||||||
|
private String state; |
||||||
|
/** |
||||||
|
* 签收明细id |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收明细id") |
||||||
|
private Long receiptDetailsId; |
||||||
|
/** |
||||||
|
* 签收数量 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收数量") |
||||||
|
private Integer receivedQuantity; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,140 @@ |
|||||||
|
/* |
||||||
|
* 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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("logpm_distribution_signdetail") |
||||||
|
@ApiModel(value = "DistributionSigndetail对象", description = "签收明细") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionSigndetailEntity 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 Integer masterId; |
||||||
|
/** |
||||||
|
* 服务号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "服务号") |
||||||
|
private String serviceNumber; |
||||||
|
/** |
||||||
|
* 配送/自提单号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "配送/自提单号") |
||||||
|
private String deliveryNumber; |
||||||
|
/** |
||||||
|
* 配送车次号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "配送车次号") |
||||||
|
private String trainNumber; |
||||||
|
/** |
||||||
|
* 服务类型 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "服务类型") |
||||||
|
private String serveType; |
||||||
|
/** |
||||||
|
* 订单自编号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "订单自编号") |
||||||
|
private String orderId; |
||||||
|
/** |
||||||
|
* 商城名称 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "商城名称") |
||||||
|
private String mallName; |
||||||
|
/** |
||||||
|
* 货物名称 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "货物名称") |
||||||
|
private String goodsName; |
||||||
|
/** |
||||||
|
* 仓库 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "仓库") |
||||||
|
private String warehouse; |
||||||
|
/** |
||||||
|
* 入库时间 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "入库时间") |
||||||
|
private Date warehousingTime; |
||||||
|
/** |
||||||
|
* 备货时间 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "备货时间") |
||||||
|
private Date leadTime; |
||||||
|
/** |
||||||
|
* 在库时长;(天) |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "在库时长;(天)") |
||||||
|
private Integer durationInStock; |
||||||
|
/** |
||||||
|
* 签收件数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收件数") |
||||||
|
private Integer signedNumber; |
||||||
|
/** |
||||||
|
* 是否齐套 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "是否齐套") |
||||||
|
private String isKitting; |
||||||
|
/** |
||||||
|
* 品牌 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "品牌") |
||||||
|
private String brand; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,170 @@ |
|||||||
|
/* |
||||||
|
* 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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("logpm_distribution_signfor") |
||||||
|
@ApiModel(value = "DistributionSignfor对象", description = "签收管理") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionSignforEntity 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 orderId; |
||||||
|
/** |
||||||
|
* 预约关联Id;预约关联id |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "预约关联Id;预约关联id") |
||||||
|
private Long reservationId; |
||||||
|
/** |
||||||
|
* 收货人 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "收货人") |
||||||
|
private String consignee; |
||||||
|
/** |
||||||
|
* 收货地址 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "收货地址") |
||||||
|
private String deliveryAddress; |
||||||
|
/** |
||||||
|
* 服务类型 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "服务类型") |
||||||
|
private String serveType; |
||||||
|
/** |
||||||
|
* 配送仓库 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "配送仓库") |
||||||
|
private String distributingWarehouse; |
||||||
|
/** |
||||||
|
* 配送车次 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "配送车次") |
||||||
|
private String trainNumber; |
||||||
|
/** |
||||||
|
* 订单总数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "订单总数") |
||||||
|
private Integer orderTotal; |
||||||
|
/** |
||||||
|
* 总件数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "总件数") |
||||||
|
private Integer total; |
||||||
|
/** |
||||||
|
* 装车件数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "装车件数") |
||||||
|
private Integer loadedNumber; |
||||||
|
/** |
||||||
|
* 签收数 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收数") |
||||||
|
private Integer receivedQuantity; |
||||||
|
/** |
||||||
|
* 送货司机 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "送货司机") |
||||||
|
private String deliveryDriver; |
||||||
|
/** |
||||||
|
* 送货司机手机号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "送货司机手机号") |
||||||
|
private String deliveryDriverPhone; |
||||||
|
/** |
||||||
|
* 签收时间 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收时间") |
||||||
|
private Date signingTime; |
||||||
|
/** |
||||||
|
* 签收人 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收人") |
||||||
|
private String signee; |
||||||
|
/** |
||||||
|
* 签收状态;1-未签收,2-司机签收,3-文员签收 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收状态;1-未签收,2-司机签收,3-文员签收") |
||||||
|
private String signingStatus; |
||||||
|
/** |
||||||
|
* 签收类型;1-签收,2-代签收 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "签收类型;1-签收,2-代签收") |
||||||
|
private String signingType; |
||||||
|
/** |
||||||
|
* 文员复核图片 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "文员复核图片") |
||||||
|
private String clerkSignPictures; |
||||||
|
/** |
||||||
|
* 司机签收图片 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "司机签收图片") |
||||||
|
private String deliverySignPictures; |
||||||
|
/** |
||||||
|
* 服务号 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "服务号") |
||||||
|
private String serviceNumber; |
||||||
|
/** |
||||||
|
* 备注 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "备注") |
||||||
|
private String notes; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,50 @@ |
|||||||
|
/* |
||||||
|
* 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.common.constant.ModuleNameConstant; |
||||||
|
import org.springblade.core.mp.support.BladePage; |
||||||
|
import com.logpm.distribution.entity.DistributionPackagereceiptEntity; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 Feign接口类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = ModuleNameConstant.APPLICATION_DISTRIBUTION_NAME |
||||||
|
) |
||||||
|
public interface IDistributionPackagereceiptClient { |
||||||
|
|
||||||
|
String API_PREFIX = "packagereceipt/client"; |
||||||
|
String TOP = API_PREFIX + "/top"; |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取包条签收明细列表 |
||||||
|
* |
||||||
|
* @param current 页号 |
||||||
|
* @param size 页数 |
||||||
|
* @return BladePage |
||||||
|
*/ |
||||||
|
@GetMapping(TOP) |
||||||
|
BladePage<DistributionPackagereceiptEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,50 @@ |
|||||||
|
/* |
||||||
|
* 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.common.constant.ModuleNameConstant; |
||||||
|
import org.springblade.core.mp.support.BladePage; |
||||||
|
import com.logpm.distribution.entity.DistributionSigndetailEntity; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 Feign接口类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = ModuleNameConstant.APPLICATION_DISTRIBUTION_NAME |
||||||
|
) |
||||||
|
public interface IDistributionSigndetailClient { |
||||||
|
|
||||||
|
String API_PREFIX = "signdetail/client"; |
||||||
|
String TOP = API_PREFIX + "/top"; |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取签收明细列表 |
||||||
|
* |
||||||
|
* @param current 页号 |
||||||
|
* @param size 页数 |
||||||
|
* @return BladePage |
||||||
|
*/ |
||||||
|
@GetMapping(TOP) |
||||||
|
BladePage<DistributionSigndetailEntity> top(@RequestParam("current") Integer current, @RequestParam("size") Integer size); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,50 @@ |
|||||||
|
/* |
||||||
|
* 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.common.constant.ModuleNameConstant; |
||||||
|
import org.springblade.core.mp.support.BladePage; |
||||||
|
import com.logpm.distribution.entity.DistributionSignforEntity; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 Feign接口类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = ModuleNameConstant.APPLICATION_DISTRIBUTION_NAME |
||||||
|
) |
||||||
|
public interface IDistributionSignforClient { |
||||||
|
|
||||||
|
String API_PREFIX = "signfor/client"; |
||||||
|
String TOP = API_PREFIX + "/top"; |
||||||
|
|
||||||
|
/** |
||||||
|
* 获取签收管理列表 |
||||||
|
* |
||||||
|
* @param current 页号 |
||||||
|
* @param size 页数 |
||||||
|
* @return BladePage |
||||||
|
*/ |
||||||
|
@GetMapping(TOP) |
||||||
|
BladePage<DistributionSignforEntity> 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.DistributionPackagereceiptEntity; |
||||||
|
import org.springblade.core.tool.node.INode; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 视图实体类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionPackagereceiptVO extends DistributionPackagereceiptEntity { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -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.DistributionSigndetailEntity; |
||||||
|
import org.springblade.core.tool.node.INode; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 视图实体类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionSigndetailVO extends DistributionSigndetailEntity { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -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.DistributionSignforEntity; |
||||||
|
import org.springblade.core.tool.node.INode; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 视图实体类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionSignforVO extends DistributionSignforEntity { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,151 @@ |
|||||||
|
/* |
||||||
|
* 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 com.logpm.distribution.dto.DistributionPackagereceiptDTO; |
||||||
|
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.DistributionPackagereceiptEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionPackagereceiptVO; |
||||||
|
import com.logpm.distribution.excel.DistributionPackagereceiptExcel; |
||||||
|
import com.logpm.distribution.service.IDistributionPackagereceiptService; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/packagereceipt") |
||||||
|
@Api(value = "包条签收明细", tags = "包条签收明细接口") |
||||||
|
public class DistributionPackagereceiptController extends BladeController { |
||||||
|
|
||||||
|
private final IDistributionPackagereceiptService distributionPackagereceiptService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "详情", notes = "传入distributionPackagereceipt") |
||||||
|
public R<DistributionPackagereceiptEntity> detail(DistributionPackagereceiptEntity distributionPackagereceipt) { |
||||||
|
DistributionPackagereceiptEntity detail = distributionPackagereceiptService.getOne(Condition.getQueryWrapper(distributionPackagereceipt)); |
||||||
|
return R.data(detail); |
||||||
|
} |
||||||
|
/** |
||||||
|
* 包条签收明细 分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@ApiOperation(value = "分页", notes = "传入distributionPackagereceipt") |
||||||
|
public R<IPage<DistributionPackagereceiptEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionPackagereceipt, Query query) { |
||||||
|
IPage<DistributionPackagereceiptEntity> pages = distributionPackagereceiptService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionPackagereceipt, DistributionPackagereceiptEntity.class)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 自定义分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@ApiOperation(value = "分页", notes = "传入distributionPackagereceipt") |
||||||
|
public R<IPage<DistributionPackagereceiptVO>> page(DistributionPackagereceiptDTO distributionPackagereceipt, Query query) { |
||||||
|
IPage<DistributionPackagereceiptVO> pages = distributionPackagereceiptService.selectDistributionPackagereceiptPage(Condition.getPage(query), distributionPackagereceipt); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 新增 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "新增", notes = "传入distributionPackagereceipt") |
||||||
|
public R save(@Valid @RequestBody DistributionPackagereceiptEntity distributionPackagereceipt) { |
||||||
|
return R.status(distributionPackagereceiptService.save(distributionPackagereceipt)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@ApiOperation(value = "修改", notes = "传入distributionPackagereceipt") |
||||||
|
public R update(@Valid @RequestBody DistributionPackagereceiptEntity distributionPackagereceipt) { |
||||||
|
return R.status(distributionPackagereceiptService.updateById(distributionPackagereceipt)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 新增或修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@ApiOperation(value = "新增或修改", notes = "传入distributionPackagereceipt") |
||||||
|
public R submit(@Valid @RequestBody DistributionPackagereceiptEntity distributionPackagereceipt) { |
||||||
|
return R.status(distributionPackagereceiptService.saveOrUpdate(distributionPackagereceipt)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 删除 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||||
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(distributionPackagereceiptService.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
*/ |
||||||
|
@GetMapping("/export-distributionPackagereceipt") |
||||||
|
@ApiOperationSupport(order = 9) |
||||||
|
@ApiOperation(value = "导出数据", notes = "传入distributionPackagereceipt") |
||||||
|
public void exportDistributionPackagereceipt(@ApiIgnore @RequestParam Map<String, Object> distributionPackagereceipt, BladeUser bladeUser, HttpServletResponse response) { |
||||||
|
QueryWrapper<DistributionPackagereceiptEntity> queryWrapper = Condition.getQueryWrapper(distributionPackagereceipt, DistributionPackagereceiptEntity.class); |
||||||
|
//if (!AuthUtil.isAdministrator()) {
|
||||||
|
// queryWrapper.lambda().eq(DistributionPackagereceipt::getTenantId, bladeUser.getTenantId());
|
||||||
|
//}
|
||||||
|
queryWrapper.lambda().eq(DistributionPackagereceiptEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||||
|
List<DistributionPackagereceiptExcel> list = distributionPackagereceiptService.exportDistributionPackagereceipt(queryWrapper); |
||||||
|
ExcelUtil.export(response, "包条签收明细数据" + DateUtil.time(), "包条签收明细数据表", list, DistributionPackagereceiptExcel.class); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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.DistributionSigndetailEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSigndetailVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSigndetailExcel; |
||||||
|
import com.logpm.distribution.service.IDistributionSigndetailService; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/signdetail") |
||||||
|
@Api(value = "签收明细", tags = "签收明细接口") |
||||||
|
public class DistributionSigndetailController extends BladeController { |
||||||
|
|
||||||
|
private final IDistributionSigndetailService distributionSigndetailService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "详情", notes = "传入distributionSigndetail") |
||||||
|
public R<DistributionSigndetailEntity> detail(DistributionSigndetailEntity distributionSigndetail) { |
||||||
|
DistributionSigndetailEntity detail = distributionSigndetailService.getOne(Condition.getQueryWrapper(distributionSigndetail)); |
||||||
|
return R.data(detail); |
||||||
|
} |
||||||
|
/** |
||||||
|
* 签收明细 分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@ApiOperation(value = "分页", notes = "传入distributionSigndetail") |
||||||
|
public R<IPage<DistributionSigndetailEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionSigndetail, Query query) { |
||||||
|
IPage<DistributionSigndetailEntity> pages = distributionSigndetailService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionSigndetail, DistributionSigndetailEntity.class)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 自定义分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@ApiOperation(value = "分页", notes = "传入distributionSigndetail") |
||||||
|
public R<IPage<DistributionSigndetailVO>> page(DistributionSigndetailVO distributionSigndetail, Query query) { |
||||||
|
IPage<DistributionSigndetailVO> pages = distributionSigndetailService.selectDistributionSigndetailPage(Condition.getPage(query), distributionSigndetail); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 新增 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "新增", notes = "传入distributionSigndetail") |
||||||
|
public R save(@Valid @RequestBody DistributionSigndetailEntity distributionSigndetail) { |
||||||
|
return R.status(distributionSigndetailService.save(distributionSigndetail)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@ApiOperation(value = "修改", notes = "传入distributionSigndetail") |
||||||
|
public R update(@Valid @RequestBody DistributionSigndetailEntity distributionSigndetail) { |
||||||
|
return R.status(distributionSigndetailService.updateById(distributionSigndetail)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 新增或修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@ApiOperation(value = "新增或修改", notes = "传入distributionSigndetail") |
||||||
|
public R submit(@Valid @RequestBody DistributionSigndetailEntity distributionSigndetail) { |
||||||
|
return R.status(distributionSigndetailService.saveOrUpdate(distributionSigndetail)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 删除 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||||
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(distributionSigndetailService.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
*/ |
||||||
|
@GetMapping("/export-distributionSigndetail") |
||||||
|
@ApiOperationSupport(order = 9) |
||||||
|
@ApiOperation(value = "导出数据", notes = "传入distributionSigndetail") |
||||||
|
public void exportDistributionSigndetail(@ApiIgnore @RequestParam Map<String, Object> distributionSigndetail, BladeUser bladeUser, HttpServletResponse response) { |
||||||
|
QueryWrapper<DistributionSigndetailEntity> queryWrapper = Condition.getQueryWrapper(distributionSigndetail, DistributionSigndetailEntity.class); |
||||||
|
//if (!AuthUtil.isAdministrator()) {
|
||||||
|
// queryWrapper.lambda().eq(DistributionSigndetail::getTenantId, bladeUser.getTenantId());
|
||||||
|
//}
|
||||||
|
queryWrapper.lambda().eq(DistributionSigndetailEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||||
|
List<DistributionSigndetailExcel> list = distributionSigndetailService.exportDistributionSigndetail(queryWrapper); |
||||||
|
ExcelUtil.export(response, "签收明细数据" + DateUtil.time(), "签收明细数据表", list, DistributionSigndetailExcel.class); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,161 @@ |
|||||||
|
/* |
||||||
|
* 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 com.logpm.distribution.dto.DistributionSignforDTO; |
||||||
|
import com.logpm.distribution.entity.ReservationEntity; |
||||||
|
import com.logpm.distribution.service.IReservationService; |
||||||
|
import com.logpm.distribution.vo.ReservationVO; |
||||||
|
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.beans.BeanUtils; |
||||||
|
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.DistributionSignforEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSignforVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSignforExcel; |
||||||
|
import com.logpm.distribution.service.IDistributionSignforService; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/signfor") |
||||||
|
@Api(value = "签收管理", tags = "签收管理接口") |
||||||
|
public class DistributionSignforController extends BladeController { |
||||||
|
|
||||||
|
private final IDistributionSignforService distributionSignforService; |
||||||
|
|
||||||
|
private final IReservationService reservationService; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 详情 |
||||||
|
*/ |
||||||
|
@GetMapping("/detail") |
||||||
|
@ApiOperationSupport(order = 1) |
||||||
|
@ApiOperation(value = "详情", notes = "传入distributionSignfor") |
||||||
|
public R<DistributionSignforVO> detail(DistributionSignforDTO distributionSignfor) { |
||||||
|
DistributionSignforEntity detail = distributionSignforService.getOne(Condition.getQueryWrapper(distributionSignfor)); |
||||||
|
DistributionSignforVO distributionSignforVO = new DistributionSignforVO(); |
||||||
|
BeanUtils.copyProperties(detail,distributionSignforVO); |
||||||
|
//查询预约单号及服务
|
||||||
|
|
||||||
|
return R.data(distributionSignforVO); |
||||||
|
} |
||||||
|
/** |
||||||
|
* 签收管理 分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/list") |
||||||
|
@ApiOperationSupport(order = 2) |
||||||
|
@ApiOperation(value = "分页", notes = "传入distributionSignfor") |
||||||
|
public R<IPage<DistributionSignforEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionSignfor, Query query) { |
||||||
|
IPage<DistributionSignforEntity> pages = distributionSignforService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionSignfor, DistributionSignforEntity.class)); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 自定义分页 |
||||||
|
*/ |
||||||
|
@GetMapping("/page") |
||||||
|
@ApiOperationSupport(order = 3) |
||||||
|
@ApiOperation(value = "分页", notes = "传入distributionSignfor") |
||||||
|
public R<IPage<DistributionSignforVO>> page(DistributionSignforVO distributionSignfor, Query query) { |
||||||
|
IPage<DistributionSignforVO> pages = distributionSignforService.selectDistributionSignforPage(Condition.getPage(query), distributionSignfor); |
||||||
|
return R.data(pages); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 新增 |
||||||
|
*/ |
||||||
|
@PostMapping("/save") |
||||||
|
@ApiOperationSupport(order = 4) |
||||||
|
@ApiOperation(value = "新增", notes = "传入distributionSignfor") |
||||||
|
public R save(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { |
||||||
|
return R.status(distributionSignforService.save(distributionSignfor)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/update") |
||||||
|
@ApiOperationSupport(order = 5) |
||||||
|
@ApiOperation(value = "修改", notes = "传入distributionSignfor") |
||||||
|
public R update(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { |
||||||
|
return R.status(distributionSignforService.updateById(distributionSignfor)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 新增或修改 |
||||||
|
*/ |
||||||
|
@PostMapping("/submit") |
||||||
|
@ApiOperationSupport(order = 6) |
||||||
|
@ApiOperation(value = "新增或修改", notes = "传入distributionSignfor") |
||||||
|
public R submit(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { |
||||||
|
return R.status(distributionSignforService.saveOrUpdate(distributionSignfor)); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 删除 |
||||||
|
*/ |
||||||
|
@PostMapping("/remove") |
||||||
|
@ApiOperationSupport(order = 7) |
||||||
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
||||||
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||||
|
return R.status(distributionSignforService.deleteLogic(Func.toLongList(ids))); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
*/ |
||||||
|
@GetMapping("/export-distributionSignfor") |
||||||
|
@ApiOperationSupport(order = 9) |
||||||
|
@ApiOperation(value = "导出数据", notes = "传入distributionSignfor") |
||||||
|
public void exportDistributionSignfor(@ApiIgnore @RequestParam Map<String, Object> distributionSignfor, BladeUser bladeUser, HttpServletResponse response) { |
||||||
|
QueryWrapper<DistributionSignforEntity> queryWrapper = Condition.getQueryWrapper(distributionSignfor, DistributionSignforEntity.class); |
||||||
|
//if (!AuthUtil.isAdministrator()) {
|
||||||
|
// queryWrapper.lambda().eq(DistributionSignfor::getTenantId, bladeUser.getTenantId());
|
||||||
|
//}
|
||||||
|
queryWrapper.lambda().eq(DistributionSignforEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
||||||
|
List<DistributionSignforExcel> list = distributionSignforService.exportDistributionSignfor(queryWrapper); |
||||||
|
ExcelUtil.export(response, "签收管理数据" + DateUtil.time(), "签收管理数据表", list, DistributionSignforExcel.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.DistributionPackagereceiptEntity; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionPackagereceiptDTO extends DistributionPackagereceiptEntity { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -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.DistributionSigndetailEntity; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionSigndetailDTO extends DistributionSigndetailEntity { |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
} |
@ -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.DistributionSignforEntity; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 数据传输对象实体类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DistributionSignforDTO extends DistributionSignforEntity { |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ColumnWidth(25) |
||||||
|
@HeadRowHeight(20) |
||||||
|
@ContentRowHeight(18) |
||||||
|
public class DistributionPackagereceiptExcel 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 Long wrapBarId; |
||||||
|
/** |
||||||
|
* 签收状态 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收状态") |
||||||
|
private String state; |
||||||
|
/** |
||||||
|
* 签收明细id |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收明细id") |
||||||
|
private Long receiptDetailsId; |
||||||
|
/** |
||||||
|
* 签收数量 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收数量") |
||||||
|
private Integer receivedQuantity; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,177 @@ |
|||||||
|
/* |
||||||
|
* 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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ColumnWidth(25) |
||||||
|
@HeadRowHeight(20) |
||||||
|
@ContentRowHeight(18) |
||||||
|
public class DistributionSigndetailExcel 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 Integer masterId; |
||||||
|
/** |
||||||
|
* 服务号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("服务号") |
||||||
|
private String serviceNumber; |
||||||
|
/** |
||||||
|
* 配送/自提单号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("配送/自提单号") |
||||||
|
private String deliveryNumber; |
||||||
|
/** |
||||||
|
* 配送车次号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("配送车次号") |
||||||
|
private String trainNumber; |
||||||
|
/** |
||||||
|
* 服务类型 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("服务类型") |
||||||
|
private String serveType; |
||||||
|
/** |
||||||
|
* 订单自编号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("订单自编号") |
||||||
|
private String orderId; |
||||||
|
/** |
||||||
|
* 商城名称 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("商城名称") |
||||||
|
private String mallName; |
||||||
|
/** |
||||||
|
* 货物名称 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("货物名称") |
||||||
|
private String goodsName; |
||||||
|
/** |
||||||
|
* 仓库 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("仓库") |
||||||
|
private String warehouse; |
||||||
|
/** |
||||||
|
* 入库时间 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("入库时间") |
||||||
|
private Date warehousingTime; |
||||||
|
/** |
||||||
|
* 备货时间 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("备货时间") |
||||||
|
private Date leadTime; |
||||||
|
/** |
||||||
|
* 在库时长;(天) |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("在库时长;(天)") |
||||||
|
private Integer durationInStock; |
||||||
|
/** |
||||||
|
* 签收件数 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收件数") |
||||||
|
private Integer signedNumber; |
||||||
|
/** |
||||||
|
* 是否齐套 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("是否齐套") |
||||||
|
private String isKitting; |
||||||
|
/** |
||||||
|
* 品牌 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("品牌") |
||||||
|
private String brand; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,213 @@ |
|||||||
|
/* |
||||||
|
* 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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ColumnWidth(25) |
||||||
|
@HeadRowHeight(20) |
||||||
|
@ContentRowHeight(18) |
||||||
|
public class DistributionSignforExcel 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 orderId; |
||||||
|
/** |
||||||
|
* 预约关联Id;预约关联id |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("预约关联Id;预约关联id") |
||||||
|
private Long reservationId; |
||||||
|
/** |
||||||
|
* 收货人 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("收货人") |
||||||
|
private String consignee; |
||||||
|
/** |
||||||
|
* 收货地址 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("收货地址") |
||||||
|
private String deliveryAddress; |
||||||
|
/** |
||||||
|
* 服务类型 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("服务类型") |
||||||
|
private String serveType; |
||||||
|
/** |
||||||
|
* 配送仓库 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("配送仓库") |
||||||
|
private String distributingWarehouse; |
||||||
|
/** |
||||||
|
* 配送车次 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("配送车次") |
||||||
|
private String trainNumber; |
||||||
|
/** |
||||||
|
* 订单总数 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("订单总数") |
||||||
|
private Integer orderTotal; |
||||||
|
/** |
||||||
|
* 总件数 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("总件数") |
||||||
|
private Integer total; |
||||||
|
/** |
||||||
|
* 装车件数 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("装车件数") |
||||||
|
private Integer loadedNumber; |
||||||
|
/** |
||||||
|
* 签收数 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收数") |
||||||
|
private Integer receivedQuantity; |
||||||
|
/** |
||||||
|
* 送货司机 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("送货司机") |
||||||
|
private String deliveryDriver; |
||||||
|
/** |
||||||
|
* 送货司机手机号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("送货司机手机号") |
||||||
|
private String deliveryDriverPhone; |
||||||
|
/** |
||||||
|
* 签收时间 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收时间") |
||||||
|
private Date signingTime; |
||||||
|
/** |
||||||
|
* 签收人 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收人") |
||||||
|
private String signee; |
||||||
|
/** |
||||||
|
* 签收状态;1-未签收,2-司机签收,3-文员签收 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收状态;1-未签收,2-司机签收,3-文员签收") |
||||||
|
private String signingStatus; |
||||||
|
/** |
||||||
|
* 签收类型;1-签收,2-代签收 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("签收类型;1-签收,2-代签收") |
||||||
|
private String signingType; |
||||||
|
/** |
||||||
|
* 文员复核图片 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("文员复核图片") |
||||||
|
private String clerkSignPictures; |
||||||
|
/** |
||||||
|
* 司机签收图片 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("司机签收图片") |
||||||
|
private String deliverySignPictures; |
||||||
|
/** |
||||||
|
* 服务号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("服务号") |
||||||
|
private String serviceNumber; |
||||||
|
/** |
||||||
|
* 备注 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty("备注") |
||||||
|
private String notes; |
||||||
|
|
||||||
|
} |
@ -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.DistributionPackagereceiptEntity; |
||||||
|
import com.logpm.distribution.service.IDistributionPackagereceiptService; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
import springfox.documentation.annotations.ApiIgnore; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 Feign实现类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@ApiIgnore() |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class DistributionPackagereceiptClient implements IDistributionPackagereceiptClient { |
||||||
|
|
||||||
|
private final IDistributionPackagereceiptService distributionPackagereceiptService; |
||||||
|
|
||||||
|
@Override |
||||||
|
@GetMapping(TOP) |
||||||
|
public BladePage<DistributionPackagereceiptEntity> top(Integer current, Integer size) { |
||||||
|
Query query = new Query(); |
||||||
|
query.setCurrent(current); |
||||||
|
query.setSize(size); |
||||||
|
IPage<DistributionPackagereceiptEntity> page = distributionPackagereceiptService.page(Condition.getPage(query)); |
||||||
|
return BladePage.of(page); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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.DistributionSigndetailEntity; |
||||||
|
import com.logpm.distribution.service.IDistributionSigndetailService; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
import springfox.documentation.annotations.ApiIgnore; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 Feign实现类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@ApiIgnore() |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class DistributionSigndetailClient implements IDistributionSigndetailClient { |
||||||
|
|
||||||
|
private final IDistributionSigndetailService distributionSigndetailService; |
||||||
|
|
||||||
|
@Override |
||||||
|
@GetMapping(TOP) |
||||||
|
public BladePage<DistributionSigndetailEntity> top(Integer current, Integer size) { |
||||||
|
Query query = new Query(); |
||||||
|
query.setCurrent(current); |
||||||
|
query.setSize(size); |
||||||
|
IPage<DistributionSigndetailEntity> page = distributionSigndetailService.page(Condition.getPage(query)); |
||||||
|
return BladePage.of(page); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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.DistributionSignforEntity; |
||||||
|
import com.logpm.distribution.service.IDistributionSignforService; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
import springfox.documentation.annotations.ApiIgnore; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 Feign实现类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@ApiIgnore() |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class DistributionSignforClient implements IDistributionSignforClient { |
||||||
|
|
||||||
|
private final IDistributionSignforService distributionSignforService; |
||||||
|
|
||||||
|
@Override |
||||||
|
@GetMapping(TOP) |
||||||
|
public BladePage<DistributionSignforEntity> top(Integer current, Integer size) { |
||||||
|
Query query = new Query(); |
||||||
|
query.setCurrent(current); |
||||||
|
query.setSize(size); |
||||||
|
IPage<DistributionSignforEntity> page = distributionSignforService.page(Condition.getPage(query)); |
||||||
|
return BladePage.of(page); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,55 @@ |
|||||||
|
/* |
||||||
|
* 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.dto.DistributionPackagereceiptDTO; |
||||||
|
import com.logpm.distribution.entity.DistributionPackagereceiptEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionPackagereceiptVO; |
||||||
|
import com.logpm.distribution.excel.DistributionPackagereceiptExcel; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
public interface DistributionPackagereceiptMapper extends BaseMapper<DistributionPackagereceiptEntity> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param distributionPackagereceipt |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionPackagereceiptVO> selectDistributionPackagereceiptPage(IPage page,@Param("param") DistributionPackagereceiptDTO distributionPackagereceipt); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 获取导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionPackagereceiptExcel> exportDistributionPackagereceipt(@Param("ew") Wrapper<DistributionPackagereceiptEntity> 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.DistributionPackagereceiptMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="distributionPackagereceiptResultMap" type="com.logpm.distribution.entity.DistributionPackagereceiptEntity"> |
||||||
|
<result column="id" property="id"/> |
||||||
|
<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="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="wrap_bar_id" property="wrapBarId"/> |
||||||
|
<result column="state" property="state"/> |
||||||
|
<result column="receipt_details_id" property="receiptDetailsId"/> |
||||||
|
<result column="received_quantity" property="receivedQuantity"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectDistributionPackagereceiptPage" resultMap="distributionPackagereceiptResultMap"> |
||||||
|
select * from logpm_distribution_packagereceipt where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
|
||||||
|
<select id="exportDistributionPackagereceipt" resultType="com.logpm.distribution.excel.DistributionPackagereceiptExcel"> |
||||||
|
SELECT * FROM logpm_distribution_packagereceipt ${ew.customSqlSegment} |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -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.DistributionSigndetailEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSigndetailVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSigndetailExcel; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
public interface DistributionSigndetailMapper extends BaseMapper<DistributionSigndetailEntity> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param distributionSigndetail |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionSigndetailVO> selectDistributionSigndetailPage(IPage page, DistributionSigndetailVO distributionSigndetail); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 获取导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionSigndetailExcel> exportDistributionSigndetail(@Param("ew") Wrapper<DistributionSigndetailEntity> queryWrapper); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,48 @@ |
|||||||
|
<?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.DistributionSigndetailMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="distributionSigndetailResultMap" type="com.logpm.distribution.entity.DistributionSigndetailEntity"> |
||||||
|
<result column="id" property="id"/> |
||||||
|
<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="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="master_id" property="masterId"/> |
||||||
|
<result column="service_number" property="serviceNumber"/> |
||||||
|
<result column="delivery_number" property="deliveryNumber"/> |
||||||
|
<result column="train_number" property="trainNumber"/> |
||||||
|
<result column="serve_type" property="serveType"/> |
||||||
|
<result column="order_id" property="orderId"/> |
||||||
|
<result column="mall_name" property="mallName"/> |
||||||
|
<result column="goods_name" property="goodsName"/> |
||||||
|
<result column="warehouse" property="warehouse"/> |
||||||
|
<result column="warehousing_time" property="warehousingTime"/> |
||||||
|
<result column="lead_time" property="leadTime"/> |
||||||
|
<result column="duration_in_stock" property="durationInStock"/> |
||||||
|
<result column="signed_number" property="signedNumber"/> |
||||||
|
<result column="is_kitting" property="isKitting"/> |
||||||
|
<result column="brand" property="brand"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectDistributionSigndetailPage" resultType="com.logpm.distribution.vo.DistributionSigndetailVO"> |
||||||
|
select * from logpm_distribution_signdetail where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
|
||||||
|
<select id="exportDistributionSigndetail" resultType="com.logpm.distribution.excel.DistributionSigndetailExcel"> |
||||||
|
SELECT * FROM logpm_distribution_signdetail ${ew.customSqlSegment} |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -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.DistributionSignforEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSignforVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSignforExcel; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
public interface DistributionSignforMapper extends BaseMapper<DistributionSignforEntity> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param distributionSignfor |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionSignforVO> selectDistributionSignforPage(IPage page, DistributionSignforVO distributionSignfor); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 获取导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionSignforExcel> exportDistributionSignfor(@Param("ew") Wrapper<DistributionSignforEntity> queryWrapper); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,54 @@ |
|||||||
|
<?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.DistributionSignforMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="distributionSignforResultMap" type="com.logpm.distribution.entity.DistributionSignforEntity"> |
||||||
|
<result column="id" property="id"/> |
||||||
|
<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="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="order_id" property="orderId"/> |
||||||
|
<result column="reservation_id" property="reservationId"/> |
||||||
|
<result column="consignee" property="consignee"/> |
||||||
|
<result column="delivery_address" property="deliveryAddress"/> |
||||||
|
<result column="serve_type" property="serveType"/> |
||||||
|
<result column="distributing_warehouse" property="distributingWarehouse"/> |
||||||
|
<result column="train_number" property="trainNumber"/> |
||||||
|
<result column="order_total" property="orderTotal"/> |
||||||
|
<result column="total" property="total"/> |
||||||
|
<result column="loaded_number" property="loadedNumber"/> |
||||||
|
<result column="received_quantity" property="receivedQuantity"/> |
||||||
|
<result column="delivery_driver" property="deliveryDriver"/> |
||||||
|
<result column="delivery_driver_phone" property="deliveryDriverPhone"/> |
||||||
|
<result column="signing_time" property="signingTime"/> |
||||||
|
<result column="signee" property="signee"/> |
||||||
|
<result column="signing_status" property="signingStatus"/> |
||||||
|
<result column="signing_type" property="signingType"/> |
||||||
|
<result column="clerk_sign_pictures" property="clerkSignPictures"/> |
||||||
|
<result column="delivery_sign_pictures" property="deliverySignPictures"/> |
||||||
|
<result column="service_number" property="serviceNumber"/> |
||||||
|
<result column="notes" property="notes"/> |
||||||
|
</resultMap> |
||||||
|
|
||||||
|
|
||||||
|
<select id="selectDistributionSignforPage" resultMap="distributionSignforResultMap"> |
||||||
|
select * from logpm_distribution_signfor where is_deleted = 0 |
||||||
|
</select> |
||||||
|
|
||||||
|
|
||||||
|
<select id="exportDistributionSignfor" resultType="com.logpm.distribution.excel.DistributionSignforExcel"> |
||||||
|
SELECT * FROM logpm_distribution_signfor ${ew.customSqlSegment} |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -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.service; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||||
|
import com.logpm.distribution.dto.DistributionPackagereceiptDTO; |
||||||
|
import com.logpm.distribution.entity.DistributionPackagereceiptEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionPackagereceiptVO; |
||||||
|
import com.logpm.distribution.excel.DistributionPackagereceiptExcel; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.springblade.core.mp.base.BaseService; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包条签收明细 服务类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
public interface IDistributionPackagereceiptService extends BaseService<DistributionPackagereceiptEntity> { |
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param distributionPackagereceipt |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<DistributionPackagereceiptVO> selectDistributionPackagereceiptPage(IPage<DistributionPackagereceiptVO> page, DistributionPackagereceiptDTO distributionPackagereceipt); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionPackagereceiptExcel> exportDistributionPackagereceipt(Wrapper<DistributionPackagereceiptEntity> queryWrapper); |
||||||
|
|
||||||
|
} |
@ -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.DistributionSigndetailEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSigndetailVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSigndetailExcel; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.springblade.core.mp.base.BaseService; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收明细 服务类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
public interface IDistributionSigndetailService extends BaseService<DistributionSigndetailEntity> { |
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param distributionSigndetail |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<DistributionSigndetailVO> selectDistributionSigndetailPage(IPage<DistributionSigndetailVO> page, DistributionSigndetailVO distributionSigndetail); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionSigndetailExcel> exportDistributionSigndetail(Wrapper<DistributionSigndetailEntity> queryWrapper); |
||||||
|
|
||||||
|
} |
@ -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.DistributionSignforEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSignforVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSignforExcel; |
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.springblade.core.mp.base.BaseService; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 签收管理 服务类 |
||||||
|
* |
||||||
|
* @author lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
public interface IDistributionSignforService extends BaseService<DistributionSignforEntity> { |
||||||
|
/** |
||||||
|
* 自定义分页 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param distributionSignfor |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
IPage<DistributionSignforVO> selectDistributionSignforPage(IPage<DistributionSignforVO> page, DistributionSignforVO distributionSignfor); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 导出数据 |
||||||
|
* |
||||||
|
* @param queryWrapper |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DistributionSignforExcel> exportDistributionSignfor(Wrapper<DistributionSignforEntity> queryWrapper); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,55 @@ |
|||||||
|
/* |
||||||
|
* 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.dto.DistributionPackagereceiptDTO; |
||||||
|
import com.logpm.distribution.entity.DistributionPackagereceiptEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionPackagereceiptVO; |
||||||
|
import com.logpm.distribution.excel.DistributionPackagereceiptExcel; |
||||||
|
import com.logpm.distribution.mapper.DistributionPackagereceiptMapper; |
||||||
|
import com.logpm.distribution.service.IDistributionPackagereceiptService; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class DistributionPackagereceiptServiceImpl extends BaseServiceImpl<DistributionPackagereceiptMapper, DistributionPackagereceiptEntity> implements IDistributionPackagereceiptService { |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<DistributionPackagereceiptVO> selectDistributionPackagereceiptPage(IPage<DistributionPackagereceiptVO> page, DistributionPackagereceiptDTO distributionPackagereceipt) { |
||||||
|
return page.setRecords(baseMapper.selectDistributionPackagereceiptPage(page, distributionPackagereceipt)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public List<DistributionPackagereceiptExcel> exportDistributionPackagereceipt(Wrapper<DistributionPackagereceiptEntity> queryWrapper) { |
||||||
|
List<DistributionPackagereceiptExcel> distributionPackagereceiptList = baseMapper.exportDistributionPackagereceipt(queryWrapper); |
||||||
|
//distributionPackagereceiptList.forEach(distributionPackagereceipt -> {
|
||||||
|
// distributionPackagereceipt.setTypeName(DictCache.getValue(DictEnum.YES_NO, DistributionPackagereceipt.getType()));
|
||||||
|
//});
|
||||||
|
return distributionPackagereceiptList; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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.DistributionSigndetailEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSigndetailVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSigndetailExcel; |
||||||
|
import com.logpm.distribution.mapper.DistributionSigndetailMapper; |
||||||
|
import com.logpm.distribution.service.IDistributionSigndetailService; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class DistributionSigndetailServiceImpl extends BaseServiceImpl<DistributionSigndetailMapper, DistributionSigndetailEntity> implements IDistributionSigndetailService { |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<DistributionSigndetailVO> selectDistributionSigndetailPage(IPage<DistributionSigndetailVO> page, DistributionSigndetailVO distributionSigndetail) { |
||||||
|
return page.setRecords(baseMapper.selectDistributionSigndetailPage(page, distributionSigndetail)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public List<DistributionSigndetailExcel> exportDistributionSigndetail(Wrapper<DistributionSigndetailEntity> queryWrapper) { |
||||||
|
List<DistributionSigndetailExcel> distributionSigndetailList = baseMapper.exportDistributionSigndetail(queryWrapper); |
||||||
|
//distributionSigndetailList.forEach(distributionSigndetail -> {
|
||||||
|
// distributionSigndetail.setTypeName(DictCache.getValue(DictEnum.YES_NO, DistributionSigndetail.getType()));
|
||||||
|
//});
|
||||||
|
return distributionSigndetailList; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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.DistributionSignforEntity; |
||||||
|
import com.logpm.distribution.vo.DistributionSignforVO; |
||||||
|
import com.logpm.distribution.excel.DistributionSignforExcel; |
||||||
|
import com.logpm.distribution.mapper.DistributionSignforMapper; |
||||||
|
import com.logpm.distribution.service.IDistributionSignforService; |
||||||
|
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 lmy |
||||||
|
* @since 2023-06-13 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class DistributionSignforServiceImpl extends BaseServiceImpl<DistributionSignforMapper, DistributionSignforEntity> implements IDistributionSignforService { |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<DistributionSignforVO> selectDistributionSignforPage(IPage<DistributionSignforVO> page, DistributionSignforVO distributionSignfor) { |
||||||
|
return page.setRecords(baseMapper.selectDistributionSignforPage(page, distributionSignfor)); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public List<DistributionSignforExcel> exportDistributionSignfor(Wrapper<DistributionSignforEntity> queryWrapper) { |
||||||
|
List<DistributionSignforExcel> distributionSignforList = baseMapper.exportDistributionSignfor(queryWrapper); |
||||||
|
//distributionSignforList.forEach(distributionSignfor -> {
|
||||||
|
// distributionSignfor.setTypeName(DictCache.getValue(DictEnum.YES_NO, DistributionSignfor.getType()));
|
||||||
|
//});
|
||||||
|
return distributionSignforList; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue