沥青拌合站
This commit is contained in:
parent
e8cc9ebe52
commit
e45f861a27
@ -0,0 +1,139 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.controller;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zhgd.jeecg.common.api.vo.Result;
|
||||
import org.apache.commons.collections.MapUtils;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationMaterialData;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.service.IPitchMixStationMaterialDataService;
|
||||
|
||||
import org.simpleframework.xml.core.Validate;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: 沥青拌合站材料用量数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/xmgl/pitchMixStationMaterialData")
|
||||
@Slf4j
|
||||
@Api(tags = "沥青拌合站材料用量数据相关Api")
|
||||
public class PitchMixStationMaterialDataController {
|
||||
@Autowired
|
||||
private IPitchMixStationMaterialDataService pitchMixStationMaterialDataService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页列表查询沥青拌合站材料用量数据信息", notes = "分页列表查询沥青拌合站材料用量数据信息", httpMethod = "GET")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "query", required = true, dataType = "Integer"),
|
||||
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "query", required = true, dataType = "Integer"),
|
||||
})
|
||||
@GetMapping(value = "/page")
|
||||
public Result<IPage<PitchMixStationMaterialData>> queryPageList(@ApiIgnore @RequestParam HashMap<String, Object> paramMap) {
|
||||
return Result.success(pitchMixStationMaterialDataService.queryPageList(paramMap));
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "列表查询沥青拌合站材料用量数据信息", notes = "列表查询沥青拌合站材料用量数据信息", httpMethod = "GET")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<PitchMixStationMaterialData>> queryList(@ApiIgnore @RequestParam HashMap<String, Object> paramMap) {
|
||||
return Result.success(pitchMixStationMaterialDataService.queryList(paramMap));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param pitchMixStationMaterialData
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "添加沥青拌合站材料用量数据信息", notes = "添加沥青拌合站材料用量数据信息", httpMethod = "POST")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<PitchMixStationMaterialData> add(@RequestBody @Validate PitchMixStationMaterialData pitchMixStationMaterialData) {
|
||||
pitchMixStationMaterialDataService.add(pitchMixStationMaterialData);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param pitchMixStationMaterialData
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "编辑沥青拌合站材料用量数据信息", notes = "编辑沥青拌合站材料用量数据信息", httpMethod = "POST")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<PitchMixStationMaterialData> edit(@RequestBody PitchMixStationMaterialData pitchMixStationMaterialData) {
|
||||
pitchMixStationMaterialDataService.edit(pitchMixStationMaterialData);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "删除沥青拌合站材料用量数据信息", notes = "删除沥青拌合站材料用量数据信息", httpMethod = "POST")
|
||||
@ApiImplicitParam(name = "id", value = "沥青拌合站材料用量数据ID", paramType = "body", required = true, dataType = "String", example = "{\"id\":\"1\"}")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<PitchMixStationMaterialData> delete(@ApiIgnore @RequestBody HashMap<String, Object> map) {
|
||||
String id = MapUtils.getString(map, "id");
|
||||
Result<PitchMixStationMaterialData> result = new Result<PitchMixStationMaterialData>();
|
||||
PitchMixStationMaterialData pitchMixStationMaterialData = pitchMixStationMaterialDataService.getById(id);
|
||||
if (pitchMixStationMaterialData == null) {
|
||||
result.error500("未找到对应实体");
|
||||
} else {
|
||||
boolean ok = pitchMixStationMaterialDataService.removeById(id);
|
||||
if (ok) {
|
||||
result.success("删除成功!");
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询沥青拌合站材料用量数据信息", notes = "通过id查询沥青拌合站材料用量数据信息", httpMethod = "GET")
|
||||
@ApiImplicitParam(name = "id", value = "沥青拌合站材料用量数据ID", paramType = "query", required = true, dataType = "Integer")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<PitchMixStationMaterialData> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
Result<PitchMixStationMaterialData> result = new Result<PitchMixStationMaterialData>();
|
||||
PitchMixStationMaterialData pitchMixStationMaterialData = pitchMixStationMaterialDataService.getById(id);
|
||||
if (pitchMixStationMaterialData == null) {
|
||||
result.error500("未找到对应实体");
|
||||
} else {
|
||||
result.setResult(pitchMixStationMaterialData);
|
||||
result.setSuccess(true);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,139 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.controller;
|
||||
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationProdData;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.service.IPitchMixStationProdDataService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zhgd.jeecg.common.api.vo.Result;
|
||||
import org.apache.commons.collections.MapUtils;
|
||||
|
||||
import org.simpleframework.xml.core.Validate;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: 沥青拌合站生产数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/xmgl/pitchMixStationProdData")
|
||||
@Slf4j
|
||||
@Api(tags = "沥青拌合站生产数据相关Api")
|
||||
public class PitchMixStationProdDataController {
|
||||
@Autowired
|
||||
private IPitchMixStationProdDataService pitchMixStationProdDataService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页列表查询沥青拌合站生产数据信息", notes = "分页列表查询沥青拌合站生产数据信息", httpMethod = "GET")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "query", required = true, dataType = "Integer"),
|
||||
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "query", required = true, dataType = "Integer"),
|
||||
})
|
||||
@GetMapping(value = "/page")
|
||||
public Result<IPage<PitchMixStationProdData>> queryPageList(@ApiIgnore @RequestParam HashMap<String, Object> paramMap) {
|
||||
return Result.success(pitchMixStationProdDataService.queryPageList(paramMap));
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "列表查询沥青拌合站生产数据信息", notes = "列表查询沥青拌合站生产数据信息", httpMethod = "GET")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<PitchMixStationProdData>> queryList(@ApiIgnore @RequestParam HashMap<String, Object> paramMap) {
|
||||
return Result.success(pitchMixStationProdDataService.queryList(paramMap));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param pitchMixStationProdData
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "添加沥青拌合站生产数据信息", notes = "添加沥青拌合站生产数据信息", httpMethod = "POST")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<PitchMixStationProdData> add(@RequestBody @Validate PitchMixStationProdData pitchMixStationProdData) {
|
||||
pitchMixStationProdDataService.add(pitchMixStationProdData);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param pitchMixStationProdData
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "编辑沥青拌合站生产数据信息", notes = "编辑沥青拌合站生产数据信息", httpMethod = "POST")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<PitchMixStationProdData> edit(@RequestBody PitchMixStationProdData pitchMixStationProdData) {
|
||||
pitchMixStationProdDataService.edit(pitchMixStationProdData);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "删除沥青拌合站生产数据信息", notes = "删除沥青拌合站生产数据信息", httpMethod = "POST")
|
||||
@ApiImplicitParam(name = "id", value = "沥青拌合站生产数据ID", paramType = "body", required = true, dataType = "String", example = "{\"id\":\"1\"}")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<PitchMixStationProdData> delete(@ApiIgnore @RequestBody HashMap<String, Object> map) {
|
||||
String id = MapUtils.getString(map, "id");
|
||||
Result<PitchMixStationProdData> result = new Result<PitchMixStationProdData>();
|
||||
PitchMixStationProdData pitchMixStationProdData = pitchMixStationProdDataService.getById(id);
|
||||
if (pitchMixStationProdData == null) {
|
||||
result.error500("未找到对应实体");
|
||||
} else {
|
||||
boolean ok = pitchMixStationProdDataService.removeById(id);
|
||||
if (ok) {
|
||||
result.success("删除成功!");
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询沥青拌合站生产数据信息", notes = "通过id查询沥青拌合站生产数据信息", httpMethod = "GET")
|
||||
@ApiImplicitParam(name = "id", value = "沥青拌合站生产数据ID", paramType = "query", required = true, dataType = "Integer")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<PitchMixStationProdData> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
Result<PitchMixStationProdData> result = new Result<PitchMixStationProdData>();
|
||||
PitchMixStationProdData pitchMixStationProdData = pitchMixStationProdDataService.getById(id);
|
||||
if (pitchMixStationProdData == null) {
|
||||
result.error500("未找到对应实体");
|
||||
} else {
|
||||
result.setResult(pitchMixStationProdData);
|
||||
result.setSuccess(true);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站材料用量数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("pitch_mix_station_material_data")
|
||||
@ApiModel(value = "PitchMixStationMaterialData实体类", description = "PitchMixStationMaterialData")
|
||||
public class PitchMixStationMaterialData implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private java.lang.Long id;
|
||||
/**
|
||||
* 沥青拌合站生产数据id
|
||||
*/
|
||||
@Excel(name = "沥青拌合站生产数据id", width = 15)
|
||||
@ApiModelProperty(value = "沥青拌合站生产数据id")
|
||||
private java.lang.Long pitchMixStationProdDataId;
|
||||
/**
|
||||
* 设备sn
|
||||
*/
|
||||
@Excel(name = "设备sn", width = 15)
|
||||
@ApiModelProperty(value = "设备sn")
|
||||
private java.lang.String devSn;
|
||||
/**
|
||||
* 材料名称
|
||||
*/
|
||||
@Excel(name = "材料名称", width = 15)
|
||||
@ApiModelProperty(value = "材料名称")
|
||||
private java.lang.String materialName;
|
||||
/**
|
||||
* 理论用量(kg)
|
||||
*/
|
||||
@Excel(name = "理论用量(kg)", width = 15)
|
||||
@ApiModelProperty(value = "理论用量(kg)")
|
||||
private java.lang.Double theoreticalDosage;
|
||||
/**
|
||||
* 实际用量(kg)
|
||||
*/
|
||||
@Excel(name = "实际用量(kg)", width = 15)
|
||||
@ApiModelProperty(value = "实际用量(kg)")
|
||||
private java.lang.Double actualAmount;
|
||||
/**
|
||||
* 误差(%)
|
||||
*/
|
||||
@Excel(name = "误差(%)", width = 15)
|
||||
@ApiModelProperty(value = "误差(%)")
|
||||
private java.lang.Double error;
|
||||
/**
|
||||
* 项目sn
|
||||
*/
|
||||
@Excel(name = "项目sn", width = 15)
|
||||
@ApiModelProperty(value = "项目sn")
|
||||
private java.lang.String projectSn;
|
||||
/**
|
||||
* 创建时间 yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@Excel(name = "创建时间 yyyy-MM-dd HH:mm:ss", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间 yyyy-MM-dd HH:mm:ss")
|
||||
private java.util.Date createDate;
|
||||
/**
|
||||
* 更新时间 yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@Excel(name = "更新时间 yyyy-MM-dd HH:mm:ss", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间 yyyy-MM-dd HH:mm:ss")
|
||||
private java.util.Date updateDate;
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站生产数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("pitch_mix_station_prod_data")
|
||||
@ApiModel(value = "PitchMixStationProdData实体类", description = "PitchMixStationProdData")
|
||||
public class PitchMixStationProdData implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private java.lang.Long id;
|
||||
/**
|
||||
* 设备sn
|
||||
*/
|
||||
@Excel(name = "设备sn", width = 15)
|
||||
@ApiModelProperty(value = "设备sn")
|
||||
private java.lang.String devSn;
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@Excel(name = "设备名称", width = 15)
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private java.lang.String devName;
|
||||
/**
|
||||
* 任务单号
|
||||
*/
|
||||
@Excel(name = "任务单号", width = 15)
|
||||
@ApiModelProperty(value = "任务单号")
|
||||
private java.lang.String taskNumber;
|
||||
/**
|
||||
* 工程名称
|
||||
*/
|
||||
@Excel(name = "工程名称", width = 15)
|
||||
@ApiModelProperty(value = "工程名称")
|
||||
private java.lang.String projectName;
|
||||
/**
|
||||
* 配比名称
|
||||
*/
|
||||
@Excel(name = "配比名称", width = 15)
|
||||
@ApiModelProperty(value = "配比名称")
|
||||
private java.lang.String proportionName;
|
||||
/**
|
||||
* 盘重
|
||||
*/
|
||||
@Excel(name = "盘重", width = 15)
|
||||
@ApiModelProperty(value = "盘重")
|
||||
private java.lang.Double plateWeight;
|
||||
/**
|
||||
* 油石比
|
||||
*/
|
||||
@Excel(name = "油石比", width = 15)
|
||||
@ApiModelProperty(value = "油石比")
|
||||
private java.lang.Double whetstoneRatio;
|
||||
/**
|
||||
* 使用层
|
||||
*/
|
||||
@Excel(name = "使用层", width = 15)
|
||||
@ApiModelProperty(value = "使用层")
|
||||
private java.lang.String useLayer;
|
||||
/**
|
||||
* 出料时间
|
||||
*/
|
||||
@Excel(name = "出料时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "出料时间")
|
||||
private java.util.Date dischargeTime;
|
||||
/**
|
||||
* 使用状态:1正常2初级超标3中级超标4高级超标5异常
|
||||
*/
|
||||
@Excel(name = "使用状态:1正常2初级超标3中级超标4高级超标5异常", width = 15)
|
||||
@ApiModelProperty(value = "使用状态:1正常2初级超标3中级超标4高级超标5异常")
|
||||
private java.lang.Integer useStatus;
|
||||
/**
|
||||
* 施工地点
|
||||
*/
|
||||
@Excel(name = "施工地点", width = 15)
|
||||
@ApiModelProperty(value = "施工地点")
|
||||
private java.lang.String constructionSite;
|
||||
/**
|
||||
* 操作员
|
||||
*/
|
||||
@Excel(name = "操作员", width = 15)
|
||||
@ApiModelProperty(value = "操作员")
|
||||
private java.lang.String operator;
|
||||
/**
|
||||
* 项目sn
|
||||
*/
|
||||
@Excel(name = "项目sn", width = 15)
|
||||
@ApiModelProperty(value = "项目sn")
|
||||
private java.lang.String projectSn;
|
||||
/**
|
||||
* 创建时间 yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@Excel(name = "创建时间 yyyy-MM-dd HH:mm:ss", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间 yyyy-MM-dd HH:mm:ss")
|
||||
private java.util.Date createDate;
|
||||
/**
|
||||
* 更新时间 yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@Excel(name = "更新时间 yyyy-MM-dd HH:mm:ss", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间 yyyy-MM-dd HH:mm:ss")
|
||||
private java.util.Date updateDate;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationMaterialData;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站材料用量数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface PitchMixStationMaterialDataMapper extends BaseMapper<PitchMixStationMaterialData> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.mapper;
|
||||
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationProdData;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站生产数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@Mapper
|
||||
public interface PitchMixStationProdDataMapper extends BaseMapper<PitchMixStationProdData> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhgd.xmgl.modules.pitchmixstation.mapper.PitchMixStationMaterialDataMapper">
|
||||
</mapper>
|
||||
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhgd.xmgl.modules.pitchmixstation.mapper.PitchMixStationProdDataMapper">
|
||||
</mapper>
|
||||
@ -0,0 +1,25 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.service;
|
||||
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationMaterialData;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站材料用量数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
public interface IPitchMixStationMaterialDataService extends IService<PitchMixStationMaterialData> {
|
||||
|
||||
IPage<PitchMixStationMaterialData> queryPageList(HashMap<String, Object> paramMap);
|
||||
|
||||
List<PitchMixStationMaterialData> queryList(HashMap<String, Object> paramMap);
|
||||
|
||||
void add(PitchMixStationMaterialData pitchMixStationMaterialData);
|
||||
|
||||
void edit(PitchMixStationMaterialData pitchMixStationMaterialData);
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.service;
|
||||
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationProdData;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站生产数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
public interface IPitchMixStationProdDataService extends IService<PitchMixStationProdData> {
|
||||
|
||||
IPage<PitchMixStationProdData> queryPageList(HashMap<String, Object> paramMap);
|
||||
|
||||
List<PitchMixStationProdData> queryList(HashMap<String, Object> paramMap);
|
||||
|
||||
void add(PitchMixStationProdData pitchMixStationProdData);
|
||||
|
||||
void edit(PitchMixStationProdData pitchMixStationProdData);
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.service.impl;
|
||||
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationMaterialData;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.mapper.PitchMixStationMaterialDataMapper;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.service.IPitchMixStationMaterialDataService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zhgd.jeecg.common.system.query.QueryGenerator;
|
||||
import com.zhgd.xmgl.util.PageUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.zhgd.xmgl.util.RefUtil;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站材料用量数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class PitchMixStationMaterialDataServiceImpl extends ServiceImpl<PitchMixStationMaterialDataMapper, PitchMixStationMaterialData> implements IPitchMixStationMaterialDataService {
|
||||
@Autowired
|
||||
private PitchMixStationMaterialDataMapper pitchMixStationMaterialDataMapper;
|
||||
|
||||
@Override
|
||||
public IPage<PitchMixStationMaterialData> queryPageList(HashMap<String, Object> paramMap) {
|
||||
QueryWrapper<PitchMixStationMaterialData> queryWrapper = getQueryWrapper(paramMap);
|
||||
Page<PitchMixStationMaterialData> page = PageUtil.getPage(paramMap);
|
||||
IPage<PitchMixStationMaterialData> pageList = this.page(page, queryWrapper);
|
||||
pageList.setRecords(dealList(pageList.getRecords()));
|
||||
return pageList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PitchMixStationMaterialData> queryList(HashMap<String, Object> paramMap) {
|
||||
QueryWrapper<PitchMixStationMaterialData> queryWrapper = getQueryWrapper(paramMap);
|
||||
return dealList(this.list(queryWrapper));
|
||||
}
|
||||
|
||||
private QueryWrapper<PitchMixStationMaterialData> getQueryWrapper(HashMap<String, Object> paramMap) {
|
||||
String alias = "";
|
||||
QueryWrapper<PitchMixStationMaterialData> queryWrapper = QueryGenerator.initPageQueryWrapper(PitchMixStationMaterialData.class, paramMap, alias);
|
||||
queryWrapper.orderByDesc(alias + RefUtil.fieldNameUlc(PitchMixStationMaterialData::getId));
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
private List<PitchMixStationMaterialData> dealList(List<PitchMixStationMaterialData> list) {
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(PitchMixStationMaterialData pitchMixStationMaterialData) {
|
||||
pitchMixStationMaterialData.setId(null);
|
||||
baseMapper.insert(pitchMixStationMaterialData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(PitchMixStationMaterialData pitchMixStationMaterialData) {
|
||||
baseMapper.updateById(pitchMixStationMaterialData);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.zhgd.xmgl.modules.pitchmixstation.service.impl;
|
||||
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.entity.PitchMixStationProdData;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.mapper.PitchMixStationProdDataMapper;
|
||||
import com.zhgd.xmgl.modules.pitchmixstation.service.IPitchMixStationProdDataService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.zhgd.jeecg.common.system.query.QueryGenerator;
|
||||
import com.zhgd.xmgl.util.PageUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.zhgd.xmgl.util.RefUtil;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* @Description: 沥青拌合站生产数据
|
||||
* @author: pds
|
||||
* @date: 2024-01-16
|
||||
* @version: V1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class PitchMixStationProdDataServiceImpl extends ServiceImpl<PitchMixStationProdDataMapper, PitchMixStationProdData> implements IPitchMixStationProdDataService {
|
||||
@Autowired
|
||||
private PitchMixStationProdDataMapper pitchMixStationProdDataMapper;
|
||||
|
||||
@Override
|
||||
public IPage<PitchMixStationProdData> queryPageList(HashMap<String, Object> paramMap) {
|
||||
QueryWrapper<PitchMixStationProdData> queryWrapper = getQueryWrapper(paramMap);
|
||||
Page<PitchMixStationProdData> page = PageUtil.getPage(paramMap);
|
||||
IPage<PitchMixStationProdData> pageList = this.page(page, queryWrapper);
|
||||
pageList.setRecords(dealList(pageList.getRecords()));
|
||||
return pageList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PitchMixStationProdData> queryList(HashMap<String, Object> paramMap) {
|
||||
QueryWrapper<PitchMixStationProdData> queryWrapper = getQueryWrapper(paramMap);
|
||||
return dealList(this.list(queryWrapper));
|
||||
}
|
||||
|
||||
private QueryWrapper<PitchMixStationProdData> getQueryWrapper(HashMap<String, Object> paramMap) {
|
||||
String alias = "";
|
||||
QueryWrapper<PitchMixStationProdData> queryWrapper = QueryGenerator.initPageQueryWrapper(PitchMixStationProdData.class, paramMap, alias);
|
||||
queryWrapper.orderByDesc(alias + RefUtil.fieldNameUlc(PitchMixStationProdData::getId));
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
private List<PitchMixStationProdData> dealList(List<PitchMixStationProdData> list) {
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(PitchMixStationProdData pitchMixStationProdData) {
|
||||
pitchMixStationProdData.setId(null);
|
||||
baseMapper.insert(pitchMixStationProdData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(PitchMixStationProdData pitchMixStationProdData) {
|
||||
baseMapper.updateById(pitchMixStationProdData);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user