Compare commits
No commits in common. "ada0c8d0baf130bc3243f26253d3372ebdb7caf2" and "2ec266aaa57c6564943d71aa064c2a95de58d255" have entirely different histories.
ada0c8d0ba
...
2ec266aaa5
@ -46,10 +46,6 @@ public class AssetsRespVO {
|
||||
@ExcelProperty("资产类型id")
|
||||
private Long typeId;
|
||||
|
||||
@Schema(description = "资产类型名称", example = "5169")
|
||||
@ExcelProperty("资产类型名称")
|
||||
private String typeName;
|
||||
|
||||
@Schema(description = "其余信息(json)")
|
||||
@ExcelProperty("其余信息(json)")
|
||||
private String itemJson;
|
||||
@ -60,4 +56,4 @@ public class AssetsRespVO {
|
||||
|
||||
@Schema(description = "资产类型 0按量 1按单件")
|
||||
private Integer type;
|
||||
}
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
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 java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
@ -68,9 +66,4 @@ public class AssetsDO extends BaseDO {
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Integer type;
|
||||
/**
|
||||
* 资产类型名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String typeName;
|
||||
}
|
||||
}
|
@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -69,11 +70,7 @@ public class AssetsServiceImpl implements AssetsService {
|
||||
|
||||
@Override
|
||||
public AssetsDO getAssets(Long id) {
|
||||
AssetsDO assetsDO = assetsMapper.selectById(id);
|
||||
AssetsTypeDO assetsTypeDO = assetsTypeMapper.selectById(assetsDO.getTypeId());
|
||||
assetsDO.setTypeName(assetsTypeDO.getName());
|
||||
assetsDO.setType(assetsTypeDO.getType());
|
||||
return assetsDO;
|
||||
return assetsMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -50,12 +50,6 @@ public class FactoryForkliftRespVO {
|
||||
@ExcelProperty("厂商")
|
||||
private String manufacturer;
|
||||
|
||||
@Schema(description = "设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@Schema(description = "出厂编号")
|
||||
private String serialNo;
|
||||
|
||||
@Schema(description = "型号")
|
||||
@ExcelProperty("型号")
|
||||
private String modelNo;
|
||||
|
@ -30,12 +30,6 @@ public class FactoryForkliftSaveReqVO {
|
||||
@Schema(description = "厂商")
|
||||
private String manufacturer;
|
||||
|
||||
@Schema(description = "设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@Schema(description = "出厂编号")
|
||||
private String serialNo;
|
||||
|
||||
@Schema(description = "型号")
|
||||
private String modelNo;
|
||||
|
||||
@ -48,4 +42,4 @@ public class FactoryForkliftSaveReqVO {
|
||||
@Schema(description = "用途类型 根据字典值来匹配", example = "1")
|
||||
private Integer useType;
|
||||
|
||||
}
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
package cn.iocoder.yudao.module.smartfactory.dal.dataobject.factoryforklift;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
@ -48,14 +47,6 @@ public class FactoryForkliftDO extends BaseDO {
|
||||
* 厂商
|
||||
*/
|
||||
private String manufacturer;
|
||||
/**
|
||||
* 设备代码
|
||||
*/
|
||||
private String equipmentCode;
|
||||
/**
|
||||
* 出厂编号
|
||||
*/
|
||||
private String serialNo;
|
||||
/**
|
||||
* 型号
|
||||
*/
|
||||
@ -73,4 +64,4 @@ public class FactoryForkliftDO extends BaseDO {
|
||||
*/
|
||||
private Integer useType;
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user