Commit fd4dd230 by 黄小葱

同步时默认一个创建账号id

1 parent 09bbfdf9
...@@ -380,6 +380,12 @@ public class VehicleService { ...@@ -380,6 +380,12 @@ public class VehicleService {
if (CollectionUtils.isNotEmpty(userList) && userList.size() == 1) { if (CollectionUtils.isNotEmpty(userList) && userList.size() == 1) {
createId = userList.get(0).getId(); createId = userList.get(0).getId();
} }
if (createId == null || createId == 0L) {
String createdBy = PropertiesUtils.getProperty("bhg.vehicle.createBy.id");
if (StringUtils.isNotBlank(createdBy)) {
createId = Long.parseLong(createdBy);
}
}
return createId; return createId;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!