提交 0295fc6a 作者: zhenjie

单位管理修改

上级 f75f6190
...@@ -52,6 +52,14 @@ public class CompanyInfoVO implements Serializable { ...@@ -52,6 +52,14 @@ public class CompanyInfoVO implements Serializable {
private String remark; private String remark;
@ApiModelProperty(value = "用户id") @ApiModelProperty(value = "用户id")
private Integer userAccountId; private Integer userAccountId;
@ApiModelProperty(value = "纬度")
private Double lat;
@ApiModelProperty(value = "经度")
private Double lon;
@ApiModelProperty(value = "社会信用代码")
private String creditCode;
@ApiModelProperty(value = "营业执照")
private String licenseImg;
@ApiModelProperty(value = "品牌名称", example = "科比特") @ApiModelProperty(value = "品牌名称", example = "科比特")
private String brandName; private String brandName;
......
...@@ -65,4 +65,6 @@ public class UserAccountVO implements Serializable { ...@@ -65,4 +65,6 @@ public class UserAccountVO implements Serializable {
private List<CooperationTagVO> cooperationTagVOS; private List<CooperationTagVO> cooperationTagVOS;
@ApiModelProperty(value = "上级推荐人") @ApiModelProperty(value = "上级推荐人")
private UserRcdVO userRcdVO; private UserRcdVO userRcdVO;
@ApiModelProperty(value = "是否是单位管理员")
private Integer leader;
} }
...@@ -4,6 +4,7 @@ import com.mmc.iuav.group.Insert; ...@@ -4,6 +4,7 @@ import com.mmc.iuav.group.Insert;
import com.mmc.iuav.response.ResultBody; import com.mmc.iuav.response.ResultBody;
import com.mmc.iuav.user.model.qo.CompanyInfoQO; import com.mmc.iuav.user.model.qo.CompanyInfoQO;
import com.mmc.iuav.user.model.vo.CompanyInfoVO; import com.mmc.iuav.user.model.vo.CompanyInfoVO;
import com.mmc.iuav.user.model.vo.UserAccountVO;
import com.mmc.iuav.user.service.CompanyService; import com.mmc.iuav.user.service.CompanyService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
...@@ -102,7 +103,7 @@ public class CompanyController extends BaseController { ...@@ -102,7 +103,7 @@ public class CompanyController extends BaseController {
@ApiOperation(value = "成员-列表") @ApiOperation(value = "成员-列表")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@GetMapping("listCompanyMembers") @GetMapping("listCompanyMembers")
public ResultBody listCompanyMembers(HttpServletRequest request, public ResultBody<UserAccountVO> listCompanyMembers(HttpServletRequest request,
@RequestParam Integer companyInfoId, @RequestParam Integer companyInfoId,
@RequestParam Integer pageNo, @RequestParam Integer pageNo,
@RequestParam Integer pageSize) { @RequestParam Integer pageSize) {
......
...@@ -48,6 +48,7 @@ public class CompanyInfoDO implements Serializable { ...@@ -48,6 +48,7 @@ public class CompanyInfoDO implements Serializable {
.brandName(brandName) .brandName(brandName)
.brandLogo(brandLogo) .brandLogo(brandLogo)
.userAccountId(userAccountId) .userAccountId(userAccountId)
.lon(this.lon).lat(this.lat).creditCode(this.creditCode).licenseImg(this.licenseImg)
.city(city).district(district).address(address).companyUserName(companyUserName).phoneNum(phoneNum).remark(remark).build(); .city(city).district(district).address(address).companyUserName(companyUserName).phoneNum(phoneNum).remark(remark).build();
} }
......
...@@ -46,6 +46,7 @@ public class UserAccountDO implements Serializable { ...@@ -46,6 +46,7 @@ public class UserAccountDO implements Serializable {
private Integer companyAuthStatus; private Integer companyAuthStatus;
private String companyName; private String companyName;
private Integer leader;
/** /**
* 邀请人数 * 邀请人数
*/ */
...@@ -91,6 +92,7 @@ public class UserAccountDO implements Serializable { ...@@ -91,6 +92,7 @@ public class UserAccountDO implements Serializable {
.inviteCount(this.inviteCount) .inviteCount(this.inviteCount)
.cooperationTagVOS(CollectionUtils.isEmpty(this.cooperationTagDOS) ? null : this.cooperationTagDOS.stream().map(CooperationTagDO::buildCooperationTagVO).collect(Collectors.toList())) .cooperationTagVOS(CollectionUtils.isEmpty(this.cooperationTagDOS) ? null : this.cooperationTagDOS.stream().map(CooperationTagDO::buildCooperationTagVO).collect(Collectors.toList()))
.userRcdVO(this.userRcdDO == null ? null : this.userRcdDO.buildUserRcdVO()) .userRcdVO(this.userRcdDO == null ? null : this.userRcdDO.buildUserRcdVO())
.leader(this.leader)
.build(); .build();
} }
......
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
</delete> </delete>
<select id="getCompanyInfoById" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"> <select id="getCompanyInfoById" resultType="com.mmc.iuav.user.entity.CompanyInfoDO">
select id, company_type, company_name, full_name, province, city, district, address, company_user_name, phone_num, remark, create_time select id, company_type, company_name, full_name, province, city, district, address, company_user_name,
phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo
from company_info from company_info
where id = #{id} and is_deleted = 0 where id = #{id} and is_deleted = 0
</select> </select>
...@@ -96,7 +97,7 @@ ...@@ -96,7 +97,7 @@
<select id="listCompanyPage" resultType="com.mmc.iuav.user.entity.CompanyInfoDO" <select id="listCompanyPage" resultType="com.mmc.iuav.user.entity.CompanyInfoDO"
parameterType="com.mmc.iuav.user.model.qo.CompanyInfoQO"> parameterType="com.mmc.iuav.user.model.qo.CompanyInfoQO">
select id, company_type, company_name, full_name, province, city, district, address, company_user_name, select id, company_type, company_name, full_name, province, city, district, address, company_user_name,
phone_num, remark, create_time phone_num, remark, create_time, lon, lat, credit_code, license_img, brand_name, brand_logo
from company_info from company_info
where is_deleted = 0 where is_deleted = 0
<if test="companyName != null"> <if test="companyName != null">
...@@ -189,7 +190,8 @@ ...@@ -189,7 +190,8 @@
ua.user_name, ua.user_name,
ua.nick_name, ua.nick_name,
ua.phone_num, ua.phone_num,
ua.user_img ua.user_img,
cm.is_leader as leader
FROM FROM
company_member cm company_member cm
INNER JOIN company_info ci ON cm.company_info_id = ci.id INNER JOIN company_info ci ON cm.company_info_id = ci.id
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论