Commit 51ff787d authored by unset's avatar unset

新增影像信息,收货地址,影像图框模块接口

parent 1a3e798a
...@@ -11,4 +11,7 @@ import lombok.Data; ...@@ -11,4 +11,7 @@ import lombok.Data;
*/ */
@Data @Data
public class ImageInformationDto extends PageParam { public class ImageInformationDto extends PageParam {
String name;
} }
...@@ -112,4 +112,7 @@ public class ImageImgStorage implements Serializable { ...@@ -112,4 +112,7 @@ public class ImageImgStorage implements Serializable {
private String relatedIds; private String relatedIds;
private Date crtTime;
private Date updTime;
} }
...@@ -91,5 +91,8 @@ public class ImageInformation implements Serializable { ...@@ -91,5 +91,8 @@ public class ImageInformation implements Serializable {
@ApiModelProperty(value = "是否启用:1、启用,2、禁用") @ApiModelProperty(value = "是否启用:1、启用,2、禁用")
private Integer status; private Integer status;
private Date crtTime;
private Date updTime;
} }
...@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.util.Query; ...@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.util.Query;
import com.github.wxiaoqi.security.common.util.process.ResultCode; import com.github.wxiaoqi.security.common.util.process.ResultCode;
import com.github.wxiaoqi.security.common.vo.PageDataVO; import com.github.wxiaoqi.security.common.vo.PageDataVO;
import com.upyuns.platform.rs.website.dto.ImageInformationDto; import com.upyuns.platform.rs.website.dto.ImageInformationDto;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.upyuns.platform.rs.website.entity.ImageInformation; import com.upyuns.platform.rs.website.entity.ImageInformation;
...@@ -14,6 +15,8 @@ import com.upyuns.platform.rs.website.mapper.ImageInformationMapper; ...@@ -14,6 +15,8 @@ import com.upyuns.platform.rs.website.mapper.ImageInformationMapper;
import com.github.wxiaoqi.security.common.biz.BaseBiz; import com.github.wxiaoqi.security.common.biz.BaseBiz;
import tk.mybatis.mapper.entity.Example; import tk.mybatis.mapper.entity.Example;
import java.util.List;
/** /**
* 影像信息介绍信息表 * 影像信息介绍信息表
* *
...@@ -56,8 +59,23 @@ public class ImageInformationBiz extends BaseBiz<ImageInformationMapper,ImageInf ...@@ -56,8 +59,23 @@ public class ImageInformationBiz extends BaseBiz<ImageInformationMapper,ImageInf
Example example = new Example(ImageInformation.class); Example example = new Example(ImageInformation.class);
Example.Criteria criteria = example.createCriteria(); Example.Criteria criteria = example.createCriteria();
criteria.andEqualTo("isDel", 0); criteria.andEqualTo("isDel", 0);
if (StringUtils.isNotBlank(imageInformationDto.getName())) {
criteria.andLike("name", "%" + imageInformationDto.getName() + "%");
}
example.orderBy("updTime");
Query query = new Query(imageInformationDto); Query query = new Query(imageInformationDto);
PageDataVO<ImageInformation> pageDataVO = PageDataVO.pageInfo(query, () -> mapper.selectByExample(example)); PageDataVO<ImageInformation> pageDataVO = PageDataVO.pageInfo(query, () -> mapper.selectByExample(example));
return ObjectRestResponse.succ(pageDataVO); return ObjectRestResponse.succ(pageDataVO);
} }
/**
* 获取所有影像信息
* @return
*/
public List<ImageInformation> getAll() {
Example example = new Example(ImageInformation.class);
example.createCriteria().andEqualTo("isDel", 0).andEqualTo("status", 1);
example.orderBy("rank");
return mapper.selectByExample(example);
}
} }
\ No newline at end of file
...@@ -23,4 +23,9 @@ public class ImageInformationController extends BaseController<ImageInformationB ...@@ -23,4 +23,9 @@ public class ImageInformationController extends BaseController<ImageInformationB
return baseBiz.addUpdate(imageInformation); return baseBiz.addUpdate(imageInformation);
} }
@GetMapping(value = "getAll")
public ObjectRestResponse getAll() {
return ObjectRestResponse.succ(baseBiz.getAll());
}
} }
\ No newline at end of file
...@@ -25,4 +25,5 @@ public class IndustryApplicationInfoController extends BaseController<IndustryAp ...@@ -25,4 +25,5 @@ public class IndustryApplicationInfoController extends BaseController<IndustryAp
public ObjectRestResponse getAll() { public ObjectRestResponse getAll() {
return baseBiz.getAllIndexShow(); return baseBiz.getAllIndexShow();
} }
} }
\ No newline at end of file
...@@ -26,6 +26,7 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp ...@@ -26,6 +26,7 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp
return baseBiz.getAll(indexShow); return baseBiz.getAll(indexShow);
} }
@GetMapping(value = "getDetail") @GetMapping(value = "getDetail")
public ObjectRestResponse getDetail(Integer id) { public ObjectRestResponse getDetail(Integer id) {
return baseBiz.getDetail(id); return baseBiz.getDetail(id);
......
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