bug调试
This commit is contained in:
parent
833a662344
commit
965bc59789
|
|
@ -144,6 +144,6 @@ public class Constants {
|
|||
/**
|
||||
* 禁止特殊字符正则表达式
|
||||
*/
|
||||
public static final String DISALLOWED_REGEX = ".*[!~`@#$%^&*()\\-_,.?\":{}|<>+\\\\/%].*";
|
||||
public static final String DISALLOWED_REGEX = ".*[!~`@#$%^&*()\\-_,.?\":{}|<>+\\\\/%].*";
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -229,14 +229,14 @@ public class TbBdRecordServiceImpl implements TbBdRecordService {
|
|||
redisService.setCacheObject(Constants.TB_BD_RECORD_REDIS_KEY, list, 10L, TimeUnit.MINUTES);
|
||||
}
|
||||
// 处理手机号解密
|
||||
if (list != null && list.size() > 0) {
|
||||
list.stream()
|
||||
.filter(tbBdRecord -> tbBdRecord.getDepartName() != null)
|
||||
.forEach(tbBdRecord -> tbBdRecord.setRelPhone(Sm4Utils.decode(tbBdRecord.getRelPhone())));
|
||||
}
|
||||
// 手动计算分页信息
|
||||
int pageNum = record.getPageNum() == 0 ? 1 : record.getPageNum();
|
||||
int pageSize = record.getPageSize() == 0 ? 10 : record.getPageSize();
|
||||
// 默认为第1页
|
||||
int pageNum = Math.max(record.getPageNum(), 1);
|
||||
// 默认为10条数据一页
|
||||
int pageSize = Math.max(record.getPageSize(), 10);
|
||||
int total = list.size();
|
||||
int totalPages = (int) Math.ceil((double) total / pageSize);
|
||||
// 手动分页,获取当前页的数据
|
||||
|
|
|
|||
|
|
@ -116,11 +116,6 @@ public class TbProjectServiceImpl implements TbProjectService {
|
|||
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">
|
||||
<!--@mbg.generated-->
|
||||
update tb_bd_record
|
||||
set del_flag = 1
|
||||
set del_flag = 1,
|
||||
update_time = now(),
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue