fix:地磅重量信息接口,后端接收类型修改

This commit is contained in:
LiWeiJie 2024-07-12 09:56:31 +08:00
parent 3aa4cb77f5
commit 11bd4172d6
5 changed files with 30 additions and 30 deletions

View File

@ -58,7 +58,7 @@ public class WmsScalesWeightInfoController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('scalesWeightInfo:wmsScalesWeightInfo:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
public AjaxResult getInfo(@PathVariable("id") String id)
{
return success(wmsScalesWeightInfoService.selectWmsScalesWeightInfoById(id));
}

View File

@ -18,7 +18,7 @@ public interface WmsScalesWeightInfoMapper
* @param id 地磅重量信息接口主键
* @return 地磅重量信息接口
*/
public WmsScalesWeightInfo selectWmsScalesWeightInfoById(Long id);
public WmsScalesWeightInfo selectWmsScalesWeightInfoById(String id);
/**
* 查询地磅重量信息接口列表

View File

@ -18,7 +18,7 @@ public interface IWmsScalesWeightInfoService
* @param id 地磅重量信息接口主键
* @return 地磅重量信息接口
*/
public WmsScalesWeightInfo selectWmsScalesWeightInfoById(Long id);
public WmsScalesWeightInfo selectWmsScalesWeightInfoById(String id);
/**
* 查询地磅重量信息接口列表

View File

@ -28,7 +28,7 @@ public class WmsScalesWeightInfoServiceImpl implements IWmsScalesWeightInfoServi
* @return 地磅重量信息接口
*/
@Override
public WmsScalesWeightInfo selectWmsScalesWeightInfoById(Long id)
public WmsScalesWeightInfo selectWmsScalesWeightInfoById(String id)
{
return wmsScalesWeightInfoMapper.selectWmsScalesWeightInfoById(id);
}

View File

@ -32,7 +32,7 @@
</where>
</select>
<select id="selectWmsScalesWeightInfoById" parameterType="Long" resultMap="WmsScalesWeightInfoResult">
<select id="selectWmsScalesWeightInfoById" parameterType="String" resultMap="WmsScalesWeightInfoResult">
<include refid="selectWmsScalesWeightInfoVo"/>
where id = #{id}
</select>