更新产品信息

cert
anthonywj 2 years ago
parent 45073a3cbc
commit bb707f6601

@ -2,6 +2,7 @@ package com.glxp.api.controller.sup;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.github.pagehelper.PageInfo;
@ -111,6 +112,23 @@ public class UserComanyController extends BaseController {
}
@ApiOperation(value = "查询用户企业信息", response = UserCompanyEntity.class)
@GetMapping("udi/auth/user/comapny/info")
public BaseResponse getCompanyInfo(FilterUserComapanyRequest filterUserComapanyRequest) {
UserCompanyResponse userCompanyResponse = new UserCompanyResponse();
List<UserCompanyEntity> userCompanyEntities = userCompanyService.filterCompanyName(filterUserComapanyRequest);
if (CollUtil.isNotEmpty(userCompanyEntities)) {
UserCompanyEntity userCompanyEntity = userCompanyEntities.get(0);
BeanUtil.copyProperties(userCompanyEntity, userCompanyResponse);
userCompanyResponse.setRegStatus(1);
} else {
userCompanyResponse.setCreditNum(filterUserComapanyRequest.getCreditNum());
userCompanyResponse.setRegStatus(3);
}
return ResultVOUtils.success(userCompanyResponse);
}
@Resource
UserCompanyOnlineService userCompanyOnlineService;

@ -37,4 +37,6 @@ public class UserCompanyResponse extends UserCompanyEntity {
private String realName;
private String fmobile;
private String email;
@ApiModelProperty(value = "注册状态 1已注册2已禁用; 3:未注册")
private Integer regStatus;
}

Loading…
Cancel
Save