随笔分类 - 方法笔记
jdk8集合查询
摘要:List<String> ids = list.stream().map(ContractModificationBasicInfoDTO::getUuid).collect(Collectors.toList()); //构造树形结构List<ReportDetailDTO> dtos = ICo
阅读全文
使用集合,对象属性值相同,再使用JSON.toJSONString时出现了$ref问题
摘要:return JSON.toJSONString(resultForm, SerializerFeature.DisableCircularReferenceDetect);
阅读全文
CookiesUtil操作cookies
摘要:import org.springframework.stereotype.Component; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.
阅读全文
数据库表新加字段语句
摘要:alter table [表名] add 字段名 smallint default 0alter table [表名] add 字段名 int default 0alter table [表名] add 字段名 single default 0 alter table [表名] add 字段名 do
阅读全文
报表查询通用接口(只需要传入数据库视图或者表名)
摘要:Controller /** * @Classname GeneralReportModuleController * 报表查询通用接口 * @Date 2022/3/16 11:10 上午 * @Author wjh */ @RestController public class GeneralR
阅读全文
java后端接收post请求传递的json数组转bean
摘要:@RequestMapping(value = "/xxx/xxxxx/{contractPlanSort}", method = RequestMethod.POST) public ResponseEntity<ProcessSeccussResponse> brandActualSupplie
阅读全文