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

Commit 56632e63 authored by 胡佳晨's avatar 胡佳晨

修改 tfc

parent a9f4d981
......@@ -3,10 +3,8 @@ package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistListMDSKDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistListTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualArtistsMdsk;
import com.liquidnet.service.sweet.entity.SweetManualArtistsTFC;
import com.liquidnet.service.sweet.entity.SweetManualArtistsTfc;
/**
* <p>
......@@ -16,7 +14,7 @@ import com.liquidnet.service.sweet.entity.SweetManualArtistsTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetManualArtistsTFCService extends IService<SweetManualArtistsTFC> {
public interface ISweetManualArtistsTFCService extends IService<SweetManualArtistsTfc> {
ResponseDto<PageInfo<SweetManualArtistListTFCDto>> getList(Integer page, Integer size, String manualId);
ResponseDto<Boolean> add(String manualId,String artistId, String stageId,String performanceStart,String performanceEnd,String signatureStart,String signatureEnd);
......
......@@ -3,8 +3,7 @@ package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTfc;
/**
* <p>
......@@ -14,12 +13,12 @@ import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetManualNotifyTFCService extends IService<SweetManualNotifyTFC> {
ResponseDto<PageInfo<SweetManualNotifyTFC>> getList(Integer page, Integer size, String title, String manualId);
public interface ISweetManualNotifyTFCService extends IService<SweetManualNotifyTfc> {
ResponseDto<PageInfo<SweetManualNotifyTfc>> getList(Integer page, Integer size, String title, String manualId);
ResponseDto<Boolean> add(String manualId,String title, String content);
ResponseDto<SweetManualNotifyTFC> details(String manualId);
ResponseDto<SweetManualNotifyTfc> details(String manualId);
ResponseDto<Boolean> change(String manualId,String manualNotifyId, String title, String content);
......
......@@ -2,8 +2,7 @@ package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualShopMdsk;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
import java.util.List;
......@@ -15,10 +14,10 @@ import java.util.List;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetManualShopTFCService extends IService<SweetManualShopTFC> {
ResponseDto<List<SweetManualShopTFC>> getList(String manualId, Integer type);
public interface ISweetManualShopTFCService extends IService<SweetManualShopTfc> {
ResponseDto<List<SweetManualShopTfc>> getList(String manualId, Integer type);
ResponseDto<SweetManualShopTFC> details(String manualShopId);
ResponseDto<SweetManualShopTfc> details(String manualShopId);
ResponseDto<Boolean> add(String manualId,String title,String picUrl,String describe,Integer type,Integer isRecommend,Integer sort);
......
......@@ -2,8 +2,7 @@ package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualSortMdsk;
import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
import com.liquidnet.service.sweet.entity.SweetManualSortTfc;
/**
* <p>
......@@ -13,8 +12,8 @@ import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetManualSortTFCService extends IService<SweetManualSortTFC> {
ResponseDto<SweetManualSortTFC> get(String manualId);
public interface ISweetManualSortTFCService extends IService<SweetManualSortTfc> {
ResponseDto<SweetManualSortTfc> get(String manualId);
ResponseDto<Boolean> add(String manualId,String content);
}
......@@ -3,10 +3,8 @@ package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.dto.SweetManualMDSKDto;
import com.liquidnet.service.sweet.dto.SweetManualTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualMdsk;
import com.liquidnet.service.sweet.entity.SweetManualTFC;
import com.liquidnet.service.sweet.entity.SweetManualTfc;
/**
* <p>
......@@ -16,7 +14,7 @@ import com.liquidnet.service.sweet.entity.SweetManualTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetManualTFCService extends IService<SweetManualTFC> {
public interface ISweetManualTFCService extends IService<SweetManualTfc> {
ResponseDto<PageInfo<SweetManualTFCDto>> getManualList(int page, int size, String name);
......
......@@ -2,8 +2,7 @@ package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetRichtextMdsk;
import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
import com.liquidnet.service.sweet.entity.SweetRichtextTfc;
/**
* <p>
......@@ -13,8 +12,8 @@ import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetRichtextTFCService extends IService<SweetRichtextTFC> {
ResponseDto<SweetRichtextTFC> get(String manualId, Integer type);
public interface ISweetRichtextTFCService extends IService<SweetRichtextTfc> {
ResponseDto<SweetRichtextTfc> get(String manualId, Integer type);
ResponseDto<Boolean> add(String manualId,String details, String local, String pirUrl, Integer type);
......
package com.liquidnet.service.sweet.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liquidnet.service.sweet.entity.SweetUserRelationMdsk;
import com.liquidnet.service.sweet.entity.SweetUserRelationTFC;
import com.liquidnet.service.sweet.entity.SweetUserRelationTfc;
/**
* <p>
......@@ -12,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetUserRelationTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface ISweetUserRelationTFCService extends IService<SweetUserRelationTFC> {
public interface ISweetUserRelationTFCService extends IService<SweetUserRelationTfc> {
}
package com.liquidnet.service.sweet.vo;
import com.liquidnet.service.sweet.entity.SweetManualShopMdsk;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -13,11 +12,11 @@ import java.util.List;
@ApiModel
public class SweetManualShopTFCAllVo implements Serializable ,Cloneable {
@ApiModelProperty("推荐")
private List<SweetManualShopTFC> recommend;
private List<SweetManualShopTfc> recommend;
@ApiModelProperty("吃喝")
private List<SweetManualShopTFC> eat;
private List<SweetManualShopTfc> eat;
@ApiModelProperty("玩乐")
private List<SweetManualShopTFC> play;
private List<SweetManualShopTfc> play;
private static final SweetManualShopTFCAllVo obj = new SweetManualShopTFCAllVo();
public static SweetManualShopTFCAllVo getNew() {
......
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetManualArtistsTFC implements Serializable ,Cloneable{
public class SweetManualArtistsTfc implements Serializable ,Cloneable{
private static final long serialVersionUID = 1L;
......@@ -80,12 +80,12 @@ public class SweetManualArtistsTFC implements Serializable ,Cloneable{
*/
private LocalDateTime updatedAt;
private static final SweetManualArtistsTFC obj = new SweetManualArtistsTFC();
public static SweetManualArtistsTFC getNew() {
private static final SweetManualArtistsTfc obj = new SweetManualArtistsTfc();
public static SweetManualArtistsTfc getNew() {
try {
return (SweetManualArtistsTFC) obj.clone();
return (SweetManualArtistsTfc) obj.clone();
} catch (CloneNotSupportedException e) {
return new SweetManualArtistsTFC();
return new SweetManualArtistsTfc();
}
}
}
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetManualNotifyTFC implements Serializable ,Cloneable{
public class SweetManualNotifyTfc implements Serializable ,Cloneable{
private static final long serialVersionUID = 1L;
......@@ -60,12 +60,12 @@ public class SweetManualNotifyTFC implements Serializable ,Cloneable{
*/
private LocalDateTime updatedAt;
private static final SweetManualNotifyTFC obj = new SweetManualNotifyTFC();
public static SweetManualNotifyTFC getNew() {
private static final SweetManualNotifyTfc obj = new SweetManualNotifyTfc();
public static SweetManualNotifyTfc getNew() {
try {
return (SweetManualNotifyTFC) obj.clone();
return (SweetManualNotifyTfc) obj.clone();
} catch (CloneNotSupportedException e) {
return new SweetManualNotifyTFC();
return new SweetManualNotifyTfc();
}
}
}
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetManualShopTFC implements Serializable,Cloneable {
public class SweetManualShopTfc implements Serializable,Cloneable {
private static final long serialVersionUID = 1L;
......@@ -80,12 +80,12 @@ public class SweetManualShopTFC implements Serializable,Cloneable {
*/
private LocalDateTime updatedAt;
private static final SweetManualShopTFC obj = new SweetManualShopTFC();
public static SweetManualShopTFC getNew() {
private static final SweetManualShopTfc obj = new SweetManualShopTfc();
public static SweetManualShopTfc getNew() {
try {
return (SweetManualShopTFC) obj.clone();
return (SweetManualShopTfc) obj.clone();
} catch (CloneNotSupportedException e) {
return new SweetManualShopTFC();
return new SweetManualShopTfc();
}
}
}
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetManualSortTFC implements Serializable,Cloneable {
public class SweetManualSortTfc implements Serializable,Cloneable {
private static final long serialVersionUID = 1L;
......@@ -45,12 +45,12 @@ public class SweetManualSortTFC implements Serializable,Cloneable {
*/
private LocalDateTime updatedAt;
private static final SweetManualSortTFC obj = new SweetManualSortTFC();
public static SweetManualSortTFC getNew() {
private static final SweetManualSortTfc obj = new SweetManualSortTfc();
public static SweetManualSortTfc getNew() {
try {
return (SweetManualSortTFC) obj.clone();
return (SweetManualSortTfc) obj.clone();
} catch (CloneNotSupportedException e) {
return new SweetManualSortTFC();
return new SweetManualSortTfc();
}
}
}
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetManualTFC implements Serializable,Cloneable {
public class SweetManualTfc implements Serializable,Cloneable {
private static final long serialVersionUID = 1L;
......@@ -55,12 +55,12 @@ public class SweetManualTFC implements Serializable,Cloneable {
*/
private LocalDateTime updatedAt;
private static final SweetManualTFC obj = new SweetManualTFC();
public static SweetManualTFC getNew() {
private static final SweetManualTfc obj = new SweetManualTfc();
public static SweetManualTfc getNew() {
try {
return (SweetManualTFC) obj.clone();
return (SweetManualTfc) obj.clone();
} catch (CloneNotSupportedException e) {
return new SweetManualTFC();
return new SweetManualTfc();
}
}
}
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetRichtextTFC implements Serializable ,Cloneable{
public class SweetRichtextTfc implements Serializable ,Cloneable{
private static final long serialVersionUID = 1L;
......@@ -70,12 +70,12 @@ public class SweetRichtextTFC implements Serializable ,Cloneable{
*/
private LocalDateTime updatedAt;
private static final SweetRichtextTFC obj = new SweetRichtextTFC();
public static SweetRichtextTFC getNew() {
private static final SweetRichtextTfc obj = new SweetRichtextTfc();
public static SweetRichtextTfc getNew() {
try {
return (SweetRichtextTFC) obj.clone();
return (SweetRichtextTfc) obj.clone();
} catch (CloneNotSupportedException e) {
return new SweetRichtextTFC();
return new SweetRichtextTfc();
}
}
}
......@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class SweetUserRelationTFC implements Serializable {
public class SweetUserRelationTfc implements Serializable {
private static final long serialVersionUID = 1L;
......
......@@ -3,7 +3,7 @@ package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.dto.SweetManualArtistListTFCDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistStageListTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualArtistsTFC;
import com.liquidnet.service.sweet.entity.SweetManualArtistsTfc;
import java.util.List;
import java.util.Map;
......@@ -16,7 +16,7 @@ import java.util.Map;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetManualArtistsTFCMapper extends BaseMapper<SweetManualArtistsTFC> {
public interface SweetManualArtistsTfcMapper extends BaseMapper<SweetManualArtistsTfc> {
List<SweetManualArtistListTFCDto> getManualList(Map<String, Object> map);
......
package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.entity.SweetManualNotifyMdsk;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTfc;
/**
* <p>
......@@ -12,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetManualNotifyTFCMapper extends BaseMapper<SweetManualNotifyTFC> {
public interface SweetManualNotifyTfcMapper extends BaseMapper<SweetManualNotifyTfc> {
}
package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.entity.SweetManualShopMdsk;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
/**
* <p>
......@@ -12,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetManualShopTFCMapper extends BaseMapper<SweetManualShopTFC> {
public interface SweetManualShopTfcMapper extends BaseMapper<SweetManualShopTfc> {
}
package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.entity.SweetManualSortMdsk;
import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
import com.liquidnet.service.sweet.entity.SweetManualSortTfc;
/**
* <p>
......@@ -12,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetManualSortTFCMapper extends BaseMapper<SweetManualSortTFC> {
public interface SweetManualSortTfcMapper extends BaseMapper<SweetManualSortTfc> {
}
package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.dto.SweetManualAppletMDSKDto;
import com.liquidnet.service.sweet.dto.SweetManualAppletTFCDto;
import com.liquidnet.service.sweet.dto.SweetManualMDSKDto;
import com.liquidnet.service.sweet.dto.SweetManualTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualMdsk;
import com.liquidnet.service.sweet.entity.SweetManualTFC;
import com.liquidnet.service.sweet.entity.SweetManualTfc;
import java.util.List;
import java.util.Map;
......@@ -19,7 +16,7 @@ import java.util.Map;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetManualTFCMapper extends BaseMapper<SweetManualTFC> {
public interface SweetManualTfcMapper extends BaseMapper<SweetManualTfc> {
List<SweetManualTFCDto> getManualList(Map<String,Object> map);
......
package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.entity.SweetRichtextMdsk;
import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
import com.liquidnet.service.sweet.entity.SweetRichtextTfc;
/**
* <p>
......@@ -12,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetRichtextTFCMapper extends BaseMapper<SweetRichtextTFC> {
public interface SweetRichtextTfcMapper extends BaseMapper<SweetRichtextTfc> {
}
package com.liquidnet.service.sweet.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liquidnet.service.sweet.entity.SweetUserRelationMdsk;
import com.liquidnet.service.sweet.entity.SweetUserRelationTFC;
import com.liquidnet.service.sweet.entity.SweetUserRelationTfc;
/**
* <p>
......@@ -12,6 +11,6 @@ import com.liquidnet.service.sweet.entity.SweetUserRelationTFC;
* @author liquidnet
* @since 2021-08-09
*/
public interface SweetUserRelationTFCMapper extends BaseMapper<SweetUserRelationTFC> {
public interface SweetUserRelationTfcMapper extends BaseMapper<SweetUserRelationTfc> {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.sweet.mapper.SweetManualArtistsTFCMapper">
<mapper namespace="com.liquidnet.service.sweet.mapper.SweetManualArtistsTfcMapper">
<resultMap id="getManualListResult" type="com.liquidnet.service.sweet.dto.SweetManualArtistListTFCDto">
<result column="manual_relation_id" property="manualRelationId"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.sweet.mapper.SweetManualTFCMapper">
<mapper namespace="com.liquidnet.service.sweet.mapper.SweetManualTfcMapper">
<resultMap id="partnerPerformanceListResult" type="com.liquidnet.service.sweet.dto.SweetManualTFCDto">
<result column="manual_id" property="manualId"/>
......
......@@ -57,7 +57,7 @@ public class SweetAppletTFCController {
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "manualId", value = "电子手册id", required = true),
})
public ResponseDto<List<SweetManualNotifyTFC>> notify(@RequestParam() String manualId) {
public ResponseDto<List<SweetManualNotifyTfc>> notify(@RequestParam() String manualId) {
return ResponseDto.success(redisDataUtils.getNotifyRedisData(manualId));
}
......@@ -182,7 +182,7 @@ public class SweetAppletTFCController {
@ApiImplicitParam(type = "query", dataType = "String", name = "manualId", value = "电子手册id", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "type", value = "类型 (1签售时间 2现场地图 3官方大巴 4公共交通 5自驾导航坐标 6官方支持 7观众须知 8防疫指南 9观演攻略)", required = true),
})
public ResponseDto<SweetRichtextTFC> richText(@RequestParam() String manualId,
public ResponseDto<SweetRichtextTfc> richText(@RequestParam() String manualId,
@RequestParam() String type) {
return ResponseDto.success(redisDataUtils.getRichTextRedisData(manualId, type));
}
......@@ -296,14 +296,14 @@ public class SweetAppletTFCController {
@ApiImplicitParam(type = "query", dataType = "String", name = "artistsId", value = "艺人id", required = true)
})
public ResponseDto<SweetManualShopTFCAllVo> manualShop(@RequestParam String manualId) {
List<SweetManualShopTFC> shopList = redisDataUtils.getManualShopRedisData(manualId);
List<SweetManualShopTfc> shopList = redisDataUtils.getManualShopRedisData(manualId);
List<SweetManualShopTFC> recommend = ObjectUtil.getSweetManualShopTFCList();
List<SweetManualShopTFC> eat = ObjectUtil.getSweetManualShopTFCList();
List<SweetManualShopTFC> play = ObjectUtil.getSweetManualShopTFCList();
List<SweetManualShopTfc> recommend = ObjectUtil.getSweetManualShopTFCList();
List<SweetManualShopTfc> eat = ObjectUtil.getSweetManualShopTFCList();
List<SweetManualShopTfc> play = ObjectUtil.getSweetManualShopTFCList();
SweetManualShopTFCAllVo vo = SweetManualShopTFCAllVo.getNew();
for (SweetManualShopTFC item : shopList) {
for (SweetManualShopTfc item : shopList) {
if (item.getIsRecommend().equals(1)) {
recommend.add(item);
}
......
......@@ -3,7 +3,7 @@ package com.liquidnet.service.sweet.controller;
import com.github.pagehelper.PageInfo;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTfc;
import com.liquidnet.service.sweet.service.ISweetManualNotifyTFCService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -36,7 +36,7 @@ public class SweetManualNotifyTFCController {
@ApiImplicitParam(type = "query", dataType = "String", name = "name", value = "通知标题 不查询从传递null", required = false),
@ApiImplicitParam(type = "query", dataType = "String", name = "manualId", value = "手册id", required = true),
})
public ResponseDto<PageInfo<SweetManualNotifyTFC>> getList(@RequestParam() Integer page,
public ResponseDto<PageInfo<SweetManualNotifyTfc>> getList(@RequestParam() Integer page,
@RequestParam() Integer size,
@RequestParam( required = false) String name,
@RequestParam() String manualId) {
......@@ -61,7 +61,7 @@ public class SweetManualNotifyTFCController {
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "manualNotifyId", value = "通知id", required = true),
})
public ResponseDto<SweetManualNotifyTFC> detail(@RequestParam() String manualNotifyId) {
public ResponseDto<SweetManualNotifyTfc> detail(@RequestParam() String manualNotifyId) {
return sweetManualNotifyTFCService.details(manualNotifyId);
}
......
......@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.controller;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
import com.liquidnet.service.sweet.service.ISweetManualShopTFCService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -35,7 +35,7 @@ public class SweetManualShopTFCController {
@ApiImplicitParam(type = "query", dataType = "String", name = "manualId", value = "手册id", required = true),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "类型 1吃喝 2玩乐", required = true),
})
public ResponseDto<List<SweetManualShopTFC>> getList(@RequestParam String manualId,
public ResponseDto<List<SweetManualShopTfc>> getList(@RequestParam String manualId,
@RequestParam Integer type) {
return sweetManualShopTFCService.getList(manualId, type);
}
......@@ -45,7 +45,7 @@ public class SweetManualShopTFCController {
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "manualShopId", value = "商铺id", required = true),
})
public ResponseDto<SweetManualShopTFC> details(@RequestParam String manualShopId) {
public ResponseDto<SweetManualShopTfc> details(@RequestParam String manualShopId) {
return sweetManualShopTFCService.details(manualShopId);
}
......
......@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.controller;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
import com.liquidnet.service.sweet.entity.SweetManualSortTfc;
import com.liquidnet.service.sweet.service.ISweetManualSortTFCService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -44,7 +44,7 @@ public class SweetManualSortTFCController {
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "manualId", value = "电子手册id", required = true)
})
public ResponseDto<SweetManualSortTFC> changeStatus(@RequestParam() String manualId) {
public ResponseDto<SweetManualSortTfc> changeStatus(@RequestParam() String manualId) {
return sweetManualSortTFCService.get(manualId);
}
......
......@@ -2,7 +2,7 @@ package com.liquidnet.service.sweet.controller;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
import com.liquidnet.service.sweet.entity.SweetRichtextTfc;
import com.liquidnet.service.sweet.service.ISweetRichtextTFCService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -33,7 +33,7 @@ public class SweetRichtextTFCController {
@ApiImplicitParam(type = "query", dataType = "String", name = "manualId", value = "电子手册id", required = true),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "类型 (1签售时间 2现场地图 3官方大巴 4公共交通 5自驾导航坐标 6官方支持 7观众须知 8防疫指南 9观演攻略)", required = true),
})
public ResponseDto<SweetRichtextTFC> get(@RequestParam() String manualId,
public ResponseDto<SweetRichtextTfc> get(@RequestParam() String manualId,
@RequestParam() Integer type) {
return sweetRichtextTFCService.get(manualId, type);
}
......
......@@ -9,8 +9,8 @@ import com.liquidnet.commons.lang.util.DateUtil;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistListTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualArtistsTFC;
import com.liquidnet.service.sweet.mapper.SweetManualArtistsTFCMapper;
import com.liquidnet.service.sweet.entity.SweetManualArtistsTfc;
import com.liquidnet.service.sweet.mapper.SweetManualArtistsTfcMapper;
import com.liquidnet.service.sweet.service.ISweetManualArtistsTFCService;
import com.liquidnet.service.sweet.utils.RedisTFCDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -29,9 +29,9 @@ import java.util.List;
* @since 2021-08-09
*/
@Service
public class SweetManualArtistsTFCServiceImpl extends ServiceImpl<SweetManualArtistsTFCMapper, SweetManualArtistsTFC> implements ISweetManualArtistsTFCService {
public class SweetManualArtistsTFCServiceImpl extends ServiceImpl<SweetManualArtistsTfcMapper, SweetManualArtistsTfc> implements ISweetManualArtistsTFCService {
@Autowired
private SweetManualArtistsTFCMapper sweetManualArtistsTFCMapper;
private SweetManualArtistsTfcMapper sweetManualArtistsTFCMapper;
@Autowired
private RedisTFCDataUtils redisDataUtils;
......@@ -54,7 +54,7 @@ public class SweetManualArtistsTFCServiceImpl extends ServiceImpl<SweetManualArt
@Override
public ResponseDto<Boolean> add(String manualId, String artistId, String stageId, String performanceStart, String performanceEnd, String signatureStart, String signatureEnd) {
try {
SweetManualArtistsTFC sweetManualNotify = SweetManualArtistsTFC.getNew();
SweetManualArtistsTfc sweetManualNotify = SweetManualArtistsTfc.getNew();
sweetManualNotify.setManualRelationId(IDGenerator.nextSnowId());
sweetManualNotify.setManualId(manualId);
sweetManualNotify.setStageId(stageId);
......@@ -89,7 +89,7 @@ public class SweetManualArtistsTFCServiceImpl extends ServiceImpl<SweetManualArt
@Override
public ResponseDto<Boolean> change(String manualRelationId, String manualId, String artistId, String stageId, String performanceStart, String performanceEnd, String signatureStart, String signatureEnd) {
try {
SweetManualArtistsTFC sweetManualNotify = SweetManualArtistsTFC.getNew();
SweetManualArtistsTfc sweetManualNotify = SweetManualArtistsTfc.getNew();
sweetManualNotify.setStageId(stageId);
sweetManualNotify.setArtistsId(artistId);
sweetManualNotify.setPerformanceEnd(DateUtil.Formatter.yyyyMMddHHmmss.parse(performanceEnd));
......@@ -97,7 +97,7 @@ public class SweetManualArtistsTFCServiceImpl extends ServiceImpl<SweetManualArt
sweetManualNotify.setSignatureStart(DateUtil.Formatter.yyyyMMddHHmmss.parse(signatureStart));
sweetManualNotify.setSignatureEnd(DateUtil.Formatter.yyyyMMddHHmmss.parse(signatureEnd));
sweetManualNotify.setUpdatedAt(LocalDateTime.now());
sweetManualArtistsTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualArtistsTFC.class).eq(SweetManualArtistsTFC::getManualRelationId, manualRelationId));
sweetManualArtistsTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualArtistsTfc.class).eq(SweetManualArtistsTfc::getManualRelationId, manualRelationId));
redisDataUtils.deleteTimeListRedisData(manualId);
return ResponseDto.success();
......@@ -109,11 +109,11 @@ public class SweetManualArtistsTFCServiceImpl extends ServiceImpl<SweetManualArt
@Override
public ResponseDto<Boolean> delete(String manualRelationId, String manualId) {
try {
SweetManualArtistsTFC sweetManualNotify = SweetManualArtistsTFC.getNew();
SweetManualArtistsTfc sweetManualNotify = SweetManualArtistsTfc.getNew();
sweetManualNotify.setManualRelationId(IDGenerator.nextSnowId());
sweetManualNotify.setStatus(0);
sweetManualNotify.setUpdatedAt(LocalDateTime.now());
sweetManualArtistsTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualArtistsTFC.class).eq(SweetManualArtistsTFC::getManualRelationId, manualRelationId));
sweetManualArtistsTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualArtistsTfc.class).eq(SweetManualArtistsTfc::getManualRelationId, manualRelationId));
redisDataUtils.deleteTimeListRedisData(manualId);
......
......@@ -6,8 +6,8 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
import com.liquidnet.service.sweet.mapper.SweetManualNotifyTFCMapper;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTfc;
import com.liquidnet.service.sweet.mapper.SweetManualNotifyTfcMapper;
import com.liquidnet.service.sweet.service.ISweetManualNotifyTFCService;
import com.liquidnet.service.sweet.utils.RedisTFCDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -25,23 +25,23 @@ import java.util.List;
* @since 2021-08-09
*/
@Service
public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNotifyTFCMapper, SweetManualNotifyTFC> implements ISweetManualNotifyTFCService {
public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNotifyTfcMapper, SweetManualNotifyTfc> implements ISweetManualNotifyTFCService {
@Autowired
private SweetManualNotifyTFCMapper sweetManualNotifyTFCMapper;
private SweetManualNotifyTfcMapper sweetManualNotifyTFCMapper;
@Autowired
private RedisTFCDataUtils redisDataUtils;
@Override
public ResponseDto<PageInfo<SweetManualNotifyTFC>> getList(Integer page, Integer size, String title, String manualId) {
PageInfo<SweetManualNotifyTFC> pageInfo = null;
public ResponseDto<PageInfo<SweetManualNotifyTfc>> getList(Integer page, Integer size, String title, String manualId) {
PageInfo<SweetManualNotifyTfc> pageInfo = null;
try {
PageHelper.startPage(page, size);
List<SweetManualNotifyTFC> data;
List<SweetManualNotifyTfc> data;
if (title != null) {
data = sweetManualNotifyTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualNotifyTFC.class).like(SweetManualNotifyTFC::getTitle, title).eq(SweetManualNotifyTFC::getManualId, manualId).eq(SweetManualNotifyTFC::getStatus, 1));
data = sweetManualNotifyTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualNotifyTfc.class).like(SweetManualNotifyTfc::getTitle, title).eq(SweetManualNotifyTfc::getManualId, manualId).eq(SweetManualNotifyTfc::getStatus, 1));
} else {
data = sweetManualNotifyTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualNotifyTFC.class).eq(SweetManualNotifyTFC::getManualId, manualId).eq(SweetManualNotifyTFC::getStatus, 1));
data = sweetManualNotifyTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualNotifyTfc.class).eq(SweetManualNotifyTfc::getManualId, manualId).eq(SweetManualNotifyTfc::getStatus, 1));
}
pageInfo = new PageInfo(data);
return ResponseDto.success(pageInfo);
......@@ -53,7 +53,7 @@ public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNoti
@Override
public ResponseDto<Boolean> add(String manualId, String title, String content) {
try {
SweetManualNotifyTFC sweetManualNotify = SweetManualNotifyTFC.getNew();
SweetManualNotifyTfc sweetManualNotify = SweetManualNotifyTfc.getNew();
sweetManualNotify.setManualNotifyId(IDGenerator.nextSnowId());
sweetManualNotify.setManualId(manualId);
sweetManualNotify.setTitle(title);
......@@ -61,7 +61,7 @@ public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNoti
sweetManualNotify.setCreatedAt(LocalDateTime.now());
sweetManualNotifyTFCMapper.insert(sweetManualNotify);
List<SweetManualNotifyTFC> oldData = redisDataUtils.getNotifyRedisData(manualId);
List<SweetManualNotifyTfc> oldData = redisDataUtils.getNotifyRedisData(manualId);
oldData.add(sweetManualNotify);
redisDataUtils.setNotifyRedisData(manualId, oldData);
......@@ -72,9 +72,9 @@ public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNoti
}
@Override
public ResponseDto<SweetManualNotifyTFC> details(String manualNotifyId) {
public ResponseDto<SweetManualNotifyTfc> details(String manualNotifyId) {
try {
return ResponseDto.success(sweetManualNotifyTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualNotifyTFC.class).eq(SweetManualNotifyTFC::getManualNotifyId, manualNotifyId).eq(SweetManualNotifyTFC::getStatus, 1)));
return ResponseDto.success(sweetManualNotifyTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualNotifyTfc.class).eq(SweetManualNotifyTfc::getManualNotifyId, manualNotifyId).eq(SweetManualNotifyTfc::getStatus, 1)));
} catch (Exception e) {
return ResponseDto.failure();
}
......@@ -83,14 +83,14 @@ public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNoti
@Override
public ResponseDto<Boolean> change(String manualId, String manualNotifyId, String title, String content) {
try {
SweetManualNotifyTFC sweetManualNotify = SweetManualNotifyTFC.getNew();
SweetManualNotifyTfc sweetManualNotify = SweetManualNotifyTfc.getNew();
sweetManualNotify.setTitle(title);
sweetManualNotify.setContent(content);
sweetManualNotify.setUpdatedAt(LocalDateTime.now());
sweetManualNotifyTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualNotifyTFC.class).eq(SweetManualNotifyTFC::getManualNotifyId, manualNotifyId));
sweetManualNotifyTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualNotifyTfc.class).eq(SweetManualNotifyTfc::getManualNotifyId, manualNotifyId));
List<SweetManualNotifyTFC> oldData = redisDataUtils.getNotifyRedisData(manualId);
for (SweetManualNotifyTFC item : oldData) {
List<SweetManualNotifyTfc> oldData = redisDataUtils.getNotifyRedisData(manualId);
for (SweetManualNotifyTfc item : oldData) {
if (item.getManualNotifyId().equalsIgnoreCase(manualNotifyId)) {
item.setTitle(title);
item.setContent(content);
......@@ -108,10 +108,10 @@ public class SweetManualNotifyTFCServiceImpl extends ServiceImpl<SweetManualNoti
@Override
public ResponseDto<Boolean> delete(String manualNotifyId) {
try {
SweetManualNotifyTFC sweetManualNotify = SweetManualNotifyTFC.getNew();
SweetManualNotifyTfc sweetManualNotify = SweetManualNotifyTfc.getNew();
sweetManualNotify.setStatus(0);
sweetManualNotify.setUpdatedAt(LocalDateTime.now());
sweetManualNotifyTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualNotifyTFC.class).eq(SweetManualNotifyTFC::getManualNotifyId, manualNotifyId));
sweetManualNotifyTFCMapper.update(sweetManualNotify, Wrappers.lambdaUpdate(SweetManualNotifyTfc.class).eq(SweetManualNotifyTfc::getManualNotifyId, manualNotifyId));
return ResponseDto.success();
} catch (Exception e) {
return ResponseDto.failure();
......
......@@ -4,8 +4,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.mapper.SweetManualShopTFCMapper;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
import com.liquidnet.service.sweet.mapper.SweetManualShopTfcMapper;
import com.liquidnet.service.sweet.service.ISweetManualShopTFCService;
import com.liquidnet.service.sweet.utils.RedisTFCDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -22,17 +22,17 @@ import java.util.List;
* @since 2021-08-09
*/
@Service
public class SweetManualShopTFCServiceImpl extends ServiceImpl<SweetManualShopTFCMapper, SweetManualShopTFC> implements ISweetManualShopTFCService {
public class SweetManualShopTFCServiceImpl extends ServiceImpl<SweetManualShopTfcMapper, SweetManualShopTfc> implements ISweetManualShopTFCService {
@Autowired
private SweetManualShopTFCMapper sweetManualShopTFCMapper;
private SweetManualShopTfcMapper sweetManualShopTFCMapper;
@Autowired
private RedisTFCDataUtils redisDataUtils;
@Override
public ResponseDto<List<SweetManualShopTFC>> getList(String manualId, Integer type) {
public ResponseDto<List<SweetManualShopTfc>> getList(String manualId, Integer type) {
try {
List<SweetManualShopTFC> data = sweetManualShopTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualShopTFC.class).eq(SweetManualShopTFC::getManualId, manualId).eq(SweetManualShopTFC::getType, type).eq(SweetManualShopTFC::getStatus, 1));
List<SweetManualShopTfc> data = sweetManualShopTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualShopTfc.class).eq(SweetManualShopTfc::getManualId, manualId).eq(SweetManualShopTfc::getType, type).eq(SweetManualShopTfc::getStatus, 1));
return ResponseDto.success(data);
} catch (Exception e) {
return ResponseDto.failure();
......@@ -40,9 +40,9 @@ public class SweetManualShopTFCServiceImpl extends ServiceImpl<SweetManualShopTF
}
@Override
public ResponseDto<SweetManualShopTFC> details(String manualShopId) {
public ResponseDto<SweetManualShopTfc> details(String manualShopId) {
try {
SweetManualShopTFC data = sweetManualShopTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualShopTFC.class).eq(SweetManualShopTFC::getManualShopId, manualShopId).eq(SweetManualShopTFC::getStatus, 1));
SweetManualShopTfc data = sweetManualShopTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualShopTfc.class).eq(SweetManualShopTfc::getManualShopId, manualShopId).eq(SweetManualShopTfc::getStatus, 1));
return ResponseDto.success(data);
} catch (Exception e) {
return ResponseDto.failure();
......@@ -52,7 +52,7 @@ public class SweetManualShopTFCServiceImpl extends ServiceImpl<SweetManualShopTF
@Override
public ResponseDto<Boolean> add(String manualId, String title, String picUrl, String describe, Integer type, Integer isRecommend, Integer sort) {
try {
SweetManualShopTFC sweetManualShop = SweetManualShopTFC.getNew();
SweetManualShopTfc sweetManualShop = SweetManualShopTfc.getNew();
sweetManualShop.setManualShopId(IDGenerator.nextSnowId());
sweetManualShop.setManualId(manualId);
sweetManualShop.setTitle(title);
......@@ -74,14 +74,14 @@ public class SweetManualShopTFCServiceImpl extends ServiceImpl<SweetManualShopTF
@Override
public ResponseDto<Boolean> change(String manualShopId,String manualId, String title, String picUrl, String describe, Integer type, Integer isRecommend, Integer sort) {
try {
SweetManualShopTFC sweetManualShop = SweetManualShopTFC.getNew();
SweetManualShopTfc sweetManualShop = SweetManualShopTfc.getNew();
sweetManualShop.setTitle(title);
sweetManualShop.setPicUrl(picUrl);
sweetManualShop.setDescribes(describe);
sweetManualShop.setType(type);
sweetManualShop.setIsRecommend(isRecommend);
sweetManualShop.setSort(sort);
sweetManualShopTFCMapper.update(sweetManualShop, Wrappers.lambdaUpdate(SweetManualShopTFC.class).eq(SweetManualShopTFC::getManualShopId, manualShopId));
sweetManualShopTFCMapper.update(sweetManualShop, Wrappers.lambdaUpdate(SweetManualShopTfc.class).eq(SweetManualShopTfc::getManualShopId, manualShopId));
redisDataUtils.setManualShopRedisData(manualId);
return ResponseDto.success();
} catch (Exception e) {
......@@ -92,9 +92,9 @@ public class SweetManualShopTFCServiceImpl extends ServiceImpl<SweetManualShopTF
@Override
public ResponseDto<Boolean> delete(String manualShopId,String manualId) {
try {
SweetManualShopTFC sweetManualShop = SweetManualShopTFC.getNew();
SweetManualShopTfc sweetManualShop = SweetManualShopTfc.getNew();
sweetManualShop.setStatus(0);
sweetManualShopTFCMapper.update(sweetManualShop, Wrappers.lambdaUpdate(SweetManualShopTFC.class).eq(SweetManualShopTFC::getManualShopId, manualShopId));
sweetManualShopTFCMapper.update(sweetManualShop, Wrappers.lambdaUpdate(SweetManualShopTfc.class).eq(SweetManualShopTfc::getManualShopId, manualShopId));
redisDataUtils.setManualShopRedisData(manualId);
return ResponseDto.success();
} catch (Exception e) {
......
......@@ -3,8 +3,8 @@ package com.liquidnet.service.sweet.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
import com.liquidnet.service.sweet.mapper.SweetManualSortTFCMapper;
import com.liquidnet.service.sweet.entity.SweetManualSortTfc;
import com.liquidnet.service.sweet.mapper.SweetManualSortTfcMapper;
import com.liquidnet.service.sweet.service.ISweetManualSortTFCService;
import com.liquidnet.service.sweet.utils.RedisTFCDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -21,17 +21,17 @@ import java.time.LocalDateTime;
* @since 2021-08-09
*/
@Service
public class SweetManualSortTFCServiceImpl extends ServiceImpl<SweetManualSortTFCMapper, SweetManualSortTFC> implements ISweetManualSortTFCService {
public class SweetManualSortTFCServiceImpl extends ServiceImpl<SweetManualSortTfcMapper, SweetManualSortTfc> implements ISweetManualSortTFCService {
@Autowired
private SweetManualSortTFCMapper sweetManualSortTFCMapper;
private SweetManualSortTfcMapper sweetManualSortTFCMapper;
@Autowired
private RedisTFCDataUtils redisDataUtils;
@Override
public ResponseDto<SweetManualSortTFC> get(String manualId) {
public ResponseDto<SweetManualSortTfc> get(String manualId) {
try {
return ResponseDto.success(sweetManualSortTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualSortTFC.class).eq(SweetManualSortTFC::getManualId, manualId)));
return ResponseDto.success(sweetManualSortTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualSortTfc.class).eq(SweetManualSortTfc::getManualId, manualId)));
} catch (Exception e) {
return ResponseDto.failure();
}
......@@ -40,15 +40,15 @@ public class SweetManualSortTFCServiceImpl extends ServiceImpl<SweetManualSortTF
@Override
public ResponseDto<Boolean> add(String manualId, String content) {
try {
int count = sweetManualSortTFCMapper.selectCount(Wrappers.lambdaUpdate(SweetManualSortTFC.class).eq(SweetManualSortTFC::getManualId, manualId));
int count = sweetManualSortTFCMapper.selectCount(Wrappers.lambdaUpdate(SweetManualSortTfc.class).eq(SweetManualSortTfc::getManualId, manualId));
if (count > 0) {
SweetManualSortTFC sweetManualSort = SweetManualSortTFC.getNew();
SweetManualSortTfc sweetManualSort = SweetManualSortTfc.getNew();
sweetManualSort.setManualId(manualId);
sweetManualSort.setShowPosition(content);
sweetManualSort.setUpdatedAt(LocalDateTime.now());
sweetManualSortTFCMapper.update(sweetManualSort, Wrappers.lambdaUpdate(SweetManualSortTFC.class).eq(SweetManualSortTFC::getManualId, manualId));
sweetManualSortTFCMapper.update(sweetManualSort, Wrappers.lambdaUpdate(SweetManualSortTfc.class).eq(SweetManualSortTfc::getManualId, manualId));
} else {
SweetManualSortTFC sweetManualSort = SweetManualSortTFC.getNew();
SweetManualSortTfc sweetManualSort = SweetManualSortTfc.getNew();
sweetManualSort.setManualId(manualId);
sweetManualSort.setShowPosition(content);
sweetManualSort.setCreatedAt(LocalDateTime.now());
......
......@@ -10,8 +10,8 @@ import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.base.ErrorMapping;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.dto.SweetManualTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualTFC;
import com.liquidnet.service.sweet.mapper.SweetManualTFCMapper;
import com.liquidnet.service.sweet.entity.SweetManualTfc;
import com.liquidnet.service.sweet.mapper.SweetManualTfcMapper;
import com.liquidnet.service.sweet.service.ISweetManualTFCService;
import com.liquidnet.service.sweet.utils.RedisTFCDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -30,10 +30,10 @@ import java.util.List;
* @since 2021-08-09
*/
@Service
public class SweetManualTFCServiceImpl extends ServiceImpl<SweetManualTFCMapper, SweetManualTFC> implements ISweetManualTFCService {
public class SweetManualTFCServiceImpl extends ServiceImpl<SweetManualTfcMapper, SweetManualTfc> implements ISweetManualTFCService {
@Autowired
private SweetManualTFCMapper sweetManualTFCMapper;
private SweetManualTfcMapper sweetManualTFCMapper;
@Autowired
private RedisTFCDataUtils redisDataUtils;
......@@ -91,12 +91,12 @@ public class SweetManualTFCServiceImpl extends ServiceImpl<SweetManualTFCMapper,
@Override
public ResponseDto<Boolean> changeStatus(String manualId, String performancesId, Integer status) {
try {
int count = sweetManualTFCMapper.selectCount(Wrappers.lambdaUpdate(SweetManualTFC.class).eq(SweetManualTFC::getManualId, manualId));
SweetManualTFC sweetManual = SweetManualTFC.getNew();
int count = sweetManualTFCMapper.selectCount(Wrappers.lambdaUpdate(SweetManualTfc.class).eq(SweetManualTfc::getManualId, manualId));
SweetManualTfc sweetManual = SweetManualTfc.getNew();
if (count > 0) {//修改
sweetManual.setStatus(status);
sweetManual.setUpdatedAt(LocalDateTime.now());
sweetManualTFCMapper.update(sweetManual, Wrappers.lambdaUpdate(SweetManualTFC.class).eq(SweetManualTFC::getManualId, manualId));
sweetManualTFCMapper.update(sweetManual, Wrappers.lambdaUpdate(SweetManualTfc.class).eq(SweetManualTfc::getManualId, manualId));
} else {//创建
sweetManual.setManualId(IDGenerator.nextSnowId());
sweetManual.setPerformanceId(performancesId);
......@@ -106,6 +106,7 @@ public class SweetManualTFCServiceImpl extends ServiceImpl<SweetManualTFCMapper,
sweetManualTFCMapper.insert(sweetManual);
}
} catch (Exception e) {
e.printStackTrace();
return ResponseDto.failure();
}
redisDataUtils.deletePushListRedisData();
......@@ -115,10 +116,10 @@ public class SweetManualTFCServiceImpl extends ServiceImpl<SweetManualTFCMapper,
@Override
public ResponseDto<Boolean> changeRelease(String manualId, Integer isRelease) {
try {
SweetManualTFC sweetManual = SweetManualTFC.getNew();
SweetManualTfc sweetManual = SweetManualTfc.getNew();
sweetManual.setIsRelease(isRelease);
sweetManual.setUpdatedAt(LocalDateTime.now());
sweetManualTFCMapper.update(sweetManual, Wrappers.lambdaUpdate(SweetManualTFC.class).eq(SweetManualTFC::getManualId, manualId));
sweetManualTFCMapper.update(sweetManual, Wrappers.lambdaUpdate(SweetManualTfc.class).eq(SweetManualTfc::getManualId, manualId));
} catch (Exception e) {
return ResponseDto.failure();
}
......
......@@ -4,8 +4,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
import com.liquidnet.service.sweet.mapper.SweetRichtextTFCMapper;
import com.liquidnet.service.sweet.entity.SweetRichtextTfc;
import com.liquidnet.service.sweet.mapper.SweetRichtextTfcMapper;
import com.liquidnet.service.sweet.service.ISweetRichtextTFCService;
import com.liquidnet.service.sweet.utils.RedisTFCDataUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -22,17 +22,17 @@ import java.time.LocalDateTime;
* @since 2021-08-09
*/
@Service
public class SweetRichtextTFCServiceImpl extends ServiceImpl<SweetRichtextTFCMapper, SweetRichtextTFC> implements ISweetRichtextTFCService {
public class SweetRichtextTFCServiceImpl extends ServiceImpl<SweetRichtextTfcMapper, SweetRichtextTfc> implements ISweetRichtextTFCService {
@Autowired
private SweetRichtextTFCMapper sweetRichtextTFCMapper;
private SweetRichtextTfcMapper sweetRichtextTFCMapper;
@Autowired
private RedisTFCDataUtils redisDataUtils;
@Override
public ResponseDto<SweetRichtextTFC> get(String manualId, Integer type) {
public ResponseDto<SweetRichtextTfc> get(String manualId, Integer type) {
try {
return ResponseDto.success(sweetRichtextTFCMapper.selectOne(Wrappers.lambdaQuery(SweetRichtextTFC.class).eq(SweetRichtextTFC::getManualId, manualId).eq(SweetRichtextTFC::getType, type)));
return ResponseDto.success(sweetRichtextTFCMapper.selectOne(Wrappers.lambdaQuery(SweetRichtextTfc.class).eq(SweetRichtextTfc::getManualId, manualId).eq(SweetRichtextTfc::getType, type)));
} catch (Exception e) {
return ResponseDto.failure();
}
......@@ -41,11 +41,11 @@ public class SweetRichtextTFCServiceImpl extends ServiceImpl<SweetRichtextTFCMap
@Override
public ResponseDto<Boolean> add(String manualId, String details, String local, String pirUrl, Integer type) {
try {
int count = sweetRichtextTFCMapper.selectCount(Wrappers.lambdaQuery(SweetRichtextTFC.class).eq(SweetRichtextTFC::getManualId, manualId).eq(SweetRichtextTFC::getType, type));
int count = sweetRichtextTFCMapper.selectCount(Wrappers.lambdaQuery(SweetRichtextTfc.class).eq(SweetRichtextTfc::getManualId, manualId).eq(SweetRichtextTfc::getType, type));
if(count>0){
return ResponseDto.failure("不能重复添加");
}
SweetRichtextTFC sweetRichtext = SweetRichtextTFC.getNew();
SweetRichtextTfc sweetRichtext = SweetRichtextTfc.getNew();
sweetRichtext.setRichtextId(IDGenerator.nextSnowId());
sweetRichtext.setManualId(manualId);
if (type == 5) {
......@@ -68,7 +68,7 @@ public class SweetRichtextTFCServiceImpl extends ServiceImpl<SweetRichtextTFCMap
@Override
public ResponseDto<Boolean> change(String manualId, String details, String local, String pirUrl, Integer type) {
try {
SweetRichtextTFC sweetRichtext = SweetRichtextTFC.getNew();
SweetRichtextTfc sweetRichtext = SweetRichtextTfc.getNew();
sweetRichtext.setRichtextId(IDGenerator.nextSnowId());
sweetRichtext.setManualId(manualId);
sweetRichtext.setDetails(details);
......@@ -79,7 +79,7 @@ public class SweetRichtextTFCServiceImpl extends ServiceImpl<SweetRichtextTFCMap
}
sweetRichtext.setType(type);
sweetRichtext.setCreatedAt(LocalDateTime.now());
sweetRichtextTFCMapper.update(sweetRichtext, Wrappers.lambdaUpdate(SweetRichtextTFC.class).eq(SweetRichtextTFC::getManualId, manualId).eq(SweetRichtextTFC::getType, type));
sweetRichtextTFCMapper.update(sweetRichtext, Wrappers.lambdaUpdate(SweetRichtextTfc.class).eq(SweetRichtextTfc::getManualId, manualId).eq(SweetRichtextTfc::getType, type));
redisDataUtils.setRichTextRedisData(manualId,type.toString(),sweetRichtext);
} catch (Exception e) {
......
package com.liquidnet.service.sweet.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.service.sweet.entity.SweetUserRelationTFC;
import com.liquidnet.service.sweet.mapper.SweetUserRelationTFCMapper;
import com.liquidnet.service.sweet.entity.SweetUserRelationTfc;
import com.liquidnet.service.sweet.mapper.SweetUserRelationTfcMapper;
import com.liquidnet.service.sweet.service.ISweetUserRelationTFCService;
import org.springframework.stereotype.Service;
......@@ -15,6 +15,6 @@ import org.springframework.stereotype.Service;
* @since 2021-08-09
*/
@Service
public class SweetUserRelationTFCServiceImpl extends ServiceImpl<SweetUserRelationTFCMapper, SweetUserRelationTFC> implements ISweetUserRelationTFCService {
public class SweetUserRelationTFCServiceImpl extends ServiceImpl<SweetUserRelationTfcMapper, SweetUserRelationTfc> implements ISweetUserRelationTFCService {
}
......@@ -4,7 +4,7 @@ import com.liquidnet.service.sweet.dto.*;
import com.liquidnet.service.sweet.dto.vo.IntegralActivityVo;
import com.liquidnet.service.sweet.entity.SweetManualShop;
import com.liquidnet.service.sweet.entity.SweetManualShopMdsk;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
import com.liquidnet.service.sweet.vo.SweetCItyVoteStatVo;
import java.util.ArrayList;
......@@ -20,7 +20,7 @@ public class ObjectUtil {
private static final ArrayList<SweetManualAppletTFCDto> sweetManualAppletTFCDtoList = new ArrayList<>();
private static final ArrayList<SweetManualArtistListTFCDto> sweetManualArtistListTFCDtoList = new ArrayList<>();
private static final ArrayList<SweetManualShopTFC> sweetManualShopTFCList = new ArrayList<>();
private static final ArrayList<SweetManualShopTfc> sweetManualShopTFCList = new ArrayList<>();
private static final ArrayList<SweetCItyVoteStatVo> sweetCItyVoteStatVoList = new ArrayList<>();
private static final ArrayList<IntegralActivityVo> sweetIntegralActivityVoList = new ArrayList<>();
......@@ -50,8 +50,8 @@ public class ObjectUtil {
return (ArrayList<SweetManualArtistListTFCDto>) sweetManualArtistListTFCDtoList.clone();
}
public static ArrayList<SweetManualShopTFC> getSweetManualShopTFCList() {
return (ArrayList<SweetManualShopTFC>) sweetManualShopTFCList.clone();
public static ArrayList<SweetManualShopTfc> getSweetManualShopTFCList() {
return (ArrayList<SweetManualShopTfc>) sweetManualShopTFCList.clone();
}
public static ArrayList<SweetManualArtistListMDSKDto> getSweetManualArtistListMDSKDtoList() {
......
......@@ -12,10 +12,10 @@ import com.liquidnet.service.sweet.dto.SweetManualAppletTFCDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistList2TFCDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistListTFCDto;
import com.liquidnet.service.sweet.dto.SweetManualArtistStageListTFCDto;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTFC;
import com.liquidnet.service.sweet.entity.SweetManualShopTFC;
import com.liquidnet.service.sweet.entity.SweetManualSortTFC;
import com.liquidnet.service.sweet.entity.SweetRichtextTFC;
import com.liquidnet.service.sweet.entity.SweetManualNotifyTfc;
import com.liquidnet.service.sweet.entity.SweetManualShopTfc;
import com.liquidnet.service.sweet.entity.SweetManualSortTfc;
import com.liquidnet.service.sweet.entity.SweetRichtextTfc;
import com.liquidnet.service.sweet.mapper.*;
import com.liquidnet.service.sweet.vo.SweetArtistsRelationVo;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -33,17 +33,17 @@ public class RedisTFCDataUtils {
private QueueUtils queueUtils;
@Autowired
private SweetManualTFCMapper sweetManualTFCMapper;
private SweetManualTfcMapper sweetManualTFCMapper;
@Autowired
private SweetManualArtistsTFCMapper sweetManualArtistsTFCMapper;
private SweetManualArtistsTfcMapper sweetManualArtistsTFCMapper;
@Autowired
private SweetRichtextTFCMapper sweetRichtextTFCMapper;
private SweetRichtextTfcMapper sweetRichtextTFCMapper;
@Autowired
private SweetManualSortTFCMapper sweetManualSortTFCMapper;
private SweetManualSortTfcMapper sweetManualSortTFCMapper;
@Autowired
private SweetManualNotifyTFCMapper sweetManualNotifyTFCMapper;
private SweetManualNotifyTfcMapper sweetManualNotifyTFCMapper;
@Autowired
private SweetManualShopTFCMapper sweetManualShopTFCMapper;
private SweetManualShopTfcMapper sweetManualShopTFCMapper;
public List<SweetManualAppletTFCDto> setPushList() {
......@@ -125,32 +125,32 @@ public class RedisTFCDataUtils {
}
}
public SweetRichtextTFC setRichTextRedisData(String manualId, String type, SweetRichtextTFC content) {
public SweetRichtextTfc setRichTextRedisData(String manualId, String type, SweetRichtextTfc content) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_MANUAL_RICH_TEXT.concat(manualId).concat(":type:" + type);
SweetRichtextTFC sweetRichtext;
SweetRichtextTfc sweetRichtext;
if (content != null) {
sweetRichtext = content;
} else {
sweetRichtext = sweetRichtextTFCMapper.selectOne(Wrappers.lambdaQuery(SweetRichtextTFC.class).eq(SweetRichtextTFC::getManualId, manualId).eq(SweetRichtextTFC::getType, type));
sweetRichtext = sweetRichtextTFCMapper.selectOne(Wrappers.lambdaQuery(SweetRichtextTfc.class).eq(SweetRichtextTfc::getManualId, manualId).eq(SweetRichtextTfc::getType, type));
}
redisUtil.set(redisKey, sweetRichtext);
return sweetRichtext;
}
//获取富文本详情
public SweetRichtextTFC getRichTextRedisData(String manualId, String type) {
public SweetRichtextTfc getRichTextRedisData(String manualId, String type) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_MANUAL_RICH_TEXT.concat(manualId).concat(":type:" + type);
Object obj = redisUtil.get(redisKey);
if (obj == null) {
return setRichTextRedisData(manualId, type, null);
} else {
return (SweetRichtextTFC) obj;
return (SweetRichtextTfc) obj;
}
}
public List<String> setTagRedisData(String manualId) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_MANUAL_SORT.concat(manualId);
SweetManualSortTFC data = sweetManualSortTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualSortTFC.class).eq(SweetManualSortTFC::getManualId, manualId));
SweetManualSortTfc data = sweetManualSortTFCMapper.selectOne(Wrappers.lambdaQuery(SweetManualSortTfc.class).eq(SweetManualSortTfc::getManualId, manualId));
String[] arrays = data.getShowPosition().split(",");
List<String> returnData = new ArrayList<>();
for (String item : arrays) {
......@@ -172,26 +172,26 @@ public class RedisTFCDataUtils {
}
}
public List<SweetManualNotifyTFC> setNotifyRedisData(String manualId, List<SweetManualNotifyTFC> content) {
public List<SweetManualNotifyTfc> setNotifyRedisData(String manualId, List<SweetManualNotifyTfc> content) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_MANUAL_NOTIFY_LIST.concat(manualId);
List<SweetManualNotifyTFC> data;
List<SweetManualNotifyTfc> data;
if (content != null) {
data = content;
} else {
data = sweetManualNotifyTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualNotifyTFC.class).eq(SweetManualNotifyTFC::getManualId, manualId).eq(SweetManualNotifyTFC::getStatus, 1));
data = sweetManualNotifyTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualNotifyTfc.class).eq(SweetManualNotifyTfc::getManualId, manualId).eq(SweetManualNotifyTfc::getStatus, 1));
}
redisUtil.set(redisKey, data);
return data;
}
//获取通知
public List<SweetManualNotifyTFC> getNotifyRedisData(String manualId) {
public List<SweetManualNotifyTfc> getNotifyRedisData(String manualId) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_MANUAL_NOTIFY_LIST.concat(manualId);
Object obj = redisUtil.get(redisKey);
if (obj == null) {
return setNotifyRedisData(manualId, null);
} else {
return (List<SweetManualNotifyTFC>) obj;
return (List<SweetManualNotifyTfc>) obj;
}
}
......@@ -284,20 +284,20 @@ public class RedisTFCDataUtils {
}
//获取 商铺
public List<SweetManualShopTFC> setManualShopRedisData(String manualId) {
public List<SweetManualShopTfc> setManualShopRedisData(String manualId) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_SHOP.concat(manualId);
List<SweetManualShopTFC> list = sweetManualShopTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualShopTFC.class).eq(SweetManualShopTFC::getManualId, manualId).orderBy(true, false, SweetManualShopTFC::getSort));
List<SweetManualShopTfc> list = sweetManualShopTFCMapper.selectList(Wrappers.lambdaQuery(SweetManualShopTfc.class).eq(SweetManualShopTfc::getManualId, manualId).orderBy(true, false, SweetManualShopTfc::getSort));
redisUtil.set(redisKey, list);
return list;
}
public List<SweetManualShopTFC> getManualShopRedisData(String manualId) {
public List<SweetManualShopTfc> getManualShopRedisData(String manualId) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_TFC_SHOP.concat(manualId);
Object obj = redisUtil.get(redisKey);
if (obj == null) {
return setManualShopRedisData(manualId);
} else {
return (List<SweetManualShopTFC>) obj;
return (List<SweetManualShopTfc>) obj;
}
}
......
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