V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  cnit  ›  全部回复第 6 页 / 共 8 页
回复总数  155
1  2  3  4  5  6  7  8  
2021-11-30 11:15:32 +08:00
回复了 CaptainD 创建的主题 问与答 如何将 GoogleCloudStorage 数据下载到本地或 GoogleCloud
gsutil cp gs://my-bucket/my-file .

http://storage.googleapis.com/<bucket>/<object>

http://storage.googleapis.com/myBucket/foo.zip
2021-11-29 16:28:51 +08:00
回复了 taloricag 创建的主题 程序员 操作记录精细到字段级别,有比较干净的方案么?
``` java


@Component
@CanalTable("table_name")
public class OrderHeaderHandler implements EntryHandler {

@Autowired
private XxxService xxxService;

@Override
public void update(Map<String, String> before, Map<String, String> after, Set<String> updateColumns) {
//获取需要记录日志的列
Map<String, String> filedMap = FieldUtils.objectToMap(TableName.class, updateColumns);
String tableId= before.get("tableId");
String records = "";
if (filedMap != null && filedMap.keySet().size() > 0) {
for (String update : filedMap.keySet()) {
String comment = filedMap.get(update);
String beforeValue = before.get(update);
String afterValue = after.get(update);
records = records.concat(String.format("%s 由 %s 改为 %s", comment, StringUtils.isEmpty(beforeValue) ? "空" : beforeValue
, StringUtils.isEmpty(afterValue) ? "空" : afterValue) + ";");
}
//记录日志
OperationRecords operationRecords = new OperationRecords();
operationRecords.setLinkedId(Long.parseLong(orderId));
operationRecords.setRecords(records);
operationRecords.setTableName("container_transport_order_header");
operationRecords.setCreateTime(new Date());
operationRecords.setCreateUserId(parseLongUserId(after.get("updateUserId")));
operationRecordsService.save(operationRecords);
}
}



```
2021-11-29 10:25:54 +08:00
回复了 ChrisFreeMan 创建的主题 Python Python 版 switch 尝鲜
等着收律师函吧 :doge
2021-11-26 15:57:08 +08:00
回复了 7911364440 创建的主题 Java 属性名不让用 is 开头,应该用什么?
``` xxx_flag ```
``` xxxFlag```
@codingBug $imgLink 这个变量自行替换就好了
2021-11-25 18:18:12 +08:00
回复了 Lagrangist 创建的主题 YouTube 为什么 youtube 的自动字幕经常是越南语和荷兰语?
<script src="https://gist.github.com/bestK/3e5dd33d16943cfb1753023c2129b5f2.js"></script> 为啥不直接显示代码
2021-11-18 17:36:31 +08:00
回复了 bk201 创建的主题 Java 优雅设置账号只能使用读类型的 API
Ctrl + Shift + R 批量替换加注解呀,要不就是切面到数据操作层判断。
2021-09-07 17:28:01 +08:00
回复了 lgs821 创建的主题 Go 编程语言 我撸了一个快速搭建私人网盘的轮子, ifilespace 文件管理
有 anytxt 的功能就好了
2021-04-28 10:51:56 +08:00
回复了 magicbook 创建的主题 问与答 快毕业了 想做个自己简历的网站
![image.png]( https://i.loli.net/2021/04/28/egI8OjCqZzmTMRp.png) 我打开这个帖子 WPS 就弹出这个,真是恶心
2020-04-18 20:28:52 +08:00
回复了 Cmdhelp 创建的主题 分享创造 自己动手做的了命令搜索的网站, cmdhelp.com
2020-04-18 20:22:09 +08:00
回复了 Cmdhelp 创建的主题 分享创造 自己动手做的了命令搜索的网站, cmdhelp.com
有个 chrome 主页插件里面自带这个动能 https://github.com/jaywcjlove/linux-command
234 p 挂了
thymeleaf 里面经常会用到
2020-04-12 23:49:02 +08:00
回复了 ailuoliai 创建的主题 程序员 软件实施工程师这个岗位苦逼吗 ? 前途如何 ?
就是负责售后沟通的,对情商要求较高,还要稍微懂些编程方面的东西,例如 SQL
2020-04-08 00:56:47 +08:00
回复了 lhc70000 创建的主题 程序员 剽窃别人成果的人一直有,不过今天遇到了格外厉害的
@SZP1206 五笔,我是在维基百科介绍 IINA 的一条英文外链上看到的,有个老外说不喜欢这种看不明白的英文名字,然后有个人解释了用中文五笔打就会有👓的名字
2020-04-08 00:38:09 +08:00
回复了 waiaan 创建的主题 程序员 有什么 ie8 能用的 UI 框架吗?
内网项目 政府银行学校呗,一个是一部分老同志学电脑上的东西慢还不愿意接受新的东西,一个是不允许随便安装软件。所以就一直用 IE 咯
1  2  3  4  5  6  7  8  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1158 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 23:36 · PVG 07:36 · LAX 16:36 · JFK 19:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.