
36 changed files with 1487 additions and 2 deletions
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenew; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.IdType; |
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: Purchasenew.java <br/> |
|||
* Class: com.wh..api.purchasenew.Purchasenew <br/> |
|||
* Description: 采购订单. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单", description = "采购订单") |
|||
@TableName("purchasenew") |
|||
public class Purchasenew extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
// @TableId(type = IdType.AUTO)
|
|||
// private Integer id;
|
|||
@ApiModelProperty("订单日期") |
|||
private String purchaseDate; // 订单日期
|
|||
@ApiModelProperty("订单编号") |
|||
private String purchaseNo; // 订单编号
|
|||
@ApiModelProperty("采购人员") |
|||
private String purchasePerson; // 采购人员
|
|||
@ApiModelProperty("采购人员sid") |
|||
private String purchasePersonSid; // 采购人员sid
|
|||
@ApiModelProperty("客户id") |
|||
private String custId; // 客户id
|
|||
@ApiModelProperty("客户名称") |
|||
private String custName; // 客户名称
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商id") |
|||
private String supplierId; // 供应商id
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storehouseName; // 仓库名称
|
|||
@ApiModelProperty("仓库id") |
|||
private String storehouseId; // 仓库id
|
|||
@ApiModelProperty("状态") |
|||
private String status; // 状态
|
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenew; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewVo.java <br/> |
|||
* Class: com.wh..api.purchasenew.PurchasenewVo <br/> |
|||
* Description: 采购订单 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单 视图数据详情", description = "采购订单 视图数据详情") |
|||
public class PurchasenewDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("订单日期") |
|||
private String purchaseDate; // 订单日期
|
|||
@ApiModelProperty("订单编号") |
|||
private String purchaseNo; // 订单编号
|
|||
@ApiModelProperty("采购人员") |
|||
private String purchasePerson; // 采购人员
|
|||
@ApiModelProperty("采购人员sid") |
|||
private String purchasePersonSid; // 采购人员sid
|
|||
@ApiModelProperty("客户id") |
|||
private String custId; // 客户id
|
|||
@ApiModelProperty("客户名称") |
|||
private String custName; // 客户名称
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商id") |
|||
private String supplierId; // 供应商id
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storehouseName; // 仓库名称
|
|||
@ApiModelProperty("仓库id") |
|||
private String storehouseId; // 仓库id
|
|||
@ApiModelProperty("状态") |
|||
private String status; // 状态
|
|||
|
|||
} |
@ -0,0 +1,81 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenew; |
|||
|
|||
|
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProduct; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductDto; |
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewDto.java <br/> |
|||
* Class: com.wh..api.purchasenew.PurchasenewDto <br/> |
|||
* Description: 采购订单 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单 数据传输对象", description = "采购订单 数据传输对象") |
|||
public class PurchasenewDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("订单日期") |
|||
private String purchaseDate; // 订单日期
|
|||
@ApiModelProperty("订单编号") |
|||
private String purchaseNo; // 订单编号
|
|||
@ApiModelProperty("采购人员") |
|||
private String purchasePerson; // 采购人员
|
|||
@ApiModelProperty("采购人员sid") |
|||
private String purchasePersonSid; // 采购人员sid
|
|||
@ApiModelProperty("客户id") |
|||
private String custId; // 客户id
|
|||
@ApiModelProperty("客户名称") |
|||
private String custName; // 客户名称
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商id") |
|||
private String supplierId; // 供应商id
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storehouseName; // 仓库名称
|
|||
@ApiModelProperty("仓库id") |
|||
private String storehouseId; // 仓库id
|
|||
@ApiModelProperty("状态") |
|||
private String status; // 状态
|
|||
@ApiModelProperty("商品列表") |
|||
private List<PurchasenewProductDto> products; |
|||
} |
@ -0,0 +1,74 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenew; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewQuery.java <br/> |
|||
* Class: com.wh..api.purchasenew.PurchasenewQuery <br/> |
|||
* Description: 采购订单 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单 查询条件", description = "采购订单 查询条件") |
|||
public class PurchasenewQuery implements Query { |
|||
@ApiModelProperty("订单日期") |
|||
private String purchaseDate; // 订单日期
|
|||
@ApiModelProperty("订单编号") |
|||
private String purchaseNo; // 订单编号
|
|||
@ApiModelProperty("采购人员") |
|||
private String purchasePerson; // 采购人员
|
|||
@ApiModelProperty("采购人员sid") |
|||
private String purchasePersonSid; // 采购人员sid
|
|||
@ApiModelProperty("客户id") |
|||
private String custId; // 客户id
|
|||
@ApiModelProperty("客户名称") |
|||
private String custName; // 客户名称
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商id") |
|||
private String supplierId; // 供应商id
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storehouseName; // 仓库名称
|
|||
@ApiModelProperty("仓库id") |
|||
private String storehouseId; // 仓库id
|
|||
@ApiModelProperty("状态") |
|||
private String status; // 状态
|
|||
|
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenew; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewVo.java <br/> |
|||
* Class: com.wh..api.purchasenew.PurchasenewVo <br/> |
|||
* Description: 采购订单 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "采购订单 视图数据对象", description = "采购订单 视图数据对象") |
|||
public class PurchasenewVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("订单日期") |
|||
private String purchaseDate; // 订单日期
|
|||
@ApiModelProperty("订单编号") |
|||
private String purchaseNo; // 订单编号
|
|||
@ApiModelProperty("采购人员") |
|||
private String purchasePerson; // 采购人员
|
|||
@ApiModelProperty("采购人员sid") |
|||
private String purchasePersonSid; // 采购人员sid
|
|||
@ApiModelProperty("客户id") |
|||
private String custId; // 客户id
|
|||
@ApiModelProperty("客户名称") |
|||
private String custName; // 客户名称
|
|||
@ApiModelProperty("供应商名称") |
|||
private String supplierName; // 供应商名称
|
|||
@ApiModelProperty("供应商id") |
|||
private String supplierId; // 供应商id
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storehouseName; // 仓库名称
|
|||
@ApiModelProperty("仓库id") |
|||
private String storehouseId; // 仓库id
|
|||
@ApiModelProperty("状态") |
|||
private String status; // 状态
|
|||
|
|||
} |
@ -0,0 +1,97 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenewproduct; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.IdType; |
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProduct.java <br/> |
|||
* Class: com.wh..api.purchasenewproduct.PurchasenewProduct <br/> |
|||
* Description: purchasenew_product. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "purchasenew_product", description = "purchasenew_product") |
|||
@TableName("purchasenew_product") |
|||
public class PurchasenewProduct extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
@TableId(type = IdType.AUTO) |
|||
private Integer id; |
|||
@ApiModelProperty("客户Sid(企业)") |
|||
private String custerSid; // 客户Sid(企业)
|
|||
@ApiModelProperty("客户名称(企业)") |
|||
private String custerName; // 客户名称(企业)
|
|||
@ApiModelProperty("仓库Sid") |
|||
private String storeHouseSid; // 仓库Sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storeHouseName; // 仓库名称
|
|||
@ApiModelProperty("质物名称") |
|||
private String proName; // 质物名称
|
|||
@ApiModelProperty("规格(型号)") |
|||
private String proModel; // 规格(型号)
|
|||
@ApiModelProperty("规格单位") |
|||
private String proUnit; // 规格单位
|
|||
@ApiModelProperty("生成厂家(产地)") |
|||
private String manufacturer; // 生成厂家(产地)
|
|||
@ApiModelProperty("数量") |
|||
private String estimateNum; // 数量
|
|||
@ApiModelProperty("重量") |
|||
private String estimateWeight; // 重量
|
|||
@ApiModelProperty("质权人确认的单价") |
|||
private String estimateConfirmedPrice; // 质权人确认的单价
|
|||
@ApiModelProperty("核算的价值") |
|||
private String estimateCalculatedValue; // 核算的价值
|
|||
@ApiModelProperty("实际数量") |
|||
private String realityNum; // 实际数量
|
|||
@ApiModelProperty("实际重量") |
|||
private String realityWeight; // 实际重量
|
|||
@ApiModelProperty("实际质权人确认的单价") |
|||
private String realityConfirmedPrice; // 实际质权人确认的单价
|
|||
@ApiModelProperty("实际核算的价值") |
|||
private String realityCalculatedValue; // 实际核算的价值
|
|||
@ApiModelProperty("货位号") |
|||
private String locationNumber; // 货位号
|
|||
@ApiModelProperty("申请单的sid") |
|||
private String mainSid; // 申请单的sid
|
|||
@ApiModelProperty("质物id") |
|||
private String proId; // 质物id
|
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenewproduct; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProductVo.java <br/> |
|||
* Class: com.wh..api.purchasenewproduct.PurchasenewProductVo <br/> |
|||
* Description: purchasenew_product 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "purchasenew_product 视图数据详情", description = "purchasenew_product 视图数据详情") |
|||
public class PurchasenewProductDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("客户Sid(企业)") |
|||
private String custerSid; // 客户Sid(企业)
|
|||
@ApiModelProperty("客户名称(企业)") |
|||
private String custerName; // 客户名称(企业)
|
|||
@ApiModelProperty("仓库Sid") |
|||
private String storeHouseSid; // 仓库Sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storeHouseName; // 仓库名称
|
|||
@ApiModelProperty("质物名称") |
|||
private String proName; // 质物名称
|
|||
@ApiModelProperty("规格(型号)") |
|||
private String proModel; // 规格(型号)
|
|||
@ApiModelProperty("规格单位") |
|||
private String proUnit; // 规格单位
|
|||
@ApiModelProperty("生成厂家(产地)") |
|||
private String manufacturer; // 生成厂家(产地)
|
|||
@ApiModelProperty("数量") |
|||
private String estimateNum; // 数量
|
|||
@ApiModelProperty("重量") |
|||
private String estimateWeight; // 重量
|
|||
@ApiModelProperty("质权人确认的单价") |
|||
private String estimateConfirmedPrice; // 质权人确认的单价
|
|||
@ApiModelProperty("核算的价值") |
|||
private String estimateCalculatedValue; // 核算的价值
|
|||
@ApiModelProperty("实际数量") |
|||
private String realityNum; // 实际数量
|
|||
@ApiModelProperty("实际重量") |
|||
private String realityWeight; // 实际重量
|
|||
@ApiModelProperty("实际质权人确认的单价") |
|||
private String realityConfirmedPrice; // 实际质权人确认的单价
|
|||
@ApiModelProperty("实际核算的价值") |
|||
private String realityCalculatedValue; // 实际核算的价值
|
|||
@ApiModelProperty("货位号") |
|||
private String locationNumber; // 货位号
|
|||
@ApiModelProperty("申请单的sid") |
|||
private String mainSid; // 申请单的sid
|
|||
@ApiModelProperty("质物id") |
|||
private String proId; // 质物id
|
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenewproduct; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProductDto.java <br/> |
|||
* Class: com.wh..api.purchasenewproduct.PurchasenewProductDto <br/> |
|||
* Description: purchasenew_product 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "purchasenew_product 数据传输对象", description = "purchasenew_product 数据传输对象") |
|||
public class PurchasenewProductDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("客户Sid(企业)") |
|||
private String custerSid; // 客户Sid(企业)
|
|||
@ApiModelProperty("客户名称(企业)") |
|||
private String custerName; // 客户名称(企业)
|
|||
@ApiModelProperty("仓库Sid") |
|||
private String storeHouseSid; // 仓库Sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storeHouseName; // 仓库名称
|
|||
@ApiModelProperty("质物名称") |
|||
private String proName; // 质物名称
|
|||
@ApiModelProperty("规格(型号)") |
|||
private String proModel; // 规格(型号)
|
|||
@ApiModelProperty("规格单位") |
|||
private String proUnit; // 规格单位
|
|||
@ApiModelProperty("生成厂家(产地)") |
|||
private String manufacturer; // 生成厂家(产地)
|
|||
@ApiModelProperty("数量") |
|||
private String estimateNum; // 数量
|
|||
@ApiModelProperty("重量") |
|||
private String estimateWeight; // 重量
|
|||
@ApiModelProperty("质权人确认的单价") |
|||
private String estimateConfirmedPrice; // 质权人确认的单价
|
|||
@ApiModelProperty("核算的价值") |
|||
private String estimateCalculatedValue; // 核算的价值
|
|||
@ApiModelProperty("实际数量") |
|||
private String realityNum; // 实际数量
|
|||
@ApiModelProperty("实际重量") |
|||
private String realityWeight; // 实际重量
|
|||
@ApiModelProperty("实际质权人确认的单价") |
|||
private String realityConfirmedPrice; // 实际质权人确认的单价
|
|||
@ApiModelProperty("实际核算的价值") |
|||
private String realityCalculatedValue; // 实际核算的价值
|
|||
@ApiModelProperty("货位号") |
|||
private String locationNumber; // 货位号
|
|||
@ApiModelProperty("申请单的sid") |
|||
private String mainSid; // 申请单的sid
|
|||
@ApiModelProperty("质物id") |
|||
private String proId; // 质物id
|
|||
|
|||
} |
@ -0,0 +1,93 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenewproduct; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProductQuery.java <br/> |
|||
* Class: com.wh..api.purchasenewproduct.PurchasenewProductQuery <br/> |
|||
* Description: purchasenew_product 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "purchasenew_product 查询条件", description = "purchasenew_product 查询条件") |
|||
public class PurchasenewProductQuery implements Query { |
|||
|
|||
@ApiModelProperty("客户Sid(企业)") |
|||
private String custerSid; // 客户Sid(企业)
|
|||
@ApiModelProperty("客户名称(企业)") |
|||
private String custerName; // 客户名称(企业)
|
|||
@ApiModelProperty("仓库Sid") |
|||
private String storeHouseSid; // 仓库Sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storeHouseName; // 仓库名称
|
|||
@ApiModelProperty("质物名称") |
|||
private String proName; // 质物名称
|
|||
@ApiModelProperty("规格(型号)") |
|||
private String proModel; // 规格(型号)
|
|||
@ApiModelProperty("规格单位") |
|||
private String proUnit; // 规格单位
|
|||
@ApiModelProperty("生成厂家(产地)") |
|||
private String manufacturer; // 生成厂家(产地)
|
|||
@ApiModelProperty("数量") |
|||
private String estimateNum; // 数量
|
|||
@ApiModelProperty("重量") |
|||
private String estimateWeight; // 重量
|
|||
@ApiModelProperty("质权人确认的单价") |
|||
private String estimateConfirmedPrice; // 质权人确认的单价
|
|||
@ApiModelProperty("核算的价值") |
|||
private String estimateCalculatedValue; // 核算的价值
|
|||
@ApiModelProperty("实际数量") |
|||
private String realityNum; // 实际数量
|
|||
@ApiModelProperty("实际重量") |
|||
private String realityWeight; // 实际重量
|
|||
@ApiModelProperty("实际质权人确认的单价") |
|||
private String realityConfirmedPrice; // 实际质权人确认的单价
|
|||
@ApiModelProperty("实际核算的价值") |
|||
private String realityCalculatedValue; // 实际核算的价值
|
|||
@ApiModelProperty("货位号") |
|||
private String locationNumber; // 货位号
|
|||
@ApiModelProperty("申请单的sid") |
|||
private String mainSid; // 申请单的sid
|
|||
@ApiModelProperty("质物id") |
|||
private String proId; // 质物id
|
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.pojo.purchasenewproduct; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProductVo.java <br/> |
|||
* Class: com.wh..api.purchasenewproduct.PurchasenewProductVo <br/> |
|||
* Description: purchasenew_product 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "purchasenew_product 视图数据对象", description = "purchasenew_product 视图数据对象") |
|||
public class PurchasenewProductVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("客户Sid(企业)") |
|||
private String custerSid; // 客户Sid(企业)
|
|||
@ApiModelProperty("客户名称(企业)") |
|||
private String custerName; // 客户名称(企业)
|
|||
@ApiModelProperty("仓库Sid") |
|||
private String storeHouseSid; // 仓库Sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String storeHouseName; // 仓库名称
|
|||
@ApiModelProperty("质物名称") |
|||
private String proName; // 质物名称
|
|||
@ApiModelProperty("规格(型号)") |
|||
private String proModel; // 规格(型号)
|
|||
@ApiModelProperty("规格单位") |
|||
private String proUnit; // 规格单位
|
|||
@ApiModelProperty("生成厂家(产地)") |
|||
private String manufacturer; // 生成厂家(产地)
|
|||
@ApiModelProperty("数量") |
|||
private String estimateNum; // 数量
|
|||
@ApiModelProperty("重量") |
|||
private String estimateWeight; // 重量
|
|||
@ApiModelProperty("质权人确认的单价") |
|||
private String estimateConfirmedPrice; // 质权人确认的单价
|
|||
@ApiModelProperty("核算的价值") |
|||
private String estimateCalculatedValue; // 核算的价值
|
|||
@ApiModelProperty("实际数量") |
|||
private String realityNum; // 实际数量
|
|||
@ApiModelProperty("实际重量") |
|||
private String realityWeight; // 实际重量
|
|||
@ApiModelProperty("实际质权人确认的单价") |
|||
private String realityConfirmedPrice; // 实际质权人确认的单价
|
|||
@ApiModelProperty("实际核算的价值") |
|||
private String realityCalculatedValue; // 实际核算的价值
|
|||
@ApiModelProperty("货位号") |
|||
private String locationNumber; // 货位号
|
|||
@ApiModelProperty("申请单的sid") |
|||
private String mainSid; // 申请单的sid
|
|||
@ApiModelProperty("质物id") |
|||
private String proId; // 质物id
|
|||
|
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.wh.controller.purchasenew; |
|||
|
|||
import com.wh.pojo.purchasenew.PurchasenewDetailsVo; |
|||
import com.wh.pojo.purchasenew.PurchasenewDto; |
|||
import com.wh.pojo.purchasenew.PurchasenewQuery; |
|||
import com.wh.pojo.purchasenew.PurchasenewVo; |
|||
import com.wh.service.purchasenew.PurchasenewService; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
@RestController |
|||
@CrossOrigin |
|||
@RequestMapping("/purchasenew") |
|||
public class PurchasenewController { |
|||
@Autowired |
|||
private PurchasenewService purchasenewService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<PurchasenewVo>> listPage(@RequestBody PagerQuery<PurchasenewQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<PurchasenewVo> pv = purchasenewService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody PurchasenewDto dto){ |
|||
return purchasenewService.saveOrUpdateDto(dto); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
purchasenewService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<PurchasenewDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PurchasenewDetailsVo vo = purchasenewService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.wh.controller.purchasenewproduct; |
|||
|
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductDetailsVo; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductDto; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductQuery; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductVo; |
|||
import com.wh.service.purchasenewproduct.PurchasenewProductService; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
@RestController |
|||
@CrossOrigin |
|||
@RequestMapping("/purchasenewproduct/") |
|||
public class PurchasenewProductController { |
|||
|
|||
@Autowired |
|||
private PurchasenewProductService purchasenewProductService; |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<PurchasenewProductVo>> listPage(@RequestBody PagerQuery<PurchasenewProductQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<PurchasenewProductVo> pv = purchasenewProductService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody PurchasenewProductDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
purchasenewProductService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
purchasenewProductService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<PurchasenewProductDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PurchasenewProductDetailsVo vo = purchasenewProductService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.mapper.purchasenew; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import com.wh.pojo.purchasenew.Purchasenew; |
|||
import com.wh.pojo.purchasenew.PurchasenewVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewMapper.java <br/> |
|||
* Class: com.wh..biz.purchasenew.PurchasenewMapper <br/> |
|||
* Description: 采购订单. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface PurchasenewMapper extends BaseMapper<Purchasenew> { |
|||
|
|||
//@Update("update purchasenew set name=#{msg} where id=#{id}")
|
|||
//IPage<PurchasenewVo> voPage(IPage<Purchasenew> page, @Param(Constants.WRAPPER) QueryWrapper<Purchasenew> qw);
|
|||
|
|||
IPage<PurchasenewVo> selectPageVo(IPage<Purchasenew> page, @Param(Constants.WRAPPER) Wrapper<Purchasenew> qw); |
|||
|
|||
List<PurchasenewVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<Purchasenew> qw); |
|||
|
|||
@Select("select * from purchasenew") |
|||
List<PurchasenewVo> selectListVo(); |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.mapper.purchasenewproduct; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProduct; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProductMapper.java <br/> |
|||
* Class: com.wh..biz.purchasenewproduct.PurchasenewProductMapper <br/> |
|||
* Description: purchasenew_product. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface PurchasenewProductMapper extends BaseMapper<PurchasenewProduct> { |
|||
|
|||
//@Update("update purchasenew_product set name=#{msg} where id=#{id}")
|
|||
//IPage<PurchasenewProductVo> voPage(IPage<PurchasenewProduct> page, @Param(Constants.WRAPPER) QueryWrapper<PurchasenewProduct> qw);
|
|||
|
|||
IPage<PurchasenewProductVo> selectPageVo(IPage<PurchasenewProduct> page, @Param(Constants.WRAPPER) Wrapper<PurchasenewProduct> qw); |
|||
|
|||
List<PurchasenewProductVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<PurchasenewProduct> qw); |
|||
|
|||
@Select("select * from purchasenew_product") |
|||
List<PurchasenewProductVo> selectListVo(); |
|||
} |
@ -0,0 +1,111 @@ |
|||
package com.wh.service.purchasenew; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|||
import com.wh.mapper.purchasenew.PurchasenewMapper; |
|||
import com.wh.pojo.purchasenew.*; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProduct; |
|||
import com.wh.pojo.purchasenewproduct.PurchasenewProductDto; |
|||
import com.wh.service.api.instorehouse.InStorehouseMainService; |
|||
import com.wh.service.purchasenewproduct.PurchasenewProductService; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
@Slf4j |
|||
@Service |
|||
public class PurchasenewService extends MybatisBaseService<PurchasenewMapper, Purchasenew> { |
|||
@Autowired |
|||
private PurchasenewProductService purchasenewProductService; |
|||
@Autowired |
|||
private InStorehouseMainService inStorehouseMainService; |
|||
private QueryWrapper<Purchasenew> createQueryWrapper(PurchasenewQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<Purchasenew> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<PurchasenewVo> listPageVo(PagerQuery<PurchasenewQuery> pq) { |
|||
PurchasenewQuery query = pq.getParams(); |
|||
QueryWrapper<Purchasenew> qw = createQueryWrapper(query); |
|||
IPage<Purchasenew> page = PagerUtil.queryToPage(pq); |
|||
IPage<PurchasenewVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<PurchasenewVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
@Transactional |
|||
public ResultBean saveOrUpdateDto(PurchasenewDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String dtoSid = dto.getSid(); |
|||
List<PurchasenewProductDto> products = dto.getProducts(); |
|||
if(products.size()==0){ |
|||
return rb.setMsg("商品列表不能为空"); |
|||
} |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return this.insertByDto(dto); |
|||
} |
|||
return this.updateByDto(dto); |
|||
} |
|||
|
|||
public ResultBean insertByDto(PurchasenewDto dto){ |
|||
|
|||
ResultBean rb = ResultBean.fireFail(); |
|||
Purchasenew entity = new Purchasenew(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
/* dto.setSid(entity.getSid());*/ |
|||
addPurchasenewProduct(dto, rb, entity); |
|||
return inStorehouseMainService.saveOrUpdateByPurchaseSid(dto,entity.getSid()); |
|||
|
|||
} |
|||
|
|||
public ResultBean updateByDto(PurchasenewDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return rb.setMsg("主键信息不能为空"); |
|||
} |
|||
Purchasenew entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
//dto.setSid(entity.getSid());
|
|||
purchasenewProductService.deleteByPurchaseSid(dtoSid); |
|||
addPurchasenewProduct(dto, rb, entity); |
|||
return inStorehouseMainService.saveOrUpdateByPurchaseSid(dto,entity.getSid()); |
|||
} |
|||
|
|||
private ResultBean addPurchasenewProduct(PurchasenewDto dto, ResultBean rb, Purchasenew entity) { |
|||
List<PurchasenewProduct> l =new ArrayList<>(); |
|||
List<PurchasenewProductDto> products = dto.getProducts(); |
|||
products.forEach(p->{ |
|||
PurchasenewProduct pp=new PurchasenewProduct(); |
|||
BeanUtil.copyProperties(p,pp,"id","sid"); |
|||
pp.setMainSid(entity.getSid()); |
|||
l.add(pp); |
|||
}); |
|||
boolean b = purchasenewProductService.saveBatch(l); |
|||
if (b) |
|||
return rb.success(); |
|||
return rb; |
|||
} |
|||
|
|||
public PurchasenewDetailsVo fetchDetailsVoBySid(String sid){ |
|||
Purchasenew entity = fetchBySid(sid); |
|||
PurchasenewDetailsVo vo = new PurchasenewDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.wh.service.purchasenewproduct; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.wh.mapper.purchasenewproduct.PurchasenewProductMapper; |
|||
import com.wh.pojo.purchasenewproduct.*; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* Project: warehouse(仓储) <br/> |
|||
* File: PurchasenewProductService.java <br/> |
|||
* Class: com.wh..biz.purchasenewproduct.PurchasenewProductService <br/> |
|||
* Description: purchasenew_product 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-06-10 18:09:57 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class PurchasenewProductService extends MybatisBaseService<PurchasenewProductMapper, PurchasenewProduct> { |
|||
private QueryWrapper<PurchasenewProduct> createQueryWrapper(PurchasenewProductQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<PurchasenewProduct> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<PurchasenewProductVo> listPageVo(PagerQuery<PurchasenewProductQuery> pq) { |
|||
PurchasenewProductQuery query = pq.getParams(); |
|||
QueryWrapper<PurchasenewProduct> qw = createQueryWrapper(query); |
|||
IPage<PurchasenewProduct> page = PagerUtil.queryToPage(pq); |
|||
IPage<PurchasenewProductVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<PurchasenewProductVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(PurchasenewProductDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(PurchasenewProductDto dto){ |
|||
PurchasenewProduct entity = new PurchasenewProduct(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(PurchasenewProductDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
PurchasenewProduct entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public PurchasenewProductDetailsVo fetchDetailsVoBySid(String sid){ |
|||
PurchasenewProduct entity = fetchBySid(sid); |
|||
PurchasenewProductDetailsVo vo = new PurchasenewProductDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
/** |
|||
* 根据采购订单的sid删除采购订单的商品信息 |
|||
* @param dtoSid |
|||
*/ |
|||
public ResultBean deleteByPurchaseSid(String dtoSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PurchasenewProductQuery query=new PurchasenewProductQuery(); |
|||
query.setMainSid(dtoSid); |
|||
QueryWrapper<PurchasenewProduct> qw = createQueryWrapper(query); |
|||
int delete = baseMapper.delete(qw); |
|||
if (delete>0) |
|||
return rb.success(); |
|||
return rb; |
|||
|
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?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.wh.mapper.purchasenew.PurchasenewMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.wh.pojo.purchasenew.PurchasenewVo"> |
|||
SELECT * FROM purchasenew <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.wh.pojo.purchasenew.PurchasenewVo"> |
|||
SELECT * FROM purchasenew <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,13 @@ |
|||
<?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.wh.mapper.purchasenewproduct.PurchasenewProductMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.wh.pojo.purchasenewproduct.PurchasenewProductVo"> |
|||
SELECT * FROM purchasenew_product <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.wh.pojo.purchasenewproduct.PurchasenewProductVo"> |
|||
SELECT * FROM purchasenew_product <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue