Compare commits

..

No commits in common. "ada0c8d0baf130bc3243f26253d3372ebdb7caf2" and "2ec266aaa57c6564943d71aa064c2a95de58d255" have entirely different histories.

6 changed files with 6 additions and 41 deletions

View File

@ -46,10 +46,6 @@ public class AssetsRespVO {
@ExcelProperty("资产类型id") @ExcelProperty("资产类型id")
private Long typeId; private Long typeId;
@Schema(description = "资产类型名称", example = "5169")
@ExcelProperty("资产类型名称")
private String typeName;
@Schema(description = "其余信息(json)") @Schema(description = "其余信息(json)")
@ExcelProperty("其余信息(json)") @ExcelProperty("其余信息(json)")
private String itemJson; private String itemJson;
@ -60,4 +56,4 @@ public class AssetsRespVO {
@Schema(description = "资产类型 0按量 1按单件") @Schema(description = "资产类型 0按量 1按单件")
private Integer type; private Integer type;
} }

View File

@ -1,7 +1,5 @@
package cn.iocoder.yudao.module.system.dal.dataobject.assets; package cn.iocoder.yudao.module.system.dal.dataobject.assets;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -68,9 +66,4 @@ public class AssetsDO extends BaseDO {
*/ */
@TableField(exist = false) @TableField(exist = false)
private Integer type; private Integer type;
/** }
* 资产类型名称
*/
@TableField(exist = false)
private String typeName;
}

View File

@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections;
import java.util.List; import java.util.List;
/** /**
@ -69,11 +70,7 @@ public class AssetsServiceImpl implements AssetsService {
@Override @Override
public AssetsDO getAssets(Long id) { public AssetsDO getAssets(Long id) {
AssetsDO assetsDO = assetsMapper.selectById(id); return assetsMapper.selectById(id);
AssetsTypeDO assetsTypeDO = assetsTypeMapper.selectById(assetsDO.getTypeId());
assetsDO.setTypeName(assetsTypeDO.getName());
assetsDO.setType(assetsTypeDO.getType());
return assetsDO;
} }
@Override @Override

View File

@ -50,12 +50,6 @@ public class FactoryForkliftRespVO {
@ExcelProperty("厂商") @ExcelProperty("厂商")
private String manufacturer; private String manufacturer;
@Schema(description = "设备代码")
private String equipmentCode;
@Schema(description = "出厂编号")
private String serialNo;
@Schema(description = "型号") @Schema(description = "型号")
@ExcelProperty("型号") @ExcelProperty("型号")
private String modelNo; private String modelNo;

View File

@ -30,12 +30,6 @@ public class FactoryForkliftSaveReqVO {
@Schema(description = "厂商") @Schema(description = "厂商")
private String manufacturer; private String manufacturer;
@Schema(description = "设备代码")
private String equipmentCode;
@Schema(description = "出厂编号")
private String serialNo;
@Schema(description = "型号") @Schema(description = "型号")
private String modelNo; private String modelNo;
@ -48,4 +42,4 @@ public class FactoryForkliftSaveReqVO {
@Schema(description = "用途类型 根据字典值来匹配", example = "1") @Schema(description = "用途类型 根据字典值来匹配", example = "1")
private Integer useType; private Integer useType;
} }

View File

@ -1,6 +1,5 @@
package cn.iocoder.yudao.module.smartfactory.dal.dataobject.factoryforklift; package cn.iocoder.yudao.module.smartfactory.dal.dataobject.factoryforklift;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@ -48,14 +47,6 @@ public class FactoryForkliftDO extends BaseDO {
* 厂商 * 厂商
*/ */
private String manufacturer; private String manufacturer;
/**
* 设备代码
*/
private String equipmentCode;
/**
* 出厂编号
*/
private String serialNo;
/** /**
* 型号 * 型号
*/ */
@ -73,4 +64,4 @@ public class FactoryForkliftDO extends BaseDO {
*/ */
private Integer useType; private Integer useType;
} }