Commit bfb9458b by 刘宇峰

脚手架版本升级

1 parent be2200d8
......@@ -27,6 +27,7 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.glsx.plat.common.utils.StringUtils;
import com.glsx.plat.core.web.R;
import com.google.gson.reflect.TypeToken;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.logging.Log;
......@@ -266,7 +267,8 @@ public class VehicleService {
R<List<User>> userR = userService.findByUser(new FindUserRequest().setUsername(shopName));
Long createId = null;
if (userR != null) {
List<User> userList = userR.getData();
List<User> userList = userR.getDataList(new TypeToken<List<User>>() {
}.getType());
if (CollectionUtils.isNotEmpty(userList) && userList.size() == 1) {
createId = userList.get(0).getId();
vehicle.setCreatedBy(createId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!