21 changed files with 390 additions and 73 deletions
@ -0,0 +1,27 @@ |
|||||
|
package com.qs.serve.modules.bir.entity.so; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2023/6/6 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BirCostRoiSo { |
||||
|
|
||||
|
/** |
||||
|
* 供应商ID |
||||
|
*/ |
||||
|
private String supplierId; |
||||
|
|
||||
|
/** |
||||
|
* 加载类型 |
||||
|
* 0->客户 |
||||
|
* 1->客户的申请人 |
||||
|
* 2->客户的行政区域 |
||||
|
* 3->客户的销售区域 |
||||
|
*/ |
||||
|
private Integer loadType; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package com.qs.serve.modules.bir.entity.vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDate; |
||||
|
|
||||
|
/** |
||||
|
* @author YenHex |
||||
|
* @since 2023/6/6 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BirRoiCostItemVo { |
||||
|
|
||||
|
/** |
||||
|
* 年/月 |
||||
|
*/ |
||||
|
private Integer yearMonth; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private LocalDate yearMonthDate; |
||||
|
|
||||
|
/** |
||||
|
* 费用金额 |
||||
|
*/ |
||||
|
private BigDecimal costAmt; |
||||
|
|
||||
|
/** |
||||
|
* 核销金额 |
||||
|
*/ |
||||
|
private BigDecimal checkAmt; |
||||
|
|
||||
|
/** |
||||
|
* 利润金额 |
||||
|
*/ |
||||
|
private BigDecimal returnAmt; |
||||
|
|
||||
|
/** |
||||
|
* 发货金额 |
||||
|
*/ |
||||
|
private BigDecimal dispatchAmt; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,133 @@ |
|||||
|
package com.qs.serve.modules.erp.entity; |
||||
|
|
||||
|
import java.time.LocalDate; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.*; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 发货单数据 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2023-06-06 |
||||
|
*/ |
||||
|
@Data |
||||
|
@TableName("erp_dispatch_data") |
||||
|
public class ErpDispatchData implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** */ |
||||
|
@TableId(type = IdType.AUTO) |
||||
|
private Long id; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String place; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String dlCode; |
||||
|
|
||||
|
/** */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private LocalDate date; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String cusCode; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String cusName; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String invCode; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String invName; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String invBatch; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String salesDepCode; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String depName; |
||||
|
|
||||
|
/** */ |
||||
|
private Integer qty; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal sumMoney; |
||||
|
|
||||
|
/** */ |
||||
|
@Length(max = 255,message = "长度不能超过255字") |
||||
|
private String volume; |
||||
|
|
||||
|
/** */ |
||||
|
private Double netWeight; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal dispatchCost; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal invDispatchCost; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal invTransFee; |
||||
|
|
||||
|
/** */ |
||||
|
private BigDecimal invProduceCost; |
||||
|
|
||||
|
/** */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@TableField(fill = FieldFill.INSERT) |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
|
||||
|
public static ErpDispatchData toNewObject(ErpDispatchData source){ |
||||
|
ErpDispatchData dispatchData = new ErpDispatchData(); |
||||
|
dispatchData.setId(source.getId()); |
||||
|
dispatchData.setPlace(source.getPlace()); |
||||
|
dispatchData.setDlCode(source.getDlCode()); |
||||
|
dispatchData.setDate(source.getDate()); |
||||
|
dispatchData.setCusCode(source.getCusCode()); |
||||
|
dispatchData.setCusName(source.getCusName()); |
||||
|
dispatchData.setInvCode(source.getInvCode()); |
||||
|
dispatchData.setInvName(source.getInvName()); |
||||
|
dispatchData.setInvBatch(source.getInvBatch()); |
||||
|
dispatchData.setSalesDepCode(source.getSalesDepCode()); |
||||
|
dispatchData.setDepName(source.getDepName()); |
||||
|
dispatchData.setQty(source.getQty()); |
||||
|
dispatchData.setSumMoney(source.getSumMoney()); |
||||
|
dispatchData.setVolume(source.getVolume()); |
||||
|
dispatchData.setNetWeight(source.getNetWeight()); |
||||
|
dispatchData.setDispatchCost(source.getDispatchCost()); |
||||
|
dispatchData.setInvDispatchCost(source.getInvDispatchCost()); |
||||
|
dispatchData.setInvTransFee(source.getInvTransFee()); |
||||
|
dispatchData.setInvProduceCost(source.getInvProduceCost()); |
||||
|
dispatchData.setCreateTime(source.getCreateTime()); |
||||
|
return dispatchData; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.erp.mapper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.qs.serve.modules.erp.entity.ErpDispatchData; |
||||
|
|
||||
|
/** |
||||
|
* 发货单数据 Mapper |
||||
|
* @author YenHex |
||||
|
* @date 2023-06-06 |
||||
|
*/ |
||||
|
public interface ErpDispatchDataMapper extends BaseMapper<ErpDispatchData> { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
package com.qs.serve.modules.erp.service; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.qs.serve.modules.erp.entity.ErpDispatchData; |
||||
|
|
||||
|
/** |
||||
|
* 发货单数据 服务接口 |
||||
|
* @author YenHex |
||||
|
* @date 2023-06-06 |
||||
|
*/ |
||||
|
public interface ErpDispatchDataService extends IService<ErpDispatchData> { |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,22 @@ |
|||||
|
package com.qs.serve.modules.erp.service.impl; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.qs.serve.modules.erp.entity.ErpDispatchData; |
||||
|
import com.qs.serve.modules.erp.service.ErpDispatchDataService; |
||||
|
import com.qs.serve.modules.erp.mapper.ErpDispatchDataMapper; |
||||
|
|
||||
|
/** |
||||
|
* 发货单数据 服务实现类 |
||||
|
* @author YenHex |
||||
|
* @since 2023-06-06 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@AllArgsConstructor |
||||
|
public class ErpDispatchDataServiceImpl extends ServiceImpl<ErpDispatchDataMapper,ErpDispatchData> implements ErpDispatchDataService { |
||||
|
|
||||
|
} |
||||
|
|
@ -1,4 +1,4 @@ |
|||||
package com.qs.serve.modules.check.common; |
package com.qs.serve.modules.excel.common; |
||||
|
|
||||
import lombok.Data; |
import lombok.Data; |
||||
import org.springframework.format.annotation.DateTimeFormat; |
import org.springframework.format.annotation.DateTimeFormat; |
@ -1,8 +1,7 @@ |
|||||
package com.qs.serve.modules.check.entity; |
package com.qs.serve.modules.excel.entity; |
||||
|
|
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
||||
import java.math.BigDecimal; |
|
||||
import java.time.LocalDate; |
import java.time.LocalDate; |
||||
import java.util.List; |
import java.util.List; |
||||
|
|
@ -1,9 +1,8 @@ |
|||||
package com.qs.serve.modules.check.entity; |
package com.qs.serve.modules.excel.entity; |
||||
|
|
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
||||
import java.math.BigDecimal; |
import java.math.BigDecimal; |
||||
import java.time.LocalDate; |
|
||||
|
|
||||
/** |
/** |
||||
* 对账单 |
* 对账单 |
@ -1,4 +1,4 @@ |
|||||
package com.qs.serve.modules.check.entity; |
package com.qs.serve.modules.excel.entity; |
||||
|
|
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
@ -1,8 +1,8 @@ |
|||||
package com.qs.serve.modules.check.service; |
package com.qs.serve.modules.excel.service; |
||||
|
|
||||
import com.qs.serve.modules.check.common.DataSupplierSo; |
import com.qs.serve.modules.excel.common.DataSupplierSo; |
||||
import com.qs.serve.modules.check.entity.DataCheckApplyDetailInfo; |
import com.qs.serve.modules.excel.entity.DataCheckApplyDetailInfo; |
||||
import com.qs.serve.modules.check.entity.DataCheckApplyMainInfo; |
import com.qs.serve.modules.excel.entity.DataCheckApplyMainInfo; |
||||
|
|
||||
/** |
/** |
||||
* @author YenHex |
* @author YenHex |
@ -1,21 +1,18 @@ |
|||||
package com.qs.serve.modules.check.service.impl; |
package com.qs.serve.modules.excel.service.impl; |
||||
|
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import com.qs.serve.modules.bms.entity.BmsSupplier; |
import com.qs.serve.modules.bms.entity.BmsSupplier; |
||||
import com.qs.serve.modules.bms.entity.BmsSupplierContacts; |
import com.qs.serve.modules.bms.entity.BmsSupplierContacts; |
||||
import com.qs.serve.modules.bms.mapper.BmsSupplierContactsMapper; |
|
||||
import com.qs.serve.modules.bms.mapper.BmsSupplierMapper; |
import com.qs.serve.modules.bms.mapper.BmsSupplierMapper; |
||||
import com.qs.serve.modules.bms.service.BmsSupplierContactsService; |
import com.qs.serve.modules.bms.service.BmsSupplierContactsService; |
||||
import com.qs.serve.modules.check.common.DataSupplierSo; |
import com.qs.serve.modules.excel.common.DataSupplierSo; |
||||
import com.qs.serve.modules.check.entity.DataCheckApplyDetailInfo; |
import com.qs.serve.modules.excel.entity.DataCheckApplyDetailInfo; |
||||
import com.qs.serve.modules.check.entity.DataCheckApplyDetailItem; |
import com.qs.serve.modules.excel.entity.DataCheckApplyDetailItem; |
||||
import com.qs.serve.modules.check.entity.DataCheckApplyMainInfo; |
import com.qs.serve.modules.excel.entity.DataCheckApplyMainInfo; |
||||
import com.qs.serve.modules.check.service.DateCheckApplyService; |
import com.qs.serve.modules.excel.service.DateCheckApplyService; |
||||
import com.qs.serve.modules.pay.common.PaymentType; |
import com.qs.serve.modules.pay.common.PaymentType; |
||||
import com.qs.serve.modules.pay.entity.PayPayment; |
|
||||
import com.qs.serve.modules.pay.entity.PayPaymentItem; |
import com.qs.serve.modules.pay.entity.PayPaymentItem; |
||||
import com.qs.serve.modules.pay.mapper.PayPaymentItemMapper; |
import com.qs.serve.modules.pay.mapper.PayPaymentItemMapper; |
||||
import com.qs.serve.modules.pay.mapper.PayPaymentMapper; |
|
||||
import com.qs.serve.modules.tbs.entity.TbsActivity; |
import com.qs.serve.modules.tbs.entity.TbsActivity; |
||||
import com.qs.serve.modules.tbs.entity.TbsCostApply; |
import com.qs.serve.modules.tbs.entity.TbsCostApply; |
||||
import com.qs.serve.modules.tbs.mapper.TbsActivityMapper; |
import com.qs.serve.modules.tbs.mapper.TbsActivityMapper; |
Loading…
Reference in new issue