实体转换的bug
sql问题
This commit is contained in:
@@ -22,7 +22,7 @@ public interface TbPlatformDictMapper {
|
|||||||
*/
|
*/
|
||||||
TbPlatformDict queryById(Integer id);
|
TbPlatformDict queryById(Integer id);
|
||||||
|
|
||||||
List<TbPlatformDict> queryByIdList(List<Integer> idList);
|
List<TbPlatformDict> queryByIdList(@Param("idList")List<Integer> idList);
|
||||||
|
|
||||||
List<TbPlatformDict> queryAllByType(@Param("type") String type,@Param("environment") String environment);
|
List<TbPlatformDict> queryAllByType(@Param("type") String type,@Param("environment") String environment);
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
package com.chaozhanggui.system.cashierservice.entity.vo;
|
package com.chaozhanggui.system.cashierservice.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 轮播图VO
|
* 轮播图VO
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class HomeCarouselVo {
|
public class HomeCarouselVo {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
package com.chaozhanggui.system.cashierservice.entity.vo;
|
package com.chaozhanggui.system.cashierservice.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 首页金刚区Vo
|
* 首页金刚区Vo
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class HomeDistrictVo{
|
public class HomeDistrictVo{
|
||||||
/**
|
/**
|
||||||
* 展示图url
|
* 展示图url
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
package com.chaozhanggui.system.cashierservice.entity.vo;
|
package com.chaozhanggui.system.cashierservice.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class TagVo {
|
public class TagVo {
|
||||||
/**
|
/**
|
||||||
* 标签前 小图标
|
* 标签前 小图标
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ public class JSONUtil {
|
|||||||
/**
|
/**
|
||||||
* @param list 某集合
|
* @param list 某集合
|
||||||
* @param clazz 要转成的实体
|
* @param clazz 要转成的实体
|
||||||
|
* 需要在目标实体增加注解 忽略未知属性 @JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
* @return
|
* @return
|
||||||
* @param <T>
|
* @param <T>
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user