文章分类 - java
摘要:package com.govmade.gds.common.utils;import com.baomidou.mybatisplus.core.mapper.Mapper;import org.apache.commons.lang3.StringUtils;import java.util.M
阅读全文
摘要://今天上次的文件夹String nowYearMonth = now.get(Calendar.YEAR) + ((now.get(Calendar.MONTH) + 1 < 10) ? "0" + (now.get(Calendar.MONTH) + 1) : "" + (now.get(Cal
阅读全文
摘要:菜单权限@PreAuthorize("@pms.hasPermission('sys_dept_edit')") 如何控制菜单权限控制在后台菜单管理中给指定菜单添加 按钮节点 需要指定 权限标志 例如: sys_file_add、sys_file_del、sys_file_edit前端CRUD 会自
阅读全文
摘要://获取当前权限GovmadeUser user = SecurityUtils.getUser(); @Resourceprivate HttpSessionService httpSessionService; Integer userIdSession=Integer.valueOf(http
阅读全文
摘要:List<JSONObject> tableData = new ArrayList(1); tableData = tableData.stream().sorted(Comparator.comparing(jsonObject -> StringNullUtil.isNotBlank((jso
阅读全文
摘要:eq.last(" group by DATE_FORMAT(benchmark_date,'%Y-%m')"); QueryWrapper<AssessmentDeptTask> wrapper = new QueryWrapper<>();LambdaQueryWrapper<QuesAnswe
阅读全文
摘要:str=str.trim().replaceAll("\\u00A0",""); // 四舍五入,保留2位小数BigDecimal bg = new BigDecimal(String.valueOf(allNum)).setScale(2, BigDecimal.ROUND_HALF_UP); /
阅读全文
摘要:txt文件输入java -jar bjfzx-input.jar 如: java -jar 当前架包名称.jar 放入架包文件夹 把txt 修改成bat 后缀 就能运行jar项目 前置:redis环境,jdk环境,mysql环境
阅读全文
摘要:1接口请求 /** * 定义编码格式 UTF-8 */ public static final String URL_PARAM_DECODECHARSET_UTF8 = "UTF-8"; /** * 定义编码格式 GBK */ public static final String URL_PARA
阅读全文