提交 5371a80d authored 作者: inroi's avatar inroi

微调

上级 4e24d3ec
package com.system.dao; package com.system.dao;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.system.transfer.lic.*; import com.system.transfer.lic.*;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -12,10 +14,11 @@ public interface LicInfoMapper { ...@@ -12,10 +14,11 @@ public interface LicInfoMapper {
/** /**
* Lic信息列表 * Lic信息列表
* *
* @param page 分页
* @param inVo 条件 * @param inVo 条件
* @return 列表 * @return 列表
*/ */
List<LicInfoListOutVoRecords> licInfoList(LicInfoListInVo inVo); List<LicInfoListOutVoRecords> licInfoList(@Param("page") Page<LicInfoListOutVoRecords> page, @Param("inVo") LicInfoListInVo inVo);
/** /**
* Lic信息创建 * Lic信息创建
......
package com.system.dao; package com.system.dao;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.system.transfer.verification.*; import com.system.transfer.verification.*;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -12,10 +14,11 @@ public interface LicVerificationMapper { ...@@ -12,10 +14,11 @@ public interface LicVerificationMapper {
/** /**
* Lic在线验证列表 * Lic在线验证列表
* *
* @param page 分页
* @param inVo 条件 * @param inVo 条件
* @return 列表 * @return 列表
*/ */
List<LicOnlineVerificationLogListOutVoRecords> licOnlineVerificationLogList(LicOnlineVerificationLogListInVo inVo); List<LicOnlineVerificationLogListOutVoRecords> licOnlineVerificationLogList(@Param("page") Page<LicOnlineVerificationLogListOutVoRecords> page, @Param("inVo") LicOnlineVerificationLogListInVo inVo);
/** /**
* Lic在线验证详情 * Lic在线验证详情
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
id, mac_address, effective_time, file_effective_time, verification_interval, module_verification, create_time id, mac_address, effective_time, file_effective_time, verification_interval, module_verification, create_time
FROM tb_lic_info FROM tb_lic_info
<where> <where>
<if test="macAddress != null and macAddress != ''"> <if test="inVo.macAddress != null and inVo.macAddress != ''">
mac_address = #{macAddress} mac_address = #{inVo.macAddress}
</if> </if>
</where> </where>
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
id, mac_address, flag, message, create_time id, mac_address, flag, message, create_time
FROM tb_lic_log FROM tb_lic_log
<where> <where>
<if test="macAddress != null and macAddress != ''"> <if test="inVo.macAddress != null and inVo.macAddress != ''">
mac_address = #{macAddress} mac_address = #{inVo.macAddress}
</if> </if>
<if test="flag != null"> <if test="inVo.flag != null">
AND flag = #{flag} AND flag = #{inVo.flag}
</if> </if>
</where> </where>
......
...@@ -31,7 +31,7 @@ public class LicInfoServiceImpl implements ILicInfoService { ...@@ -31,7 +31,7 @@ public class LicInfoServiceImpl implements ILicInfoService {
@Override @Override
public LicInfoListOutVo licInfoList(LicInfoListInVo inVo) { public LicInfoListOutVo licInfoList(LicInfoListInVo inVo) {
Page<LicInfoListOutVoRecords> page = new Page<>(inVo.getPageNo(), inVo.getPageSize()); Page<LicInfoListOutVoRecords> page = new Page<>(inVo.getPageNo(), inVo.getPageSize());
List<LicInfoListOutVoRecords> recordsList = licInfoMapper.licInfoList(inVo); List<LicInfoListOutVoRecords> recordsList = licInfoMapper.licInfoList(page, inVo);
LicInfoListOutVo outVo = new LicInfoListOutVo(); LicInfoListOutVo outVo = new LicInfoListOutVo();
outVo.setTotal((int) page.getTotal()); outVo.setTotal((int) page.getTotal());
......
...@@ -40,7 +40,7 @@ public class LicVerificationServiceImpl implements ILicVerificationService { ...@@ -40,7 +40,7 @@ public class LicVerificationServiceImpl implements ILicVerificationService {
@Override @Override
public LicOnlineVerificationLogListOutVo licOnlineVerificationLogList(LicOnlineVerificationLogListInVo inVo) { public LicOnlineVerificationLogListOutVo licOnlineVerificationLogList(LicOnlineVerificationLogListInVo inVo) {
Page<LicOnlineVerificationLogListOutVoRecords> page = new Page<>(inVo.getPageNo(), inVo.getPageSize()); Page<LicOnlineVerificationLogListOutVoRecords> page = new Page<>(inVo.getPageNo(), inVo.getPageSize());
List<LicOnlineVerificationLogListOutVoRecords> recordsList = licVerificationMapper.licOnlineVerificationLogList(inVo); List<LicOnlineVerificationLogListOutVoRecords> recordsList = licVerificationMapper.licOnlineVerificationLogList(page, inVo);
LicOnlineVerificationLogListOutVo outVo = new LicOnlineVerificationLogListOutVo(); LicOnlineVerificationLogListOutVo outVo = new LicOnlineVerificationLogListOutVo();
outVo.setTotal((int) page.getTotal()); outVo.setTotal((int) page.getTotal());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论