配件接口优化
This commit is contained in:
parent
f7d336cfc4
commit
3641ec942c
|
|
@ -27,9 +27,9 @@ public class PartType extends BaseEntity
|
||||||
/** 类型ID */
|
/** 类型ID */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/** 类型名称 */
|
/** 规格型号 */
|
||||||
@Excel(name = "名称")
|
@Excel(name = "规格型号")
|
||||||
@ApiModelProperty(value = "类型名称")
|
@ApiModelProperty(value = "规格型号")
|
||||||
@NotBlank(message = "名称不能为空")
|
@NotBlank(message = "名称不能为空")
|
||||||
@Size(max=30, message = "名称长度不能超过30")
|
@Size(max=30, message = "名称长度不能超过30")
|
||||||
private String paName;
|
private String paName;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ public class MaTypeVo extends Type {
|
||||||
private String itemType;
|
private String itemType;
|
||||||
|
|
||||||
@Excel(name = "物资类型")
|
@Excel(name = "物资类型")
|
||||||
@ApiModelProperty(value = "施工类型")
|
@ApiModelProperty(value = "物资类型")
|
||||||
private String materialType;
|
private String materialType;
|
||||||
|
|
||||||
@Excel(name = "物资名称")
|
@Excel(name = "物资名称")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.bonus.material.ma.domain.vo;
|
||||||
|
|
||||||
|
import com.bonus.common.core.annotation.Excel;
|
||||||
|
import com.bonus.material.ma.domain.PartType;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class PartTypeVo extends PartType {
|
||||||
|
|
||||||
|
@Excel(name = "配件类型")
|
||||||
|
@ApiModelProperty(value = "配件类型")
|
||||||
|
private String partType;
|
||||||
|
|
||||||
|
@Excel(name = "配件名称")
|
||||||
|
@ApiModelProperty(value = "配件名称")
|
||||||
|
private String partName;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -172,10 +172,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getListByTypeName" resultType="com.bonus.material.ma.domain.PartType">
|
<select id="getListByTypeName" resultType="com.bonus.material.ma.domain.vo.PartTypeVo">
|
||||||
SELECT DISTINCT
|
SELECT DISTINCT
|
||||||
m.pa_id AS id,
|
m.pa_id AS id,
|
||||||
m.pa_name AS paName,
|
m.pa_name AS paName,
|
||||||
|
m1.pa_name AS partName,
|
||||||
|
m2.pa_name As partType,
|
||||||
m.parent_id as parentId,
|
m.parent_id as parentId,
|
||||||
m.LEVEL as level,
|
m.LEVEL as level,
|
||||||
m.remark as remark
|
m.remark as remark
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue