上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: RequestHttp.POST( "/charge/cost/sign/downLoadZip", para, "", `arraybuffer` //一定要写 ) .then(res => { console.info(res); var blob = new Blob([res.data], 阅读全文
posted @ 2023-02-13 10:16 黄橙 阅读(136) 评论(0) 推荐(0)
摘要: 四舍五入 /** * 四舍五入 * @param {数字} num * @param {保留小数位数} i * @returns */ export function rounded(num, i) { var total2 = 0; var yn = String(num).indexOf("." 阅读全文
posted @ 2023-02-13 10:15 黄橙 阅读(50) 评论(0) 推荐(0)
摘要: 用指令的方式实现,全局注册 export default { install(Vue) { // 防止重复点击 Vue.directive('preventReClick', { inserted(el, binding) { el.addEventListener('click', () => { 阅读全文
posted @ 2023-02-13 10:15 黄橙 阅读(1525) 评论(0) 推荐(0)
摘要: import java.math.BigDecimal; /** * 用于高精确处理常用的数学运算 * Created by lijuan on 2016/8/27. */ public class ArithmeticUtils { //默认除法运算精度 private static final 阅读全文
posted @ 2023-02-10 15:28 黄橙 阅读(23) 评论(0) 推荐(0)
摘要: LocalDateTime前后端传递转时间戳注解 @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonSerialize(using = LocalDateTimeSerializer.class) 实体类加上这两个注解的作用 阅读全文
posted @ 2023-02-10 15:27 黄橙 阅读(388) 评论(0) 推荐(0)
摘要: import javax.imageio.ImageIO; import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOu 阅读全文
posted @ 2023-02-10 15:27 黄橙 阅读(166) 评论(0) 推荐(0)
摘要: @RequestMapping(value = "save", method = RequestMethod.POST) public R save(@RequestParam("imgFile") MultipartFile file) { String fileName = file.getOr 阅读全文
posted @ 2023-02-10 15:27 黄橙 阅读(369) 评论(0) 推荐(0)
摘要: import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Component; import javax.annotation.Resource; imp 阅读全文
posted @ 2023-02-10 15:26 黄橙 阅读(310) 评论(0) 推荐(0)
摘要: 我这里提供的是mybatis plus 和 xml配置文件结合的方式:直接从service层开始写: service //这是service层,多表分页的简单逻辑处理,重点是IPage 和 Map, // IPage 就是分页,把分页的参数传进来进行使用 // Map 是用来传参数使用的,携带你需要 阅读全文
posted @ 2023-02-10 15:26 黄橙 阅读(243) 评论(0) 推荐(0)
摘要: 集合转为数组 List<Long> chargeIds =new ArrayList<Long>(); Long [] ids=(Long[])chargeIds.toArray(); List<Map<String,Object>>转List<T> list map对象转list对象 List<M 阅读全文
posted @ 2023-02-10 15:25 黄橙 阅读(78) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页