Commit de7b5169 by 林冲 Committed by 崔彦峰

chore(pom): 更新项目版本号从1.0.5-SNAPSHOT到1.0.8-SNAPSHOT

- 更新gsc-vcp-api模块版本号为1.0.8-SNAPSHOT
- 更新gsc-vcp-biz模块中gsc-vcp-api依赖版本为1.0.8-SNAPSHOT
- 更新gsc-vcp-biz-job模块中gsc-vcp-api依赖版本为1.0.8-SNAPSHOT
- 更新gsc-vcp-pad-facade模块中gsc-vcp-api依赖版本为1.0.8-SNAPSHOT
- 更新gsc-vcp-web-facade模块中gsc-vcp-api依赖版本为1.0.8-SNAPSHOT
1 parent db158fcb
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<dependency> <dependency>
<groupId>com.gsc4cloud</groupId> <groupId>com.gsc4cloud</groupId>
<artifactId>gsc-vcp-api</artifactId> <artifactId>gsc-vcp-api</artifactId>
<version>1.0.5-SNAPSHOT</version> <version>1.0.8-SNAPSHOT</version>
</dependency> </dependency>
<!--feign 调用--> <!--feign 调用-->
<dependency> <dependency>
......
package com.gsc4cloud.gsc.facade.vpcweb.controller.common;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.facade.vpcweb.anotation.RopSession;
import com.gsc4cloud.gsc.facade.vpcweb.service.livecode.MerchantRefService;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.MerchantRefVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 商户管理
*
* @author linchong
*/
@RestController
@RequestMapping("/merchant")
@Tag(name = "商户管理")
public class MerchantController {
@Resource
private MerchantRefService merchantRefService;
/**
* 获取开通二手车场景的4S店列表
*/
@Operation(summary = "获取开通二手车场景的4S店列表")
@RopSession
@PostMapping("/carDealer/list")
public R<List<MerchantRefVO>> carDealerList() {
return merchantRefService.list();
}
}
package com.gsc4cloud.gsc.facade.vpcweb.controller.common;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.facade.vpcweb.anotation.RopSession;
import com.gsc4cloud.gsc.facade.vpcweb.service.livecode.PricingStaffService;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.PricingStaffVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 员工管理
*
* @author linchong
*/
@RestController
@RequestMapping("/staff")
@Tag(name = "员工管理")
public class StaffController {
@Resource
private PricingStaffService pricingStaffService;
/**
* 获取总部定价师下拉框列表
*/
@Operation(summary = "获取总部定价师下拉框列表")
@RopSession
@PostMapping("/pricingStaff/list")
public R<List<PricingStaffVO>> pricingStaffList() {
return pricingStaffService.list();
}
}
...@@ -3,6 +3,8 @@ package com.gsc4cloud.gsc.facade.vpcweb.service.livecode; ...@@ -3,6 +3,8 @@ package com.gsc4cloud.gsc.facade.vpcweb.service.livecode;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gsc4cloud.gsc.common.core.util.R; import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.facade.vpcweb.convert.LiveCodePageConvert; import com.gsc4cloud.gsc.facade.vpcweb.convert.LiveCodePageConvert;
import com.gsc4cloud.gsc.facade.vpcweb.response.rop.LoginAccountResponse;
import com.gsc4cloud.gsc.facade.vpcweb.utils.ThreadLocalCache;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.LiveCodePageVO; import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.LiveCodePageVO;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.LiveCodeVO; import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.LiveCodeVO;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.GroupPoolVO; import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.GroupPoolVO;
...@@ -55,6 +57,8 @@ public class LiveCodeService { ...@@ -55,6 +57,8 @@ public class LiveCodeService {
* 新增 * 新增
*/ */
public R<Boolean> add(LiveCodeSaveRequest request) { public R<Boolean> add(LiveCodeSaveRequest request) {
LoginAccountResponse accountInfo = ThreadLocalCache.getLoginAccountInfo();
request.setCreatedBy(accountInfo.getUserName());
return liveCodeRemote.add(request); return liveCodeRemote.add(request);
} }
...@@ -62,6 +66,8 @@ public class LiveCodeService { ...@@ -62,6 +66,8 @@ public class LiveCodeService {
* 更新 * 更新
*/ */
public R<Boolean> update(LiveCodeSaveRequest request) { public R<Boolean> update(LiveCodeSaveRequest request) {
LoginAccountResponse accountInfo = ThreadLocalCache.getLoginAccountInfo();
request.setCreatedBy(accountInfo.getUserName());
return liveCodeRemote.update(request); return liveCodeRemote.update(request);
} }
...@@ -69,6 +75,8 @@ public class LiveCodeService { ...@@ -69,6 +75,8 @@ public class LiveCodeService {
* 删除(支持批量删除) * 删除(支持批量删除)
*/ */
public R<Boolean> delete(IdRequest request) { public R<Boolean> delete(IdRequest request) {
LoginAccountResponse accountInfo = ThreadLocalCache.getLoginAccountInfo();
request.setCreatedBy(accountInfo.getUserName());
return liveCodeRemote.delete(request); return liveCodeRemote.delete(request);
} }
......
package com.gsc4cloud.gsc.facade.vpcweb.service.livecode;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.facade.vpcweb.convert.LiveCodePageConvert;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.MerchantRefVO;
import com.gsc4cloud.gsc.vpc.api.dto.entitydto.livecode.MerchantRefDTO;
import com.gsc4cloud.gsc.vpc.api.feign.web.livecode.MerchantRefRemote;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**
* 商户引用Service
*
* @author linchong
*/
@Slf4j
@Service
public class MerchantRefService {
@Resource
private MerchantRefRemote merchantRefRemote;
/**
* 获取开通二手车场景的4S店列表
*/
public R<List<MerchantRefVO>> list() {
R<List<MerchantRefDTO>> result = merchantRefRemote.list();
if (result == null) {
return R.failed("响应为空");
}
if (!result.isSuccess()) {
return R.restResult(null, result.getCode(), result.getMsg());
}
List<MerchantRefDTO> data = result.getData();
if (data == null || data.isEmpty()) {
return R.ok(Collections.emptyList());
}
List<MerchantRefVO> voList = data.stream()
.map(this::convertToVO)
.collect(Collectors.toList());
return R.ok(voList);
}
private MerchantRefVO convertToVO(MerchantRefDTO dto) {
MerchantRefVO vo = new MerchantRefVO();
vo.setMainMerchantId(dto.getMainMerchantId());
vo.setMainMerchantName(dto.getMainMerchantName());
return vo;
}
}
package com.gsc4cloud.gsc.facade.vpcweb.service.livecode;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.facade.vpcweb.vo.livecode.PricingStaffVO;
import com.gsc4cloud.gsc.vpc.api.dto.entitydto.livecode.PricingStaffDTO;
import com.gsc4cloud.gsc.vpc.api.feign.web.livecode.PricingStaffRemote;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**
* 定价师Service
*
* @author linchong
*/
@Slf4j
@Service
public class PricingStaffService {
@Resource
private PricingStaffRemote pricingStaffRemote;
/**
* 获取总部定价师列表
*/
public R<List<PricingStaffVO>> list() {
R<List<PricingStaffDTO>> result = pricingStaffRemote.list("总部定价师");
if (result == null) {
return R.failed("响应为空");
}
if (!result.isSuccess()) {
return R.restResult(null, result.getCode(), result.getMsg());
}
List<PricingStaffDTO> data = result.getData();
if (data == null || data.isEmpty()) {
return R.ok(Collections.emptyList());
}
List<PricingStaffVO> voList = data.stream()
.map(this::convertToVO)
.collect(Collectors.toList());
return R.ok(voList);
}
private PricingStaffVO convertToVO(PricingStaffDTO dto) {
PricingStaffVO vo = new PricingStaffVO();
vo.setStaffName(dto.getStaffName());
vo.setStaffPhone(dto.getStaffPhone());
vo.setUuid(dto.getUuid());
return vo;
}
}
...@@ -47,9 +47,6 @@ public class LiveCodePageVO implements Serializable { ...@@ -47,9 +47,6 @@ public class LiveCodePageVO implements Serializable {
@Schema(description = "通用静态活码链接") @Schema(description = "通用静态活码链接")
private String defaultQrCodeUrl; private String defaultQrCodeUrl;
@Schema(description = "状态: 0-禁用, 1-启用")
private Integer status;
@Schema(description = "群数量") @Schema(description = "群数量")
private Integer groupCount; private Integer groupCount;
......
...@@ -48,8 +48,8 @@ public class LiveCodeVO implements Serializable { ...@@ -48,8 +48,8 @@ public class LiveCodeVO implements Serializable {
@Schema(description = "通用静态活码链接") @Schema(description = "通用静态活码链接")
private String defaultQrCodeUrl; private String defaultQrCodeUrl;
@Schema(description = "状态: 0-禁用, 1-启用") @Schema(description = "通用静态活码H5链接")
private Integer status; private String defaultH5Url;
@Schema(description = "创建时间") @Schema(description = "创建时间")
private Date createdDate; private Date createdDate;
...@@ -68,4 +68,10 @@ public class LiveCodeVO implements Serializable { ...@@ -68,4 +68,10 @@ public class LiveCodeVO implements Serializable {
@Schema(description = "群数量") @Schema(description = "群数量")
private Integer groupCount; private Integer groupCount;
@Schema(description = "已接待客户群数量(已占用)")
private Integer occupiedGroupCount;
@Schema(description = "可接待客户群数量(空闲)")
private Integer idleGroupCount;
} }
package com.gsc4cloud.gsc.facade.vpcweb.vo.livecode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
/**
* 商户引用VO(开通二手车场景的4S店)
*
* @author linchong
*/
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Schema(description = "商户引用VO")
public class MerchantRefVO implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "主商户ID")
private Long mainMerchantId;
@Schema(description = "主商户名称")
private String mainMerchantName;
}
package com.gsc4cloud.gsc.facade.vpcweb.vo.livecode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
/**
* 定价师VO
*
* @author linchong
*/
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@Schema(description = "定价师VO")
public class PricingStaffVO implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "员工姓名")
private String staffName;
@Schema(description = "员工手机号")
private String staffPhone;
@Schema(description = "员工UUID")
private String uuid;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!