新增文件

master
Yangwl 2 years ago
parent 475c15f969
commit 73db6da1d3

@ -11,6 +11,7 @@ import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@ -179,6 +180,11 @@ public class BaseTyreController extends BaseController
return baseTyreService.TyreUnInstall(carTyres);
}
@PostMapping("/TyreMileage")
public AjaxResult TyreMileage(@RequestBody CarTyres carTyres){
return baseTyreService.TyreMileage(carTyres);
}
}

@ -24,6 +24,7 @@ public class BaseCar extends BaseEntity
/** 主键 */
private String id;
private String tyreid;
/** 企业编号 */
@Excel(name = "企业编号")
@ -136,6 +137,14 @@ public class BaseCar extends BaseEntity
private List<BaseTyre> TyreList;
public String getTyreid() {
return tyreid;
}
public void setTyreid(String tyreid) {
this.tyreid = tyreid;
}
public String getCartype() {
return cartype;
}

@ -21,6 +21,9 @@ public class BaseTyre extends BaseEntity
/** $column.columnComment */
private String id;
private String tyreId;
/** 轮胎厂名称 */
@Excel(name = "轮胎厂名称")
private String tyreFactory;
@ -202,6 +205,14 @@ public class BaseTyre extends BaseEntity
// @Excel(name = "编辑者姓名")
private String modifyName;
public String getTyreId() {
return tyreId;
}
public void setTyreId(String tyreId) {
this.tyreId = tyreId;
}
public void setId(String id)
{
this.id = id;

@ -78,4 +78,6 @@ public interface IBaseTyreService
String checkBaseTyreUnique(BaseTyre baseTyre);
String importTyre(List<BaseTyre> baseTyreList, boolean isUpdateSupport, String operName);
AjaxResult TyreMileage(CarTyres carTyres);
}

@ -412,6 +412,20 @@ public class BaseTyreServiceImpl implements IBaseTyreService
return successMsg.toString();
}
@Override
public AjaxResult TyreMileage(CarTyres carTyres) {
try {
return null;
}catch (Exception e){
e.printStackTrace();
return AjaxResult.error(e.getMessage());
}
}
@Override
public BaseTyre getTyreInfoById(String outerTireNumber) {
return baseTyreMapper.getTyreInfoById(outerTireNumber);

@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<collection property="TyreList" javaType="java.util.List" resultMap="baseTyreList" />
</resultMap>
<resultMap type="BaseTyre" id="baseTyreList">
<result property="id" column="id" />
<result property="tyreId" column="tyreid" />
<result property="outerTireNumber" column="outer_tire_number" />
<result property="pattern" column="pattern" />
<result property="currentTextureDepth" column="current_texture_depth" />
@ -123,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bc.*,
bd.state,
bd.last_run_time,
bt.id,
bt.id tyreid,
bt.outer_tire_number,
bt.pattern,
bt.current_texture_depth,

Loading…
Cancel
Save