mirror of https://github.com/elunez/eladmin
客户订单返货单
parent
ada4484489
commit
2279d98ebb
|
@ -3,6 +3,8 @@ package me.zhengjie.modules.wms.outSourceProductSheet.domain;
|
|||
import lombok.Data;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.bean.copier.CopyOptions;
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.sql.Timestamp;
|
||||
import java.io.Serializable;
|
||||
|
@ -27,10 +29,12 @@ public class OutSourceProcessSheet implements Serializable {
|
|||
|
||||
// 创建时间
|
||||
@Column(name = "create_time")
|
||||
@CreationTimestamp
|
||||
private Timestamp createTime;
|
||||
|
||||
// 更新时间
|
||||
@Column(name = "update_time")
|
||||
@CreationTimestamp
|
||||
private Timestamp updateTime;
|
||||
|
||||
// 委外加工公司名称
|
||||
|
|
|
@ -15,6 +15,9 @@ import org.springframework.validation.annotation.Validated;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
/**
|
||||
* @author jie
|
||||
* @date 2019-08-17
|
||||
|
@ -60,4 +63,13 @@ public class OutSourceProcessSheetController {
|
|||
outSourceProcessSheetService.delete(id);
|
||||
return new ResponseEntity(HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
@Log("初始化委外加工单编号")
|
||||
@GetMapping(value = "/initOutSourceProcessSheetCode")
|
||||
public ResponseEntity initOutSourceProcessSheetCode(){
|
||||
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");//设置日期格式
|
||||
String supplierCode = "OS"+ LocalDateTime.now().format(fmt);
|
||||
return new ResponseEntity(supplierCode,HttpStatus.OK);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue