7 changed files with 123 additions and 10 deletions
@ -0,0 +1,12 @@ |
|||||||
|
package com.logpm.patch.dto; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
@Data |
||||||
|
public class SyncInventoryDTO implements Serializable { |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,67 @@ |
|||||||
|
package com.logpm.patch.entity; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
import org.springblade.core.tenant.mp.TenantEntity; |
||||||
|
|
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
@Data |
||||||
|
@TableName("logpm_patch_sync_inventory") |
||||||
|
@ApiModel(value = "SyncInventory对象", description = "同步老系统盘点任务数据") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class SyncInventoryEntity extends TenantEntity { |
||||||
|
|
||||||
|
/** |
||||||
|
* 预留1 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "预留1") |
||||||
|
private String reserve1; |
||||||
|
/** |
||||||
|
* 预留2 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "预留2") |
||||||
|
private String reserve2; |
||||||
|
|
||||||
|
/** |
||||||
|
* 预留3 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "预留3") |
||||||
|
private String reserve3; |
||||||
|
/** |
||||||
|
* 预留4 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "预留4") |
||||||
|
private String reserve4; |
||||||
|
|
||||||
|
/** |
||||||
|
* 预留5 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "预留5") |
||||||
|
private String reserve5; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "盘点任务编码") |
||||||
|
private String inventoryNo; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "盘点任务id") |
||||||
|
private Integer inventoryId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "同步开始时间") |
||||||
|
private Date syncStartDate; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "同步结束时间") |
||||||
|
private Date syncEndDate; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "同步状态 0未开始 1同步中 2同步完成 3同步异常") |
||||||
|
private Integer syncStatus; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "新系统仓库id") |
||||||
|
private Long warehouseId; |
||||||
|
|
||||||
|
@ApiModelProperty(value = "老系统仓库id") |
||||||
|
private Integer oldWarehouseId; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
package com.logpm.patch.mapper; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
import com.logpm.patch.entity.SyncInventoryEntity; |
||||||
|
import org.apache.ibatis.annotations.Mapper; |
||||||
|
|
||||||
|
@Mapper |
||||||
|
public interface SyncInventoryMapper extends BaseMapper<SyncInventoryEntity> { |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
package com.logpm.patch.service; |
||||||
|
|
||||||
|
import com.logpm.patch.entity.SyncInventoryEntity; |
||||||
|
import org.springblade.core.mp.base.BaseService; |
||||||
|
|
||||||
|
public interface ISyncInventoryService extends BaseService<SyncInventoryEntity> { |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
package com.logpm.patch.service.impl; |
||||||
|
|
||||||
|
import com.logpm.patch.entity.SyncInventoryEntity; |
||||||
|
import com.logpm.patch.mapper.SyncInventoryMapper; |
||||||
|
import com.logpm.patch.service.ISyncInventoryService; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.core.mp.base.BaseServiceImpl; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
@Slf4j |
||||||
|
@AllArgsConstructor |
||||||
|
@Service |
||||||
|
public class SyncInventoryServiceImpl extends BaseServiceImpl<SyncInventoryMapper, SyncInventoryEntity> implements ISyncInventoryService { |
||||||
|
} |
Loading…
Reference in new issue