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

Commit 2b9ad0dc authored by 胡佳晨's avatar 胡佳晨

提交代码

parent 50415a27
...@@ -89,6 +89,15 @@ public class PerformanceParam implements Serializable { ...@@ -89,6 +89,15 @@ public class PerformanceParam implements Serializable {
@ApiModelProperty(value = "巡演id", example = "0",hidden = true) @ApiModelProperty(value = "巡演id", example = "0",hidden = true)
private String roadShowId; private String roadShowId;
@ApiModelProperty(value = "拒绝理由",hidden = true)
private String rejectTxt;
@ApiModelProperty(value = "审核状态", hidden = true)
private String auditStatus;
@ApiModelProperty(value = "审核状态", hidden = true)
private Integer isShow;
@ApiModelProperty(value = "搭售id", example = "0",hidden = true) @ApiModelProperty(value = "搭售id", example = "0",hidden = true)
private String projectId; private String projectId;
......
...@@ -17,6 +17,8 @@ public class PerformanceIgnoreVo { ...@@ -17,6 +17,8 @@ public class PerformanceIgnoreVo {
private String performancesId; private String performancesId;
@ApiModelProperty(value = "演出名称") @ApiModelProperty(value = "演出名称")
private String title; private String title;
@ApiModelProperty(value = "演出图片")
private String imgPoster;
@ApiModelProperty(value = "演出类型 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演") @ApiModelProperty(value = "演出类型 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演")
private int type; private int type;
@ApiModelProperty(value = "演出开始时间") @ApiModelProperty(value = "演出开始时间")
...@@ -29,20 +31,23 @@ public class PerformanceIgnoreVo { ...@@ -29,20 +31,23 @@ public class PerformanceIgnoreVo {
private String price; private String price;
@ApiModelProperty(value = "开售时间") @ApiModelProperty(value = "开售时间")
private String sellTime; private String sellTime;
@ApiModelProperty(value = "城市id") @ApiModelProperty(value = "城市id")
private String cityId; private Integer cityId;
@ApiModelProperty(value = "城市名称")
private String cityName;
@ApiModelProperty(value = "场地id") @ApiModelProperty(value = "场地id")
private String fieldId; private String fieldId;
@ApiModelProperty(value = "场地名称") @ApiModelProperty(value = "场地名称")
private String fieldName; private String fieldName;
@ApiModelProperty(value = "经度")
private String longitude;
@ApiModelProperty(value = "纬度")
private String latitude;
@ApiModelProperty(value = "搭售id") @ApiModelProperty(value = "搭售id")
private String projectId; private String projectId;
@ApiModelProperty(value = "巡演id") @ApiModelProperty(value = "巡演id")
private String roadShowId; private String roadShowId;
//@ApiModelProperty(value = "巡演相关")
// private String roadShow;
// OSS // OSS
// @ApiModelProperty(value = "演出详情") // @ApiModelProperty(value = "演出详情")
// private String details; // private String details;
...@@ -50,6 +55,8 @@ public class PerformanceIgnoreVo { ...@@ -50,6 +55,8 @@ public class PerformanceIgnoreVo {
// @ApiModelProperty(value = "购票须知") // @ApiModelProperty(value = "购票须知")
// private String noticeImage; // private String noticeImage;
@ApiModelProperty(value = "推荐顺序 0为不推荐")
private int isRecommend;
@ApiModelProperty(value = "状态") @ApiModelProperty(value = "状态")
private int appStatus; private int appStatus;
@ApiModelProperty(value = "是否可买") @ApiModelProperty(value = "是否可买")
...@@ -58,42 +65,19 @@ public class PerformanceIgnoreVo { ...@@ -58,42 +65,19 @@ public class PerformanceIgnoreVo {
private int isMember; private int isMember;
@ApiModelProperty(value = "是否开启缺票登记") @ApiModelProperty(value = "是否开启缺票登记")
private int isLackRegister; private int isLackRegister;
@ApiModelProperty(value = "是否实名")
private int isTrueName;
@ApiModelProperty(value = "限购张数")
private int limitCount;
@ApiModelProperty(value = "会员限购张数")
private Integer limitCountMember;
@ApiModelProperty(value = "是否专属") @ApiModelProperty(value = "是否专属")
private int isExclusive; private int isExclusive;
@ApiModelProperty(value = "是否优惠")
private int isDiscount;
@ApiModelProperty(value = "是否提前")
private int isAdvance;
@ApiModelProperty(value = "文案") @ApiModelProperty(value = "文案")
private String message; private String message;
public void setPerformance(KylinPerformances performance) {
this.performancesId = performance.getPerformancesId();
this.title = performance.getTitle();
this.timeStart = performance.getTimeStart().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
this.timeEnd = performance.getTimeEnd().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
}
public void setTimePriceVipAndLack(int isLackRegister, int isMember, int isExclusive, BigDecimal price, LocalDateTime stopSellTime, LocalDateTime sellTime) {
this.isLackRegister = isLackRegister;
this.isMember = isMember;
this.isExclusive = isExclusive;
this.price = price + "起";
this.stopSellTime = stopSellTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
this.sellTime = sellTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
this.appStatus = 9;
this.message = "";
}
public void setPerformanceStatus(KylinPerformanceStatus performanceStatus) {
this.statusSell = performanceStatus.getStatusSell();
}
//TODO 巡演 搭售 场地
public void setPerformanceRelations(KylinPerformanceRelations performanceRelations) {
this.fieldId = "";
this.fieldName = "";
this.cityId = "";
this.projectId = "";
this.roadShowId = "";
}
} }
...@@ -119,12 +119,12 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma ...@@ -119,12 +119,12 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
map.put("status", status); map.put("status", status);
map.put("auditStatus", auditStatus); map.put("auditStatus", auditStatus);
map.put("updatedAt", updatedAt.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); map.put("updatedAt", updatedAt.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
// BasicDBObject objectPerformanceVo = new BasicDBObject("$set", mongoConverter.convertToMongoType(map)); BasicDBObject objectPerformanceVo = new BasicDBObject("$set", mongoConverter.convertToMongoType(map));
// Document doc = mongoTemplate.getCollection(PerformanceMisVo.class.getSimpleName()).findOneAndUpdate( Document doc = mongoTemplate.getCollection(PerformanceParam.class.getSimpleName()).findOneAndUpdate(
// Query.query(Criteria.where("performancesId").is(performancesId)).getQueryObject(), Query.query(Criteria.where("performancesId").is(performancesId)).getQueryObject(),
// objectPerformanceVo, objectPerformanceVo,
// new FindOneAndUpdateOptions().returnDocument(ReturnDocument.AFTER) new FindOneAndUpdateOptions().returnDocument(ReturnDocument.AFTER)
// ); );
KylinPerformanceStatus sqlStatus = performanceStatusMapper.selectOne(new UpdateWrapper<KylinPerformanceStatus>().eq("performance_id", performancesId)); KylinPerformanceStatus sqlStatus = performanceStatusMapper.selectOne(new UpdateWrapper<KylinPerformanceStatus>().eq("performance_id", performancesId));
if (sqlStatus.getStatus() == 1) { if (sqlStatus.getStatus() == 1) {
...@@ -176,7 +176,7 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma ...@@ -176,7 +176,7 @@ public class KylinPerformancesAdminServiceImpl extends ServiceImpl<KylinPerforma
map.put("status", status); map.put("status", status);
map.put("updatedAt", updatedAt.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); map.put("updatedAt", updatedAt.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
BasicDBObject object = new BasicDBObject("$set", mongoConverter.convertToMongoType(map)); BasicDBObject object = new BasicDBObject("$set", mongoConverter.convertToMongoType(map));
mongoTemplate.getCollection(PerformancePartnerVo.class.getSimpleName()).updateOne( mongoTemplate.getCollection(PerformanceParam.class.getSimpleName()).updateOne(
Query.query(Criteria.where("performancesId").is(performancesId)).getQueryObject(), Query.query(Criteria.where("performancesId").is(performancesId)).getQueryObject(),
object object
); );
......
...@@ -140,6 +140,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor ...@@ -140,6 +140,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
performanceParam.setStatusSell(1); performanceParam.setStatusSell(1);
performanceParam.setRoadShowId("0"); performanceParam.setRoadShowId("0");
performanceParam.setProjectId("0"); performanceParam.setProjectId("0");
performanceParam.setIsShow(1);
performanceParam.setFieldName((String)redisUtil.hget(KylinRedisConst.FIELDS + ":" + performanceParam.getFieldId(), "name")); performanceParam.setFieldName((String)redisUtil.hget(KylinRedisConst.FIELDS + ":" + performanceParam.getFieldId(), "name"));
...@@ -588,8 +589,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor ...@@ -588,8 +589,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
ticketInventoryDto.setSurplusGeneral(ticketStatus.getTotalGeneral()); ticketInventoryDto.setSurplusGeneral(ticketStatus.getTotalGeneral());
ticketInventoryDto.setTicketsId(ticketVo.getTicketsId()); ticketInventoryDto.setTicketsId(ticketVo.getTicketsId());
redisUtil.hset(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_GENERAL, ticketInventoryDto.getSurplusGeneral()); redisUtil.hset(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_GENERAL, ticketInventoryDto.getSurplusGeneral());
redisUtil.hset(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_GENERAL, ticketInventoryDto.getSurplusGeneral()); redisUtil.hset(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_EXCHANGE, ticketInventoryDto.getSurplusExchange());
} else { } else {
int surplusGeneral = (int) redisUtil.hget(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_GENERAL); int surplusGeneral = (int) redisUtil.hget(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_GENERAL);
int surplusExchange = (int) redisUtil.hget(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_EXCHANGE); int surplusExchange = (int) redisUtil.hget(KylinRedisConst.PERFORMANCES_INVENTORY + ticketVo.getTicketsId(), KylinRedisConst.SURPLUS_EXCHANGE);
......
...@@ -137,7 +137,7 @@ public class KylinTicketTimesPartnerServiceImpl extends ServiceImpl<KylinTicketT ...@@ -137,7 +137,7 @@ public class KylinTicketTimesPartnerServiceImpl extends ServiceImpl<KylinTicketT
TicketTimesPartnerVo data = mongoTemplate.insert( TicketTimesPartnerVo data = mongoTemplate.insert(
ticketTimesPartnerVo, TicketTimesPartnerVo.class.getSimpleName() ticketTimesPartnerVo, TicketTimesPartnerVo.class.getSimpleName()
); );
return null; return ticketTimesPartnerVo;
} }
@Override @Override
......
...@@ -73,12 +73,11 @@ public class KylinTicketsPartnerServiceImpl extends ServiceImpl<KylinTicketsMapp ...@@ -73,12 +73,11 @@ public class KylinTicketsPartnerServiceImpl extends ServiceImpl<KylinTicketsMapp
public TicketPartnerVo createTicketSummary(TicketCreateParam ticketCreateParam) { public TicketPartnerVo createTicketSummary(TicketCreateParam ticketCreateParam) {
TicketPartnerVo ticketPartnerVo = null; TicketPartnerVo ticketPartnerVo = null;
//获取演出状态 //获取演出状态
KylinTicketTimeRelation timesRelations = ticketTimeRelationMapper.selectOne( TicketTimesPartnerVo timesPartnerVo = mongoTemplate.findOne(Query.query(Criteria.where("ticketTimesId").is(ticketCreateParam.getTimesId())),TicketTimesPartnerVo.class,TicketTimesPartnerVo.class.getSimpleName());
new UpdateWrapper<KylinTicketTimeRelation>().eq("times_id", ticketCreateParam.getTimesId()));
if (null != timesRelations) { if (null != timesPartnerVo) {
KylinPerformanceStatus performanceStatus = performanceStatusMapper.selectOne( KylinPerformanceStatus performanceStatus = performanceStatusMapper.selectOne(
new UpdateWrapper<KylinPerformanceStatus>().eq("performance_id", timesRelations.getPerformanceId())); new UpdateWrapper<KylinPerformanceStatus>().eq("performance_id", timesPartnerVo.getPerformancesId()));
if (null == performanceStatus) { if (null == performanceStatus) {
ticketPartnerVo = createTicket(ticketCreateParam); ticketPartnerVo = createTicket(ticketCreateParam);
log.info(" PERFORMANCE 票 创建"); log.info(" PERFORMANCE 票 创建");
...@@ -200,7 +199,6 @@ public class KylinTicketsPartnerServiceImpl extends ServiceImpl<KylinTicketsMapp ...@@ -200,7 +199,6 @@ public class KylinTicketsPartnerServiceImpl extends ServiceImpl<KylinTicketsMapp
new FindOneAndUpdateOptions().returnDocument(ReturnDocument.AFTER) new FindOneAndUpdateOptions().returnDocument(ReturnDocument.AFTER)
); );
// redis 操作
TicketPartnerVo ticketPartnerVoData = JsonUtils.fromJson(doc.toJson(), TicketPartnerVo.class); TicketPartnerVo ticketPartnerVoData = JsonUtils.fromJson(doc.toJson(), TicketPartnerVo.class);
return ticketPartnerVoData; return ticketPartnerVoData;
} catch (Exception e) { } catch (Exception e) {
......
...@@ -251,14 +251,16 @@ public class PerformanceVoTask { ...@@ -251,14 +251,16 @@ public class PerformanceVoTask {
performanceMisVo.setPrice(floatList.get(0) + "起"); performanceMisVo.setPrice(floatList.get(0) + "起");
performanceMisVo.setStopSellTime(StringList.get(0)); performanceMisVo.setStopSellTime(StringList.get(0));
performanceMisVo.setTicketTimes(ticketTimesTicketCreatePartnerVoList); performanceMisVo.setTicketTimes(ticketTimesTicketCreatePartnerVoList);
performanceMisVo.setStatus(1);
performanceMisVo.setStatusSell(1);
performanceMisVo.setRejectTxt("");
performanceMisVo.setIsShow(1); // if (performanceMisVo.getStatus() != 0) {
performanceMisVo.setIsDistribution(0); // performanceMisVo.setStatus(null);
performanceMisVo.setSyncAgent(0); // performanceMisVo.setStatusSell(null);
performanceMisVo.setAuditStatus(0); // performanceMisVo.setRejectTxt("");
// performanceMisVo.setIsShow(1);
performanceMisVo.setIsDistribution(0);
performanceMisVo.setSyncAgent(0);
performanceMisVo.setAuditStatus(0);
// }
// boolean exists = mongoTemplate.exists(Query.query(Criteria.where("performancesId").is(performancesId)), PerformanceMisVo.class, PerformanceMisVo.class.getSimpleName()); // boolean exists = mongoTemplate.exists(Query.query(Criteria.where("performancesId").is(performancesId)), PerformanceMisVo.class, PerformanceMisVo.class.getSimpleName());
// //
...@@ -419,7 +421,7 @@ public class PerformanceVoTask { ...@@ -419,7 +421,7 @@ public class PerformanceVoTask {
tickets.setPriceDiscount(new BigDecimal("0.00")); tickets.setPriceDiscount(new BigDecimal("0.00"));
tickets.setTimeStart(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getTimeStart()))); tickets.setTimeStart(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getTimeStart())));
tickets.setTimeEnd(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getTimeEnd()))); tickets.setTimeEnd(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getTimeEnd())));
if(ticketItem.getIsExpress()==1) { if (ticketItem.getIsExpress() == 1) {
tickets.setTimeEndExpress(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getTimeEndExpress()))); tickets.setTimeEndExpress(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getTimeEndExpress())));
} }
tickets.setUseStart(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketTimeItem.getUseStart()))); tickets.setUseStart(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketTimeItem.getUseStart())));
...@@ -436,7 +438,7 @@ public class PerformanceVoTask { ...@@ -436,7 +438,7 @@ public class PerformanceVoTask {
ticketStatus.setIsTrueName(performanceStatus.getIsTrueName()); ticketStatus.setIsTrueName(performanceStatus.getIsTrueName());
ticketStatus.setMemberLimitCount(1); ticketStatus.setMemberLimitCount(1);
ticketStatus.setStatusExchange(7); ticketStatus.setStatusExchange(7);
if(ticketItem.getIsShowCode() == 1){ if (ticketItem.getIsShowCode() == 1) {
ticketStatus.setQrCodeShowTime(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getQrCodeShowTime()))); ticketStatus.setQrCodeShowTime(DateUtil.asLocalDateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(ticketItem.getQrCodeShowTime())));
} }
......
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