RFID编码入库
This commit is contained in:
parent
87ef699f84
commit
71e0bc45e5
|
|
@ -54,6 +54,17 @@ public class LeaseOutDetailsController extends BaseController {
|
|||
return getDataTable(leaseOutDetailsService.getMaMachineByQrCode(qrCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据RFID编码查询设备信息
|
||||
* @param rfidCode RFID编码
|
||||
* @return 设备信息
|
||||
*/
|
||||
@Log(title = "根据rfidCode编码获取设备信息", businessType = BusinessType.QUERY)
|
||||
@GetMapping("/getMaMachineByRfidCode")
|
||||
public TableDataInfo getMaMachineByRfidCode(@RequestParam(value = "rfidCode") String rfidCode) {
|
||||
return getDataTable(leaseOutDetailsService.getMaMachineByRfidCode(rfidCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 领料出库,对库存处理
|
||||
* @param record 出库内容
|
||||
|
|
|
|||
|
|
@ -22,4 +22,5 @@ public interface LeaseOutDetailsService {
|
|||
List<MaMachine> getMaMachineByCode(String maCode);
|
||||
|
||||
List<MaMachine> getMaMachineByQrCode(String qrCode);
|
||||
List<MaMachine> getMaMachineByRfidCode(String rfidCode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,4 +124,9 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
|
|||
return maMachineMapper.getMaMachineByQrCode(qrCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MaMachine> getMaMachineByRfidCode(String rfidCode) {
|
||||
return maMachineMapper.getMaMachineByRfidCode(rfidCode);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,5 +29,8 @@ public interface MaMachineMapper {
|
|||
*/
|
||||
public MaMachine selectMaMachineByMaId(Long maId);
|
||||
|
||||
MaMachine selectMachineByAssetsCode(String fixCode);
|
||||
|
||||
List<MaMachine> getMaMachineByRfidCode(String rfidCode);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -282,4 +282,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
where m.ma_id = #{maId}
|
||||
</select>
|
||||
|
||||
<select id="getMaMachineByRfidCode" resultType="com.bonus.sgzb.base.api.domain.MaMachine">
|
||||
select m.ma_id, m.type_id, m.ma_code, m.pre_code, m.ma_status, dic.name maStatusName, m.qr_code, m.buy_price, m.ma_vender, m.out_fac_time, m.out_fac_code,
|
||||
m.assets_code, m.check_man, m.this_check_time, m.next_check_time, m.gps_code, m.rfid_code, m.erp_code, m.transfer_code,
|
||||
m.in_out_num, m.buy_task, m.own_house ,m.company_id ,mt.type_name specificationType,mt1.type_name deviceType, mt2.type_name itemType,
|
||||
mmb.label_code labelCode
|
||||
from ma_machine m
|
||||
left join (select id,p_id,name from sys_dic where p_id in (select id from sys_dic where value = 'ma_status')) dic on m.ma_status = dic.id
|
||||
left join ma_type mt on m.type_id = mt.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_label_bind mmb on m.ma_id = mmb.ma_id and m.type_id = mmb.type_id
|
||||
where m.rfid_code = #{rfidCode}
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue