- 博客(4)
- 收藏
- 关注
原创 MyBatis中Integer类型的数据为0时,if判断为空
根据status状态来筛选数据,当前台将Integer类型的数据传为0时,在if判断中直接判定为空,跳过if判断。
2023-04-10 11:18:03
286
1
原创 excle动态导出(前端挑选需要导出的字段,动态导出)
List<Map<String, Object>> maps = userService.getExportUsers(qo); HashMap<String, String> titleMap = new HashMap<>(); titleMap.put("id","用户id");titleMap.put("userName","用户名");titleMap.put("phoneNum","手机号");titleMap...
2021-08-26 17:11:35
997
转载 Long.getLong()中枪留念
getLong(String str ) 与 valueOf(String str) 都是Long 这个类中的方法,它们的返回值都是Long ,传入的参数都是 String 。看这字面的意思好像都是将字符串变为Long 类型的数据。 先上一个例子:package hlm.com;public class TestLong { public static void main(String[] args ) { String lstr = "12" ; ...
2021-08-01 17:55:55
1425
1
原创 腾讯云接口获取视频基本信息
项目中获取视频时长,需要调用腾讯云SDKimport com.qcloud.Module.Vod;import com.qcloud.QcloudApiModuleCenter; private String getVideoTime(Integer fileId){ TreeMap<String, Object> config = new TreeMap<>(); // 点播服务id config.put("...
2021-07-27 17:15:09
1328
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅