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