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

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

修改 tfc

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