记得上下班打卡 | git大法好,push需谨慎

Commit 7a1d7f18 authored by 胡佳晨's avatar 胡佳晨

增加 ar字段 ar文件大小

parent e1fc933f
......@@ -8,7 +8,7 @@ import com.liquidnet.service.sweet.param.SweetPerformanceShowParam;
import com.liquidnet.service.sweet.vo.SweetPerformanceShowVo;
public interface ISweetPerformanceService extends IService<SweetPerformanceShow> {
ResponseDto<Boolean> add(String performanceId, String performanceName,String arName, String picOne, String picTwo, String arUrl, String timeStart, String timeEnd);
ResponseDto<Boolean> add(String performanceId, String performanceName,String arName, String picOne, String picTwo, String arUrl, String timeStart, String timeEnd,String fileSize);
ResponseDto<Boolean> change(SweetPerformanceShowParam show);
......
......@@ -38,6 +38,12 @@ public class SweetPerformanceShow implements Serializable,Cloneable{
* AR地址
*/
private String arUrl;
/**
* 文件大小
*/
private String fileSize;
/**
* 离线地址
*/
......
......@@ -34,6 +34,9 @@ public class SweetPerformanceShowParam implements Serializable,Cloneable{
* AR地址
*/
private String arUrl;
private String fileSize;
/**
* 开始时间
*/
......
......@@ -20,7 +20,7 @@ import java.util.List;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetArtistsVo implements Serializable,Cloneable {
public class SweetArtistsVo implements Serializable, Cloneable {
private static final long serialVersionUID = 1L;
......@@ -38,6 +38,8 @@ public class SweetArtistsVo implements Serializable,Cloneable {
*/
private String name;
private String picUrl;
/**
* 拼音
*/
......@@ -66,6 +68,7 @@ public class SweetArtistsVo implements Serializable,Cloneable {
private List<SweetArtistsUrl> sweetArtistsUrl;
private static final SweetArtistsVo obj = new SweetArtistsVo();
public static SweetArtistsVo getNew() {
try {
return (SweetArtistsVo) obj.clone();
......
......@@ -34,6 +34,12 @@ public class SweetPerformanceShowVo implements Serializable, Cloneable {
* AR地址
*/
private String arUrl;
/**
* AR地址
*/
private String fileSize;
/**
* 离线地址
*/
......
......@@ -136,13 +136,13 @@ public class GoblinCouponController {
@ApiOperation("可用券列表")
@ApiResponse(code = 200, message = "接口返回对象参数")
@ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "Number", name = "totalPrice", value = "spuId"),
@ApiImplicitParam(type = "form", required = true, dataType = "Number", name = "totalPrice", value = "应付价格"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "spuId", value = "逗号隔开"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "uid", value = "用户id")
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "uid", value = "用户id")
})
public ResponseDto<List<GoblinUserCouponVo>> useList(@RequestParam("totalPrice") @Valid BigDecimal totalPrice,
@RequestParam("spuId") @Valid String spuId,
@RequestParam(value = "uid", required = false) @Valid String uid) {
@RequestParam(value = "uid", required = false) String uid) {
if (uid == null) {
uid = CurrentUtil.getCurrentUid();
}
......
......@@ -9,6 +9,7 @@ CREATE TABLE `sweet_performance_show`
`pic_one` varchar(255) DEFAULT '' COMMENT '图片1',
`pic_two` varchar(255) DEFAULT '' COMMENT '图片2',
`ar_url` varchar(255) DEFAULT '' COMMENT 'AR地址',
`file_size` varchar(255) DEFAULT '' COMMENT 'AR大小',
`offline_url` varchar(255) DEFAULT '' COMMENT '离线地址',
`time_start` datetime DEFAULT NULL COMMENT '开始时间',
`time_end` datetime DEFAULT NULL COMMENT '结束时间',
......
......@@ -62,7 +62,8 @@ public class SweetPerformanceController {
@ApiImplicitParam(type = "query", dataType = "String", name = "arUrl", value = "AR地址", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "timeStart", value = "开始时间", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "timeEnd", value = "结束时间", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "arName", value = "ar名称", required = true)
@ApiImplicitParam(type = "query", dataType = "String", name = "arName", value = "ar名称", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "fileSize", value = "ar离线文件大小", required = true)
})
public ResponseDto<Boolean> add(@RequestParam() String performanceId,
@RequestParam() String performanceName,
......@@ -71,8 +72,9 @@ public class SweetPerformanceController {
@RequestParam() String arUrl,
@RequestParam() String timeStart,
@RequestParam() String timeEnd,
@RequestParam() String arName) {
return sweetPerformanceService.add(performanceId, performanceName, arName, picOne, picTwo, arUrl, timeStart, timeEnd);
@RequestParam() String arName,
@RequestParam() String fileSize) {
return sweetPerformanceService.add(performanceId, performanceName, arName, picOne, picTwo, arUrl, timeStart, timeEnd, fileSize);
}
@PostMapping("change")
......
......@@ -49,7 +49,7 @@ public class SweetPerformanceServiceImpl extends ServiceImpl<SweetPerformanceMap
Environment environment;
@Override
public ResponseDto<Boolean> add(String performanceId, String performanceName, String arName, String picOne, String picTwo, String arUrl, String timeStart, String timeEnd) {
public ResponseDto<Boolean> add(String performanceId, String performanceName, String arName, String picOne, String picTwo, String arUrl, String timeStart, String timeEnd,String fileSize) {
try {
String offlineUrl = goblinUrl + "/goblin/inner/ar/data"; //离线地址
SweetPerformanceShow show = SweetPerformanceShow.getNew();
......@@ -61,6 +61,7 @@ public class SweetPerformanceServiceImpl extends ServiceImpl<SweetPerformanceMap
show.setArUrl(arUrl);
show.setArName(arName);
show.setOfflineUrl(offlineUrl);
show.setFileSize(fileSize);
show.setTimeStart(LocalDateTime.parse(timeStart,DTF_YMD_HMS));
show.setTimeEnd(LocalDateTime.parse(timeEnd,DTF_YMD_HMS));
//redis
......@@ -92,6 +93,7 @@ public class SweetPerformanceServiceImpl extends ServiceImpl<SweetPerformanceMap
data.setTimeEnd(LocalDateTime.parse(show.getTimeEnd(), DTF_YMD_HMS));
data.setStatus(performanceARList.get(i).getStatus());
data.setOfflineUrl(performanceARList.get(i).getOfflineUrl());
data.setFileSize(show.getFileSize());
performanceARList.set(i, data);
redisUtils.setPerformanceAR(performanceARList);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment