repaired bugs

This commit is contained in:
wen 2022-01-26 12:02:46 +08:00
parent 1852958fcb
commit 04fafe47e2
2 changed files with 8 additions and 3 deletions

View File

@ -96,10 +96,15 @@ public class XhpcCardServiceImpl implements IXhpcCardService {
dataDTO.setDeviceName(tIccardDevice.getDevname());
dataDTO.setDeviceType(tIccardDevice.getDevtype());
dataDTO.setDeviceNumber(tIccardDevice.getSerialnumber());
Integer corpindex = tIccardDevice.getCorpindex();
if (corpindex != null) {
TIccardUsers tIccardUser = tIccardUsersMapper.selectByPrimaryKey(tIccardDevice.getCorpindex());
dataDTO.setGrantOperator(tIccardUser.getUsername());
dataDTO.setType(tIccardDevice.getType());
}
dataDTO.setType(tIccardDevice.getType());
listOfAuthorizedDevices.getData().add(dataDTO);
}
listOfAuthorizedDevices.setTotalItems(tIccardDeviceList.size());
return R.ok(listOfAuthorizedDevices);
}

View File

@ -127,6 +127,6 @@
<update id="updateCardDeviceStatusIsDel">
update t_iccard_device
set del_flag = 1
where serialNumber = #{deviceId}
where id = #{deviceId}
</update>
</mapper>