bug调试
This commit is contained in:
parent
833a662344
commit
965bc59789
|
|
@ -229,14 +229,14 @@ public class TbBdRecordServiceImpl implements TbBdRecordService {
|
||||||
redisService.setCacheObject(Constants.TB_BD_RECORD_REDIS_KEY, list, 10L, TimeUnit.MINUTES);
|
redisService.setCacheObject(Constants.TB_BD_RECORD_REDIS_KEY, list, 10L, TimeUnit.MINUTES);
|
||||||
}
|
}
|
||||||
// 处理手机号解密
|
// 处理手机号解密
|
||||||
if (list != null && list.size() > 0) {
|
|
||||||
list.stream()
|
list.stream()
|
||||||
.filter(tbBdRecord -> tbBdRecord.getDepartName() != null)
|
.filter(tbBdRecord -> tbBdRecord.getDepartName() != null)
|
||||||
.forEach(tbBdRecord -> tbBdRecord.setRelPhone(Sm4Utils.decode(tbBdRecord.getRelPhone())));
|
.forEach(tbBdRecord -> tbBdRecord.setRelPhone(Sm4Utils.decode(tbBdRecord.getRelPhone())));
|
||||||
}
|
|
||||||
// 手动计算分页信息
|
// 手动计算分页信息
|
||||||
int pageNum = record.getPageNum() == 0 ? 1 : record.getPageNum();
|
// 默认为第1页
|
||||||
int pageSize = record.getPageSize() == 0 ? 10 : record.getPageSize();
|
int pageNum = Math.max(record.getPageNum(), 1);
|
||||||
|
// 默认为10条数据一页
|
||||||
|
int pageSize = Math.max(record.getPageSize(), 10);
|
||||||
int total = list.size();
|
int total = list.size();
|
||||||
int totalPages = (int) Math.ceil((double) total / pageSize);
|
int totalPages = (int) Math.ceil((double) total / pageSize);
|
||||||
// 手动分页,获取当前页的数据
|
// 手动分页,获取当前页的数据
|
||||||
|
|
|
||||||
|
|
@ -116,11 +116,6 @@ public class TbProjectServiceImpl implements TbProjectService {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
String data = "测试工程0928#";
|
|
||||||
System.out.println(data.matches(Constants.DISALLOWED_REGEX));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,8 @@
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
update tb_bd_record
|
update tb_bd_record
|
||||||
set del_flag = 1
|
set del_flag = 1,
|
||||||
|
update_time = now(),
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue