瀏覽代碼

项目修改

master
Searises Hao Wang 1 月之前
父節點
當前提交
f1a92008b2
共有 8 個文件被更改,包括 8 次插入1 次删除
  1. +1
    -1
      src/main/java/com/example/webapi/controller/WeighingRecordController.java
  2. +1
    -0
      src/main/java/com/example/webapi/entity/MaterialInfo.java
  3. +1
    -0
      src/main/java/com/example/webapi/entity/Supplier.java
  4. +1
    -0
      src/main/java/com/example/webapi/entity/SupplyVariety.java
  5. +1
    -0
      src/main/java/com/example/webapi/entity/TransferRecord.java
  6. +1
    -0
      src/main/java/com/example/webapi/entity/TransportCompany.java
  7. +1
    -0
      src/main/java/com/example/webapi/entity/VehicleInfo.java
  8. +1
    -0
      src/main/java/com/example/webapi/entity/WeighingRecord.java

+ 1
- 1
src/main/java/com/example/webapi/controller/WeighingRecordController.java 查看文件

@@ -76,7 +76,7 @@ public class WeighingRecordController {
@RequestBody WeighingRecord entity) {
WeighingRecord weighingRecord= service.save(entity);
if(weighingRecord.getMaterielId()!=null){
Optional<TransferRecord> result = transferRecordService.findById(weighingRecord.getMaterielId());
Optional<TransferRecord> result = transferRecordService.findById(weighingRecord.getWtId());
if( result.isPresent()){
TransferRecord record= result.get();
record .setStatus(1);


+ 1
- 0
src/main/java/com/example/webapi/entity/MaterialInfo.java 查看文件

@@ -11,6 +11,7 @@ import javax.persistence.*;
@ApiModel(description = "品种信息实体")
public class MaterialInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
@ApiModelProperty(value = "品种ID", example = "1", notes = "主键,自动生成")
private Integer id;


+ 1
- 0
src/main/java/com/example/webapi/entity/Supplier.java 查看文件

@@ -11,6 +11,7 @@ import javax.persistence.*;
@ApiModel(description = "供应商信息实体")
public class Supplier {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
@ApiModelProperty(value = "供应商ID", example = "1", notes = "主键,自动生成")
private Integer id;


+ 1
- 0
src/main/java/com/example/webapi/entity/SupplyVariety.java 查看文件

@@ -11,6 +11,7 @@ import javax.persistence.*;
@ApiModel(description = "供应标识品种信息实体")
public class SupplyVariety {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
@ApiModelProperty(value = "记录ID", example = "1", notes = "主键,自动生成")
private Integer id;


+ 1
- 0
src/main/java/com/example/webapi/entity/TransferRecord.java 查看文件

@@ -13,6 +13,7 @@ import java.util.Date;
@ApiModel(description = "转运记录实体")
public class TransferRecord {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
@ApiModelProperty(value = "记录ID", example = "1", notes = "主键,自动生成")
private Integer id;


+ 1
- 0
src/main/java/com/example/webapi/entity/TransportCompany.java 查看文件

@@ -11,6 +11,7 @@ import javax.persistence.*;
@ApiModel(description = "运输公司实体")
public class TransportCompany {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "编号")
@ApiModelProperty(value = "公司ID", example = "1", notes = "主键,自动生成")
private Integer id;


+ 1
- 0
src/main/java/com/example/webapi/entity/VehicleInfo.java 查看文件

@@ -11,6 +11,7 @@ import javax.persistence.*;
@ApiModel(description = "车辆信息实体")
public class VehicleInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
@ApiModelProperty(value = "车辆ID", example = "1", notes = "主键,自动生成")
private Integer id;


+ 1
- 0
src/main/java/com/example/webapi/entity/WeighingRecord.java 查看文件

@@ -13,6 +13,7 @@ import java.util.Date;
@ApiModel(description = "称重记录实体")
public class WeighingRecord {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
@ApiModelProperty(value = "记录ID", example = "1", notes = "主键,自动生成")
private Integer id;


Loading…
取消
儲存