maCode修正
This commit is contained in:
parent
8857257ec1
commit
b87c914739
|
|
@ -34,13 +34,13 @@ public class LeaseOutDetailsController extends BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据code编码查询设备信息
|
* 根据code编码查询设备信息
|
||||||
* @param mCode 机具编码
|
* @param maCode 机具编码
|
||||||
* @return 设备信息
|
* @return 设备信息
|
||||||
*/
|
*/
|
||||||
@Log(title = "根据code编码获取设备信息", businessType = BusinessType.QUERY)
|
@Log(title = "根据code编码获取设备信息", businessType = BusinessType.QUERY)
|
||||||
@GetMapping("/getMaMachineByCode")
|
@GetMapping("/getMaMachineByCode")
|
||||||
public TableDataInfo getMaMachineByCode(@RequestParam(value = "maCode") String mCode) {
|
public TableDataInfo getMaMachineByCode(@RequestParam(value = "maCode") String maCode) {
|
||||||
return getDataTable(leaseOutDetailsService.getMaMachineByCode(mCode));
|
return getDataTable(leaseOutDetailsService.getMaMachineByCode(maCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -83,8 +83,8 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maMachine
|
* @param maCode 编码ID
|
||||||
* @return
|
* @return 数据
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<MaMachine> getMaMachineByCode(String maCode) {
|
public List<MaMachine> getMaMachineByCode(String maCode) {
|
||||||
|
|
|
||||||
|
|
@ -69,10 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||||
left join ma_type mt2 on mt1.parent_id = mt2.type_id
|
left join ma_type mt2 on mt1.parent_id = mt2.type_id
|
||||||
left join ma_label_bind mmb on m.ma_id = mmb.ma_id and m.type_id = mmb.type_id
|
left join ma_label_bind mmb on m.ma_id = mmb.ma_id and m.type_id = mmb.type_id
|
||||||
<where>
|
where m.ma_code = #{maCode}
|
||||||
m.ma_code = #{maCode}
|
|
||||||
</where>
|
|
||||||
order by m.ma_id desc
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue