no message
parent
07ec36733f
commit
47deab07bc
|
|
@ -16,6 +16,7 @@
|
||||||
package com.youchain.basicdata.domain;
|
package com.youchain.basicdata.domain;
|
||||||
|
|
||||||
import com.youchain.base.BaseEntity;
|
import com.youchain.base.BaseEntity;
|
||||||
|
import com.youchain.modules.system.domain.Dept;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
@ -92,9 +93,10 @@ public class WorkPoint extends BaseEntity implements Serializable {
|
||||||
@ApiModelProperty(value = "最大料箱任务数")
|
@ApiModelProperty(value = "最大料箱任务数")
|
||||||
private Integer maxStockNumber;
|
private Integer maxStockNumber;
|
||||||
|
|
||||||
@Column(name = "`dept_id`")
|
@OneToOne
|
||||||
|
@JoinColumn(name = "dept_id",nullable = false)
|
||||||
@ApiModelProperty(value = "仓库ID")
|
@ApiModelProperty(value = "仓库ID")
|
||||||
private Long deptId;
|
private Dept dept;
|
||||||
|
|
||||||
@Column(name = "`description`")
|
@Column(name = "`description`")
|
||||||
@ApiModelProperty(value = "描述")
|
@ApiModelProperty(value = "描述")
|
||||||
|
|
@ -102,23 +104,7 @@ public class WorkPoint extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
@Column(name = "`enabled`")
|
@Column(name = "`enabled`")
|
||||||
@ApiModelProperty(value = "是否启用")
|
@ApiModelProperty(value = "是否启用")
|
||||||
private Boolean enabled;
|
private Boolean enabled=true;
|
||||||
|
|
||||||
@Column(name = "`create_by`")
|
|
||||||
@ApiModelProperty(value = "创建人")
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
@Column(name = "`update_by`")
|
|
||||||
@ApiModelProperty(value = "修改人")
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
@Column(name = "`create_time`")
|
|
||||||
@ApiModelProperty(value = "创建时间")
|
|
||||||
private Timestamp createTime;
|
|
||||||
|
|
||||||
@Column(name = "`update_time`")
|
|
||||||
@ApiModelProperty(value = "修改时间")
|
|
||||||
private Timestamp updateTime;
|
|
||||||
|
|
||||||
public void copy(WorkPoint source){
|
public void copy(WorkPoint source){
|
||||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
||||||
|
|
|
||||||
|
|
@ -75,16 +75,4 @@ public class WorkPointDto implements Serializable {
|
||||||
|
|
||||||
/** 是否启用 */
|
/** 是否启用 */
|
||||||
private Boolean enabled;
|
private Boolean enabled;
|
||||||
|
|
||||||
/** 创建人 */
|
|
||||||
private String createBy;
|
|
||||||
|
|
||||||
/** 修改人 */
|
|
||||||
private String updateBy;
|
|
||||||
|
|
||||||
/** 创建时间 */
|
|
||||||
private Timestamp createTime;
|
|
||||||
|
|
||||||
/** 修改时间 */
|
|
||||||
private Timestamp updateTime;
|
|
||||||
}
|
}
|
||||||
|
|
@ -73,6 +73,8 @@ public class PointServiceImpl implements PointService {
|
||||||
pointList = pointRepository.getPointList(BaseStatus.BHZC);
|
pointList = pointRepository.getPointList(BaseStatus.BHZC);
|
||||||
} else if (type.equals("5")) {//ZZKW
|
} else if (type.equals("5")) {//ZZKW
|
||||||
pointList = pointRepository.getPointList(BaseStatus.ZZKW);
|
pointList = pointRepository.getPointList(BaseStatus.ZZKW);
|
||||||
|
} else if (type.equals("0")) {
|
||||||
|
pointList=pointRepository.findAll();
|
||||||
}
|
}
|
||||||
return pointMapper.toDto(pointList);
|
return pointMapper.toDto(pointList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ public class WorkPointServiceImpl implements WorkPointService {
|
||||||
if(workPointRepository.findByCode(resources.getCode()) != null){
|
if(workPointRepository.findByCode(resources.getCode()) != null){
|
||||||
throw new EntityExistException(WorkPoint.class,"code",resources.getCode());
|
throw new EntityExistException(WorkPoint.class,"code",resources.getCode());
|
||||||
}
|
}
|
||||||
|
resources.setDept(UserUtils.getDept());
|
||||||
return workPointMapper.toDto(workPointRepository.save(resources));
|
return workPointMapper.toDto(workPointRepository.save(resources));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue