This commit is contained in:
parent
fd2a191a6b
commit
61c0dfab9d
|
|
@ -21,69 +21,69 @@ public class MaPartType extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
//类型ID
|
//类型ID
|
||||||
@Excel(name = "类型ID")
|
//@Excel(name = "类型ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
@Excel(name = "配件类型")
|
||||||
|
private String partType;
|
||||||
|
|
||||||
|
@Excel(name = "配件名称")
|
||||||
|
private String partName;
|
||||||
|
|
||||||
//类型名称
|
//类型名称
|
||||||
@Excel(name = "类型名称")
|
@Excel(name = "规格型号")
|
||||||
@Size(max = 30, message = "类型名称长度不能超过30")
|
@Size(max = 30, message = "类型名称长度不能超过30")
|
||||||
private String paName;
|
private String paName;
|
||||||
|
|
||||||
@ApiModelProperty("配件名称")
|
|
||||||
private String partName;
|
|
||||||
|
|
||||||
@ApiModelProperty("配件类型")
|
|
||||||
private String partType;
|
|
||||||
|
|
||||||
//上级ID
|
//上级ID
|
||||||
@Excel(name = "上级ID")
|
//@Excel(name = "上级ID")
|
||||||
private Long parentId;
|
private Long parentId;
|
||||||
|
|
||||||
//帐号状态(0正常 1停用)
|
//帐号状态(0正常 1停用)
|
||||||
@Excel(name = "帐号状态(0正常 1停用)")
|
//@Excel(name = "帐号状态(0正常 1停用)")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
//实时库存
|
//实时库存
|
||||||
@Excel(name = "实时库存")
|
//@Excel(name = "实时库存")
|
||||||
private String num;
|
private String num;
|
||||||
|
|
||||||
//计量单位ID
|
//计量单位ID
|
||||||
@Excel(name = "计量单位ID")
|
//@Excel(name = "计量单位ID")
|
||||||
private String unitId;
|
private String unitId;
|
||||||
|
|
||||||
@Excel(name = "计量单位")
|
@Excel(name = "计量单位")
|
||||||
private String unitName;
|
private String unitName;
|
||||||
|
|
||||||
//原值
|
//原值
|
||||||
@Excel(name = "原值")
|
//@Excel(name = "原值")
|
||||||
private String buyPrice;
|
private String buyPrice;
|
||||||
|
|
||||||
//层级
|
//层级
|
||||||
@Excel(name = "层级")
|
//@Excel(name = "层级")
|
||||||
private String level;
|
private String level;
|
||||||
|
|
||||||
//库存预警数量
|
//库存预警数量
|
||||||
@Excel(name = "库存预警数量")
|
//@Excel(name = "库存预警数量")
|
||||||
private String warnNum;
|
private String warnNum;
|
||||||
|
|
||||||
//删除标志(0代表存在 2代表删除)
|
//删除标志(0代表存在 2代表删除)
|
||||||
@Excel(name = "删除标志(0代表存在 2代表删除)")
|
//@Excel(name = "删除标志(0代表存在 2代表删除)")
|
||||||
private String delFlag;
|
private String delFlag;
|
||||||
|
|
||||||
//创建者
|
//创建者
|
||||||
@Excel(name = "创建者")
|
//@Excel(name = "创建者")
|
||||||
private String createBy;
|
private String createBy;
|
||||||
|
|
||||||
//创建时间
|
//创建时间
|
||||||
@Excel(name = "创建时间")
|
//@Excel(name = "创建时间")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
//更新者
|
//更新者
|
||||||
@Excel(name = "更新者")
|
//@Excel(name = "更新者")
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
//更新时间
|
//更新时间
|
||||||
@Excel(name = "更新时间")
|
//@Excel(name = "更新时间")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
//备注
|
//备注
|
||||||
|
|
@ -91,7 +91,7 @@ public class MaPartType extends BaseEntity {
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
//数据所属组织
|
//数据所属组织
|
||||||
@Excel(name = "数据所属组织")
|
//@Excel(name = "数据所属组织")
|
||||||
private String companyId;
|
private String companyId;
|
||||||
|
|
||||||
@ApiModelProperty("关键字")
|
@ApiModelProperty("关键字")
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public class MaPartTypeVo {
|
||||||
@Excel(name = "计量单位")
|
@Excel(name = "计量单位")
|
||||||
private String unitName;
|
private String unitName;
|
||||||
|
|
||||||
@Excel(name = "数量")
|
@Excel(name = "数量", cellType = Excel.ColumnType.NUMERIC)
|
||||||
private String num;
|
private String num;
|
||||||
|
|
||||||
//@Excel(name = "购置价格")
|
//@Excel(name = "购置价格")
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
pcd.supplier_id, msi.supplier, pcd.create_by, pcd.production_time, pcd.create_time,
|
pcd.supplier_id, msi.supplier, pcd.create_by, pcd.production_time, pcd.create_time,
|
||||||
pcd.file_name, pcd.file_url,pcd.update_by, pcd.update_time, pcd.remark, pcd.company_id,
|
pcd.file_name, pcd.file_url,pcd.update_by, pcd.update_time, pcd.remark, pcd.company_id,
|
||||||
mt1.pa_name machineTypeName,mt.pa_name specificationType, tk.code ,mt.pa_name typeName,
|
mt1.pa_name machineTypeName,mt.pa_name specificationType, tk.code ,mt.pa_name typeName,
|
||||||
mt.unit_id unitName
|
mt.unit_name unitName
|
||||||
from purchase_part_details pcd
|
from purchase_part_details pcd
|
||||||
left join ma_part_type mt on pcd.part_id = mt.pa_id
|
left join ma_part_type mt on pcd.part_id = mt.pa_id
|
||||||
left join ma_part_type mt1 on mt.parent_id = mt1.pa_id
|
left join ma_part_type mt1 on mt.parent_id = mt1.pa_id
|
||||||
|
|
@ -456,7 +456,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
pcd.supplier_id, msi.supplier, pcd.create_by, pcd.production_time, pcd.create_time,
|
pcd.supplier_id, msi.supplier, pcd.create_by, pcd.production_time, pcd.create_time,
|
||||||
pcd.file_name, pcd.file_url,pcd.update_by, pcd.update_time, pcd.remark, pcd.company_id,
|
pcd.file_name, pcd.file_url,pcd.update_by, pcd.update_time, pcd.remark, pcd.company_id,
|
||||||
mt1.pa_name machineTypeName,mt.pa_name specificationType, tk.code ,mt.pa_name typeName,
|
mt1.pa_name machineTypeName,mt.pa_name specificationType, tk.code ,mt.pa_name typeName,
|
||||||
mt.unit_id unitName
|
mt.unit_name unitName
|
||||||
from purchase_part_details pcd
|
from purchase_part_details pcd
|
||||||
left join ma_part_type mt on pcd.part_id = mt.pa_id
|
left join ma_part_type mt on pcd.part_id = mt.pa_id
|
||||||
left join ma_part_type mt1 on mt.parent_id = mt1.pa_id
|
left join ma_part_type mt1 on mt.parent_id = mt1.pa_id
|
||||||
|
|
@ -486,7 +486,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
pcd.check_num as checkNum,
|
pcd.check_num as checkNum,
|
||||||
pcd.`status`,
|
pcd.`status`,
|
||||||
ppi.remark,
|
ppi.remark,
|
||||||
mt.unit_id as unitName,
|
mt.unit_name as unitName,
|
||||||
CASE
|
CASE
|
||||||
WHEN pcd.`status` = 0 THEN '待验收'
|
WHEN pcd.`status` = 0 THEN '待验收'
|
||||||
WHEN pcd.`status` = 1 THEN '待入库'
|
WHEN pcd.`status` = 1 THEN '待入库'
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT pa_id AS id,
|
SELECT pa_id AS id,
|
||||||
pa_name AS label,
|
pa_name AS label,
|
||||||
parent_id AS parentId,
|
parent_id AS parentId,
|
||||||
unit_id as unitName,
|
unit_name as unitName,
|
||||||
level
|
level
|
||||||
FROM ma_part_type
|
FROM ma_part_type
|
||||||
WHERE del_flag = '0'
|
WHERE del_flag = '0'
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT pa_id AS id,
|
SELECT pa_id AS id,
|
||||||
pa_name AS label,
|
pa_name AS label,
|
||||||
parent_id AS parentId,
|
parent_id AS parentId,
|
||||||
unit_id as unitName,
|
unit_name as unitName,
|
||||||
level
|
level
|
||||||
FROM ma_part_type
|
FROM ma_part_type
|
||||||
WHERE del_flag = '0'
|
WHERE del_flag = '0'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue