Compare commits
No commits in common. "2e7a55fbf17993045c6d8594abbd89724699764d" and "d023edd7b8912fd5feb5135dde14a6d71fea5052" have entirely different histories.
2e7a55fbf1
...
d023edd7b8
@ -1,82 +0,0 @@
|
||||
package com.mt.wms.basic.params;
|
||||
|
||||
import com.mt.wms.core.base.BaseParam;
|
||||
import com.mt.wms.core.validator.groups.UpdateGroup;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 12:07
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "窑炉参数对象", description = "用于新增和更新窑炉信息")
|
||||
public class KilnInfoParam extends BaseParam {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键,更新时需要填写",required = false, example = "1")
|
||||
@NotNull(message = "xxID不能为空", groups = {UpdateGroup.class})
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码", example = "1")
|
||||
@NotNull(message = "编码不能为空")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "名称", example = "1")
|
||||
@NotNull(message = "名称不能为空")
|
||||
private String kilnName;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ApiModelProperty(value = "缩写(别名)", example = "1")
|
||||
@NotNull(message = "别名不能为空")
|
||||
private String kilnAlias;
|
||||
|
||||
|
||||
/**
|
||||
* 英文名
|
||||
*/
|
||||
@ApiModelProperty(value = "英文名", example = "1")
|
||||
private String en;
|
||||
|
||||
/**
|
||||
* ip
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "192.168.0.1")
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 端口号
|
||||
*/
|
||||
@ApiModelProperty(value = "端口号", example = "8888")
|
||||
private String partNumber;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "1")
|
||||
private String note;
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
@ApiModelProperty(value = "描述信息", example = "1")
|
||||
private String description;
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
package com.mt.wms.basic.params;
|
||||
|
||||
import com.mt.wms.core.params.BasePageParam;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 12:11
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "窑炉查询参数", description = "用于查询窑炉信息")
|
||||
public class KilnInfoQueryParam extends BasePageParam {
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键",required = false, example = "1")
|
||||
private Long id;
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
package com.mt.wms.basic.params;
|
||||
|
||||
import com.mt.wms.core.base.BaseParam;
|
||||
import com.mt.wms.core.validator.groups.UpdateGroup;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 10:47
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "库位参数对象", description = "用于新增和更新库位信息")
|
||||
public class LocationInfoParam extends BaseParam {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键,更新时需要填写",required = false, example = "1")
|
||||
@NotNull(message = "xxID不能为空", groups = {UpdateGroup.class})
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码", example = "1")
|
||||
@NotNull(message = "编码不能为空")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "库位名称", example = "1")
|
||||
@NotNull(message = "名称不能为空")
|
||||
private String locationName;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ApiModelProperty(value = "别名", example = "1")
|
||||
@NotNull(message = "别名不能为空")
|
||||
private String locationNameAlias;
|
||||
|
||||
|
||||
/**
|
||||
* 缓存区
|
||||
*/
|
||||
@ApiModelProperty(value = "缓存区id", example = "1")
|
||||
private String warehouseId;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注", example = "1")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
@ApiModelProperty(value = "描述信息", example = "1")
|
||||
private String description;
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
package com.mt.wms.basic.params;
|
||||
|
||||
import com.mt.wms.core.params.BasePageParam;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 11:06
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "库位查询参数", description = "用于查询库位信息")
|
||||
public class LocationInfoQueryParam extends BasePageParam {
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键",required = false, example = "1")
|
||||
private Long id;
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package com.mt.wms.basic.params;
|
||||
|
||||
import com.mt.wms.core.base.BaseParam;
|
||||
import com.mt.wms.core.validator.groups.UpdateGroup;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/8 10:39
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "车辆参数对象", description = "用于新增和更新车辆信息")
|
||||
public class VehicleParam extends BaseParam {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键,更新时需要填写",required = false, example = "1")
|
||||
@NotNull(message = "xxID不能为空", groups = {UpdateGroup.class})
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码", example = "1")
|
||||
@NotNull(message = "编码不能为空")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "名称", example = "1")
|
||||
@NotNull(message = "名称不能为空")
|
||||
private String vehicleName;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
@ApiModelProperty(value = "缩写(别名)", example = "1")
|
||||
private String vehicleAlias;
|
||||
|
||||
/**
|
||||
* ip
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "192.168.0.1")
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "1")
|
||||
private String note;
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
@ApiModelProperty(value = "描述信息", example = "1")
|
||||
private String description;
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
package com.mt.wms.basic.params;
|
||||
|
||||
import com.mt.wms.core.params.BasePageParam;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/8 15:19
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value = "车辆查询参数", description = "用于查询车辆信息")
|
||||
public class VehicleQueryParam extends BasePageParam {
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键",required = false, example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码",required = false, example = "1")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ApiModelProperty(value = "别名",required = false, example = "1")
|
||||
private String vehicleAlias;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "名称",required = false, example = "1")
|
||||
private String vehicleName;
|
||||
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package com.mt.wms.basic.service;
|
||||
|
||||
import com.mt.wms.basic.params.KilnInfoParam;
|
||||
import com.mt.wms.basic.params.KilnInfoQueryParam;
|
||||
import com.mt.wms.basic.vo.KilnInfoVo;
|
||||
import com.mt.wms.core.params.IdParam;
|
||||
import com.mt.wms.core.vo.IdVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import com.mt.wms.core.vo.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 12:12
|
||||
* @Version 1.0
|
||||
*/
|
||||
public interface KilnInfoService {
|
||||
/**
|
||||
* 获取xx
|
||||
*
|
||||
* @param idParam 主键参数
|
||||
* @return xx
|
||||
*/
|
||||
R<KilnInfoVo> get(IdParam idParam);
|
||||
|
||||
/**
|
||||
* 获取xx列表
|
||||
*
|
||||
* @param kilnInfoQueryParam xx查询参数
|
||||
* @return xx列表
|
||||
*/
|
||||
R<List<KilnInfoVo>> list(KilnInfoQueryParam kilnInfoQueryParam);
|
||||
|
||||
/**
|
||||
* 获取xx分页列表
|
||||
*
|
||||
* @param kilnInfoQueryParam xx查询参数
|
||||
* @return xx分页列表
|
||||
*/
|
||||
R<PageVo<KilnInfoVo>> page(KilnInfoQueryParam kilnInfoQueryParam);
|
||||
|
||||
|
||||
/**
|
||||
* 新增xx
|
||||
*
|
||||
* @param kilnInfoParam xx参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> add(KilnInfoParam kilnInfoParam);
|
||||
|
||||
/**
|
||||
* 更新xx
|
||||
*
|
||||
* @param kilnInfoParam xx参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> update(KilnInfoParam kilnInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 删除xx
|
||||
*
|
||||
* @param idParam 主键参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> delete(IdParam idParam);
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package com.mt.wms.basic.service;
|
||||
|
||||
import com.mt.wms.basic.params.LocationInfoParam;
|
||||
import com.mt.wms.basic.params.LocationInfoQueryParam;
|
||||
import com.mt.wms.basic.vo.LocationInfoVo;
|
||||
import com.mt.wms.core.params.IdParam;
|
||||
import com.mt.wms.core.vo.IdVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import com.mt.wms.core.vo.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 11:10
|
||||
* @Version 1.0
|
||||
*/
|
||||
public interface LocationInfoService {
|
||||
/**
|
||||
* 获取xx
|
||||
*
|
||||
* @param idParam 主键参数
|
||||
* @return xx
|
||||
*/
|
||||
R<LocationInfoVo> get(IdParam idParam);
|
||||
|
||||
/**
|
||||
* 获取xx列表
|
||||
*
|
||||
* @param locationInfoQueryParam xx查询参数
|
||||
* @return xx列表
|
||||
*/
|
||||
R<List<LocationInfoVo>> list(LocationInfoQueryParam locationInfoQueryParam);
|
||||
|
||||
/**
|
||||
* 获取xx分页列表
|
||||
*
|
||||
* @param locationInfoQueryParam xx查询参数
|
||||
* @return xx分页列表
|
||||
*/
|
||||
R<PageVo<LocationInfoVo>> page(LocationInfoQueryParam locationInfoQueryParam);
|
||||
|
||||
|
||||
/**
|
||||
* 新增xx
|
||||
*
|
||||
* @param locationInfoParam xx参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> add(LocationInfoParam locationInfoParam);
|
||||
|
||||
/**
|
||||
* 更新xx
|
||||
*
|
||||
* @param locationInfoParam xx参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> update(LocationInfoParam locationInfoParam);
|
||||
|
||||
|
||||
/**
|
||||
* 删除xx
|
||||
*
|
||||
* @param idParam 主键参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> delete(IdParam idParam);
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package com.mt.wms.basic.service;
|
||||
|
||||
import com.mt.wms.basic.params.VehicleParam;
|
||||
import com.mt.wms.basic.params.VehicleQueryParam;
|
||||
import com.mt.wms.basic.vo.VehicleVo;
|
||||
import com.mt.wms.core.params.IdParam;
|
||||
import com.mt.wms.core.vo.IdVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import com.mt.wms.core.vo.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 10:02
|
||||
* @Version 1.0
|
||||
*/
|
||||
public interface VehicleService {
|
||||
/**
|
||||
* 获取xx
|
||||
*
|
||||
* @param idParam 主键参数
|
||||
* @return xx
|
||||
*/
|
||||
R<VehicleVo> get(IdParam idParam);
|
||||
|
||||
/**
|
||||
* 获取xx列表
|
||||
*
|
||||
* @param vehicleQueryParam xx查询参数
|
||||
* @return xx列表
|
||||
*/
|
||||
R<List<VehicleVo>> list(VehicleQueryParam vehicleQueryParam);
|
||||
|
||||
/**
|
||||
* 获取xx分页列表
|
||||
*
|
||||
* @param vehicleQueryParam xx查询参数
|
||||
* @return xx分页列表
|
||||
*/
|
||||
R<PageVo<VehicleVo>> page(VehicleQueryParam vehicleQueryParam);
|
||||
|
||||
|
||||
/**
|
||||
* 新增xx
|
||||
*
|
||||
* @param vehicleParam xx参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> add(VehicleParam vehicleParam);
|
||||
|
||||
/**
|
||||
* 更新xx
|
||||
*
|
||||
* @param vehicleParam xx参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> update(VehicleParam vehicleParam);
|
||||
|
||||
|
||||
/**
|
||||
* 删除xx
|
||||
*
|
||||
* @param idParam 主键参数
|
||||
* @return 主键
|
||||
*/
|
||||
R<IdVo> delete(IdParam idParam);
|
||||
}
|
@ -6,6 +6,7 @@ import com.mt.wms.basic.params.AlarmBaseParam;
|
||||
import com.mt.wms.basic.params.AlarmBaseQueryParam;
|
||||
import com.mt.wms.basic.service.AlarmBaseService;
|
||||
import com.mt.wms.basic.vo.AlarmBaseVo;
|
||||
import com.mt.wms.basic.vo.WarehouseVo;
|
||||
import com.mt.wms.core.api.Assert;
|
||||
import com.mt.wms.core.base.BaseService;
|
||||
import com.mt.wms.core.dal.entity.AlarmBase;
|
||||
@ -47,11 +48,7 @@ public class AlarmBaseServiceImpl extends BaseService implements AlarmBaseServic
|
||||
|
||||
@Override
|
||||
public R<List<AlarmBaseVo>> list(AlarmBaseQueryParam alarmBaseQueryParam) {
|
||||
QueryWrapper<AlarmBase> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq(AlarmBase.VALID,1);
|
||||
List<AlarmBase> alarmBaseList = alarmBaseServiceBiz.list(wrapper);
|
||||
List<AlarmBaseVo> alarmBaseVoList = com.mt.wms.core.utils.BeanUtils.copyList(alarmBaseList, AlarmBaseVo.class);
|
||||
return successful(alarmBaseVoList);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,71 +0,0 @@
|
||||
package com.mt.wms.basic.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.mt.wms.basic.params.KilnInfoParam;
|
||||
import com.mt.wms.basic.params.KilnInfoQueryParam;
|
||||
import com.mt.wms.basic.service.KilnInfoService;
|
||||
import com.mt.wms.basic.vo.KilnInfoVo;
|
||||
import com.mt.wms.core.api.Assert;
|
||||
import com.mt.wms.core.base.BaseService;
|
||||
import com.mt.wms.core.dal.entity.KilnInfo;
|
||||
import com.mt.wms.core.dal.service.KilnInfoServiceBiz;
|
||||
import com.mt.wms.core.errorcode.ApiErrorCode;
|
||||
import com.mt.wms.core.params.IdParam;
|
||||
import com.mt.wms.core.vo.IdVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import com.mt.wms.core.vo.R;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 12:16
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class KilnInfoServiceImpl extends BaseService implements KilnInfoService {
|
||||
@Resource
|
||||
private KilnInfoServiceBiz kilnInfoServiceBiz;
|
||||
@Override
|
||||
public R<KilnInfoVo> get(IdParam idParam) {
|
||||
Assert.notNull(ApiErrorCode.INVALID_PARAMETER,idParam.getId());
|
||||
KilnInfo kilnInfo = kilnInfoServiceBiz.getById(idParam.getId());
|
||||
KilnInfoVo kilnInfoVo=KilnInfoVo.builder().build();
|
||||
BeanUtils.copyProperties(kilnInfo,kilnInfoVo);
|
||||
return successful(kilnInfoVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<List<KilnInfoVo>> list(KilnInfoQueryParam kilnInfoQueryParam) {
|
||||
QueryWrapper<KilnInfo> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq(KilnInfo.VALID,1);
|
||||
List<KilnInfo> kilnInfoList = kilnInfoServiceBiz.list(wrapper);
|
||||
List<KilnInfoVo> kilnInfoVoList = com.mt.wms.core.utils.BeanUtils.copyList(kilnInfoList, KilnInfoVo.class);
|
||||
return successful(kilnInfoVoList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<PageVo<KilnInfoVo>> page(KilnInfoQueryParam kilnInfoQueryParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> add(KilnInfoParam kilnInfoParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> update(KilnInfoParam kilnInfoParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> delete(IdParam idParam) {
|
||||
return null;
|
||||
}
|
||||
}
|
@ -1,74 +0,0 @@
|
||||
package com.mt.wms.basic.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.mt.wms.basic.params.LocationInfoParam;
|
||||
import com.mt.wms.basic.params.LocationInfoQueryParam;
|
||||
import com.mt.wms.basic.service.LocationInfoService;
|
||||
import com.mt.wms.basic.vo.LocationInfoVo;
|
||||
import com.mt.wms.basic.vo.VehicleVo;
|
||||
import com.mt.wms.core.api.Assert;
|
||||
import com.mt.wms.core.base.BaseService;
|
||||
import com.mt.wms.core.dal.entity.Location;
|
||||
import com.mt.wms.core.dal.entity.VehicleInfo;
|
||||
import com.mt.wms.core.dal.service.LocationServiceBiz;
|
||||
import com.mt.wms.core.errorcode.ApiErrorCode;
|
||||
import com.mt.wms.core.params.IdParam;
|
||||
import com.mt.wms.core.vo.IdVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import com.mt.wms.core.vo.R;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 11:13
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class LocationInfoServiceImpl extends BaseService implements LocationInfoService {
|
||||
|
||||
@Resource
|
||||
private LocationServiceBiz locationServiceBiz;
|
||||
@Override
|
||||
public R<LocationInfoVo> get(IdParam idParam) {
|
||||
Assert.notNull(ApiErrorCode.INVALID_PARAMETER,idParam.getId());
|
||||
Location location = locationServiceBiz.getById(idParam.getId());
|
||||
LocationInfoVo locationInfoVo=LocationInfoVo.builder().build();
|
||||
BeanUtils.copyProperties(location,locationInfoVo);
|
||||
return successful(locationInfoVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<List<LocationInfoVo>> list(LocationInfoQueryParam locationInfoQueryParam) {
|
||||
QueryWrapper<Location> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq(Location.VALID,1);
|
||||
List<Location> locationList = locationServiceBiz.list(wrapper);
|
||||
List<LocationInfoVo> locationInfoVoList = com.mt.wms.core.utils.BeanUtils.copyList(locationList, LocationInfoVo.class);
|
||||
return successful(locationInfoVoList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<PageVo<LocationInfoVo>> page(LocationInfoQueryParam locationInfoQueryParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> add(LocationInfoParam locationInfoParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> update(LocationInfoParam locationInfoParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> delete(IdParam idParam) {
|
||||
return null;
|
||||
}
|
||||
}
|
@ -1,74 +0,0 @@
|
||||
package com.mt.wms.basic.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.mt.wms.basic.params.VehicleParam;
|
||||
import com.mt.wms.basic.params.VehicleQueryParam;
|
||||
import com.mt.wms.basic.service.VehicleService;
|
||||
import com.mt.wms.basic.vo.AlarmBaseVo;
|
||||
import com.mt.wms.basic.vo.VehicleVo;
|
||||
import com.mt.wms.core.api.Assert;
|
||||
import com.mt.wms.core.base.BaseService;
|
||||
import com.mt.wms.core.dal.entity.AlarmBase;
|
||||
import com.mt.wms.core.dal.entity.VehicleInfo;
|
||||
import com.mt.wms.core.dal.service.VehicleInfoServiceBiz;
|
||||
import com.mt.wms.core.errorcode.ApiErrorCode;
|
||||
import com.mt.wms.core.params.IdParam;
|
||||
import com.mt.wms.core.vo.IdVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import com.mt.wms.core.vo.R;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 10:09
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class VehicleServiceImpl extends BaseService implements VehicleService {
|
||||
|
||||
@Resource
|
||||
private VehicleInfoServiceBiz vehicleInfoServiceBiz;
|
||||
@Override
|
||||
public R<VehicleVo> get(IdParam idParam) {
|
||||
Assert.notNull(ApiErrorCode.INVALID_PARAMETER,idParam.getId());
|
||||
VehicleInfo vehicleInfo = vehicleInfoServiceBiz.getById(idParam.getId());
|
||||
VehicleVo vehicleVo=VehicleVo.builder().build();
|
||||
BeanUtils.copyProperties(vehicleInfo,vehicleVo);
|
||||
return successful(vehicleVo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<List<VehicleVo>> list(VehicleQueryParam vehicleQueryParam) {
|
||||
QueryWrapper<VehicleInfo> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq(VehicleInfo.VALID,1);
|
||||
List<VehicleInfo> vehicleInfoList = vehicleInfoServiceBiz.list(wrapper);
|
||||
List<VehicleVo> vehicleVoList = com.mt.wms.core.utils.BeanUtils.copyList(vehicleInfoList, VehicleVo.class);
|
||||
return successful(vehicleVoList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<PageVo<VehicleVo>> page(VehicleQueryParam vehicleQueryParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> add(VehicleParam vehicleParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> update(VehicleParam vehicleParam) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<IdVo> delete(IdParam idParam) {
|
||||
return null;
|
||||
}
|
||||
}
|
@ -45,11 +45,7 @@ public class WarehouseServiceImpl extends BaseService implements WarehouseServic
|
||||
|
||||
@Override
|
||||
public R<List<WarehouseVo>> list(WarehouseQueryParam warehouseQueryParam) {
|
||||
QueryWrapper<Warehouse> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq(Warehouse.VALID,1);
|
||||
List<Warehouse> warehouseList = warehouseServiceBiz.list(wrapper);
|
||||
List<WarehouseVo> warehouseVoList = com.mt.wms.core.utils.BeanUtils.copyList(warehouseList, WarehouseVo.class);
|
||||
return successful(warehouseVoList);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,82 +0,0 @@
|
||||
package com.mt.wms.basic.vo;
|
||||
|
||||
import com.mt.wms.core.base.BaseVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 11:21
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@Builder
|
||||
@ApiModel(value = "窑炉视图对象", description = "用于查询窑炉信息")
|
||||
public class KilnInfoVo extends BaseVo implements PageVo.ConvertVo {
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键", required = true, example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码", example = "1")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "名称", example = "1")
|
||||
private String kilnName;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ApiModelProperty(value = "缩写(别名)", example = "1")
|
||||
private String kilnAlias;
|
||||
|
||||
|
||||
/**
|
||||
* 英文名
|
||||
*/
|
||||
@ApiModelProperty(value = "英文名", example = "1")
|
||||
private String en;
|
||||
|
||||
/**
|
||||
* ip
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "192.168.0.1")
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 端口号
|
||||
*/
|
||||
@ApiModelProperty(value = "端口号", example = "8888")
|
||||
private String partNumber;
|
||||
|
||||
/**
|
||||
* 状态 0初始化,1损坏
|
||||
*/
|
||||
@ApiModelProperty(value = "状态", example = "0")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "1")
|
||||
private String note;
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
@ApiModelProperty(value = "描述信息", example = "1")
|
||||
private String description;
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
package com.mt.wms.basic.vo;
|
||||
|
||||
import com.mt.wms.core.base.BaseVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/9 10:22
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@Builder
|
||||
@ApiModel(value = "库位信息视图对象", description = "用于查询库位信息")
|
||||
public class LocationInfoVo extends BaseVo implements PageVo.ConvertVo {
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键", required = true, example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码", example = "1")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "仓库名称", example = "1")
|
||||
private String locationName;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ApiModelProperty(value = "别名", example = "1")
|
||||
private String locationNameAlias;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value = "状态:0空闲,1使用,2不可用", example = "1")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 缓存区
|
||||
*/
|
||||
@ApiModelProperty(value = "缓存区", example = "1")
|
||||
private String warehouse;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注", example = "1")
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
@ApiModelProperty(value = "描述信息", example = "1")
|
||||
private String description;
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
package com.mt.wms.basic.vo;
|
||||
|
||||
import com.mt.wms.core.base.BaseVo;
|
||||
import com.mt.wms.core.vo.PageVo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Author: liguanghao
|
||||
* @Date: 2021/11/8 10:28
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@Builder
|
||||
@ApiModel(value = "车辆视图对象", description = "用于查询车辆信息")
|
||||
public class VehicleVo extends BaseVo implements PageVo.ConvertVo{
|
||||
/**
|
||||
* 主键,自增
|
||||
*/
|
||||
@ApiModelProperty(value = "主键", required = true, example = "1")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编码
|
||||
*/
|
||||
@ApiModelProperty(value = "编码", example = "1")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value = "名称", example = "1")
|
||||
private String vehicleName;
|
||||
|
||||
/**
|
||||
* 别名
|
||||
*/
|
||||
@ApiModelProperty(value = "缩写(别名)", example = "1")
|
||||
private String vehicleAlias;
|
||||
|
||||
/**
|
||||
* ip
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "192.168.0.1")
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "ip", example = "1")
|
||||
private String note;
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
@ApiModelProperty(value = "描述信息", example = "1")
|
||||
private String description;
|
||||
}
|
Loading…
Reference in New Issue
Block a user