修改shovel类型,新增查寻功能
This commit is contained in:
parent
b424434f59
commit
f12e152da2
@ -1,14 +1,12 @@
|
|||||||
package com.jdc.jdcproject.controller;
|
package com.jdc.jdcproject.controller;
|
||||||
|
|
||||||
import com.jdc.jdcproject.entity.DicekeMiningrecord;
|
import com.jdc.jdcproject.entity.DicekeMiningrecord;
|
||||||
import com.jdc.jdcproject.entity.DicekePlatearea;
|
|
||||||
import com.jdc.jdcproject.entity.VO.DicekeMiningrecordVo;
|
import com.jdc.jdcproject.entity.VO.DicekeMiningrecordVo;
|
||||||
import com.jdc.jdcproject.service.IDicekeMiningrecordService;
|
import com.jdc.jdcproject.service.IDicekeMiningrecordService;
|
||||||
import com.jdc.jdcproject.utils.Result;
|
import com.jdc.jdcproject.utils.Result;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -64,4 +62,15 @@ public class DicekeMiningrecordController {
|
|||||||
DicekeMiningrecord dicekeMiningrecordServiceById = dicekeMiningrecordService.getById(recordID);
|
DicekeMiningrecord dicekeMiningrecordServiceById = dicekeMiningrecordService.getById(recordID);
|
||||||
return Result.successResult().data("dicekeMiningrecordServiceById", dicekeMiningrecordServiceById);
|
return Result.successResult().data("dicekeMiningrecordServiceById", dicekeMiningrecordServiceById);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "新增Mo品味信息")
|
||||||
|
@PostMapping("adddicekeMiningrecord")
|
||||||
|
public Result adddicekeMiningrecord(@RequestBody DicekeMiningrecord DicekeMiningrecord) {
|
||||||
|
boolean updateflag = dicekeMiningrecordService.save(DicekeMiningrecord);
|
||||||
|
if (updateflag) {
|
||||||
|
return Result.successResult();
|
||||||
|
} else {
|
||||||
|
return Result.errorResult();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@ -15,6 +16,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
*/
|
*/
|
||||||
@TableName("diceke_shovel")
|
@TableName("diceke_shovel")
|
||||||
@Schema(name = "DicekeShovel", description = "电铲")
|
@Schema(name = "DicekeShovel", description = "电铲")
|
||||||
|
@Data
|
||||||
public class DicekeShovel implements Serializable {
|
public class DicekeShovel implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -27,31 +29,7 @@ public class DicekeShovel implements Serializable {
|
|||||||
private String shovelCode;
|
private String shovelCode;
|
||||||
|
|
||||||
@Schema(description = "属性(是自营还是外委)")
|
@Schema(description = "属性(是自营还是外委)")
|
||||||
private byte[] attribute;
|
private Integer attribute;
|
||||||
|
|
||||||
public String getShovelID() {
|
|
||||||
return shovelID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShovelID(String shovelID) {
|
|
||||||
this.shovelID = shovelID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getShovelCode() {
|
|
||||||
return shovelCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setShovelCode(String shovelCode) {
|
|
||||||
this.shovelCode = shovelCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getAttribute() {
|
|
||||||
return attribute;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAttribute(byte[] attribute) {
|
|
||||||
this.attribute = attribute;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user