public MaterialRecord selectMaterialRecordById(Long id);
<sql id="selectMaterialRecordVo">
select id, car_no, weight, record_time, material_type, photo_url, create_by, create_time, update_by, update_time, remark from material_record
</sql>
<select id="selectMaterialRecordById" parameterType="Long" resultMap="MaterialRecordResult">
<include refid="selectMaterialRecordVo"/>
where id = #{id}
</select>
service:
public MaterialRecord selectMaterialRecordById(Long id);
serviceImpl:
@Override
public MaterialRecord selectMaterialRecordById(Long id)
{
return materialRecordMapper.selectMaterialRecordById(id);
}
controllor:
@ApiOperation("获取物料出入记录详细信息")
@RequiresPermissions("gd:record:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(materialRecordService.selectMaterialRecordById(id));
}