forked from CCSENS_TECHNOLOGY/braintraining
19 changed files with 1645 additions and 64 deletions
@ -0,0 +1,43 @@ |
|||||
|
package com.ccsens.braintraining.api; |
||||
|
|
||||
|
import com.ccsens.braintraining.bean.vo.CarouselVo; |
||||
|
import com.ccsens.braintraining.service.ICarouselService; |
||||
|
import com.ccsens.util.JsonResponse; |
||||
|
import io.swagger.annotations.*; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2022/3/11 15:59 |
||||
|
*/ |
||||
|
@Api(tags = "轮播图相关" ) |
||||
|
@RestController |
||||
|
@RequestMapping("/carousel") |
||||
|
@Slf4j |
||||
|
public class CarouselController { |
||||
|
|
||||
|
@Resource |
||||
|
private ICarouselService carouselService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation(value = "查询大屏轮播图",notes = "查询大屏轮播图") |
||||
|
@ApiImplicitParams({ |
||||
|
@ApiImplicitParam(name = "json", value = "查询大屏轮播图", required = true) |
||||
|
}) |
||||
|
@RequestMapping(value="/show", method = RequestMethod.POST) |
||||
|
public JsonResponse<CarouselVo.Base> show(){ |
||||
|
log.info("查询大屏轮播图"); |
||||
|
List<CarouselVo.Base> result = carouselService.show(); |
||||
|
log.info("查询大屏轮播图结果:{}", result); |
||||
|
return JsonResponse.newInstance().ok(result); |
||||
|
} |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.ccsens.braintraining.bean.dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2022/3/11 16:00 |
||||
|
*/ |
||||
|
public class CarouselDto { |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,150 @@ |
|||||
|
package com.ccsens.braintraining.bean.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class AssistCarousel implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private String url; |
||||
|
|
||||
|
private String jumpUrl; |
||||
|
|
||||
|
private String param; |
||||
|
|
||||
|
private Byte type; |
||||
|
|
||||
|
private Byte showPosition; |
||||
|
|
||||
|
private String showPage; |
||||
|
|
||||
|
private Integer sort; |
||||
|
|
||||
|
private Long operator; |
||||
|
|
||||
|
private Date createdAt; |
||||
|
|
||||
|
private Date updatedAt; |
||||
|
|
||||
|
private Byte recStatus; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getUrl() { |
||||
|
return url; |
||||
|
} |
||||
|
|
||||
|
public void setUrl(String url) { |
||||
|
this.url = url == null ? null : url.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getJumpUrl() { |
||||
|
return jumpUrl; |
||||
|
} |
||||
|
|
||||
|
public void setJumpUrl(String jumpUrl) { |
||||
|
this.jumpUrl = jumpUrl == null ? null : jumpUrl.trim(); |
||||
|
} |
||||
|
|
||||
|
public String getParam() { |
||||
|
return param; |
||||
|
} |
||||
|
|
||||
|
public void setParam(String param) { |
||||
|
this.param = param == null ? null : param.trim(); |
||||
|
} |
||||
|
|
||||
|
public Byte getType() { |
||||
|
return type; |
||||
|
} |
||||
|
|
||||
|
public void setType(Byte type) { |
||||
|
this.type = type; |
||||
|
} |
||||
|
|
||||
|
public Byte getShowPosition() { |
||||
|
return showPosition; |
||||
|
} |
||||
|
|
||||
|
public void setShowPosition(Byte showPosition) { |
||||
|
this.showPosition = showPosition; |
||||
|
} |
||||
|
|
||||
|
public String getShowPage() { |
||||
|
return showPage; |
||||
|
} |
||||
|
|
||||
|
public void setShowPage(String showPage) { |
||||
|
this.showPage = showPage == null ? null : showPage.trim(); |
||||
|
} |
||||
|
|
||||
|
public Integer getSort() { |
||||
|
return sort; |
||||
|
} |
||||
|
|
||||
|
public void setSort(Integer sort) { |
||||
|
this.sort = sort; |
||||
|
} |
||||
|
|
||||
|
public Long getOperator() { |
||||
|
return operator; |
||||
|
} |
||||
|
|
||||
|
public void setOperator(Long operator) { |
||||
|
this.operator = operator; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
|
} |
||||
|
|
||||
|
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
|
} |
||||
|
|
||||
|
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
|
} |
||||
|
|
||||
|
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
|
} |
||||
|
|
||||
|
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", url=").append(url); |
||||
|
sb.append(", jumpUrl=").append(jumpUrl); |
||||
|
sb.append(", param=").append(param); |
||||
|
sb.append(", type=").append(type); |
||||
|
sb.append(", showPosition=").append(showPosition); |
||||
|
sb.append(", showPage=").append(showPage); |
||||
|
sb.append(", sort=").append(sort); |
||||
|
sb.append(", operator=").append(operator); |
||||
|
sb.append(", createdAt=").append(createdAt); |
||||
|
sb.append(", updatedAt=").append(updatedAt); |
||||
|
sb.append(", recStatus=").append(recStatus); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,961 @@ |
|||||
|
package com.ccsens.braintraining.bean.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class AssistCarouselExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public AssistCarouselExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlIsNull() { |
||||
|
addCriterion("url is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlIsNotNull() { |
||||
|
addCriterion("url is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlEqualTo(String value) { |
||||
|
addCriterion("url =", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlNotEqualTo(String value) { |
||||
|
addCriterion("url <>", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlGreaterThan(String value) { |
||||
|
addCriterion("url >", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("url >=", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlLessThan(String value) { |
||||
|
addCriterion("url <", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlLessThanOrEqualTo(String value) { |
||||
|
addCriterion("url <=", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlLike(String value) { |
||||
|
addCriterion("url like", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlNotLike(String value) { |
||||
|
addCriterion("url not like", value, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlIn(List<String> values) { |
||||
|
addCriterion("url in", values, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlNotIn(List<String> values) { |
||||
|
addCriterion("url not in", values, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlBetween(String value1, String value2) { |
||||
|
addCriterion("url between", value1, value2, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUrlNotBetween(String value1, String value2) { |
||||
|
addCriterion("url not between", value1, value2, "url"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlIsNull() { |
||||
|
addCriterion("jump_url is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlIsNotNull() { |
||||
|
addCriterion("jump_url is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlEqualTo(String value) { |
||||
|
addCriterion("jump_url =", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlNotEqualTo(String value) { |
||||
|
addCriterion("jump_url <>", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlGreaterThan(String value) { |
||||
|
addCriterion("jump_url >", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("jump_url >=", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlLessThan(String value) { |
||||
|
addCriterion("jump_url <", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlLessThanOrEqualTo(String value) { |
||||
|
addCriterion("jump_url <=", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlLike(String value) { |
||||
|
addCriterion("jump_url like", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlNotLike(String value) { |
||||
|
addCriterion("jump_url not like", value, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlIn(List<String> values) { |
||||
|
addCriterion("jump_url in", values, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlNotIn(List<String> values) { |
||||
|
addCriterion("jump_url not in", values, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlBetween(String value1, String value2) { |
||||
|
addCriterion("jump_url between", value1, value2, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andJumpUrlNotBetween(String value1, String value2) { |
||||
|
addCriterion("jump_url not between", value1, value2, "jumpUrl"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamIsNull() { |
||||
|
addCriterion("param is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamIsNotNull() { |
||||
|
addCriterion("param is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamEqualTo(String value) { |
||||
|
addCriterion("param =", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamNotEqualTo(String value) { |
||||
|
addCriterion("param <>", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamGreaterThan(String value) { |
||||
|
addCriterion("param >", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("param >=", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamLessThan(String value) { |
||||
|
addCriterion("param <", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamLessThanOrEqualTo(String value) { |
||||
|
addCriterion("param <=", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamLike(String value) { |
||||
|
addCriterion("param like", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamNotLike(String value) { |
||||
|
addCriterion("param not like", value, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamIn(List<String> values) { |
||||
|
addCriterion("param in", values, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamNotIn(List<String> values) { |
||||
|
addCriterion("param not in", values, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamBetween(String value1, String value2) { |
||||
|
addCriterion("param between", value1, value2, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andParamNotBetween(String value1, String value2) { |
||||
|
addCriterion("param not between", value1, value2, "param"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIsNull() { |
||||
|
addCriterion("type is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIsNotNull() { |
||||
|
addCriterion("type is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeEqualTo(Byte value) { |
||||
|
addCriterion("type =", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotEqualTo(Byte value) { |
||||
|
addCriterion("type <>", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeGreaterThan(Byte value) { |
||||
|
addCriterion("type >", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("type >=", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeLessThan(Byte value) { |
||||
|
addCriterion("type <", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("type <=", value, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeIn(List<Byte> values) { |
||||
|
addCriterion("type in", values, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotIn(List<Byte> values) { |
||||
|
addCriterion("type not in", values, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("type between", value1, value2, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("type not between", value1, value2, "type"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionIsNull() { |
||||
|
addCriterion("show_position is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionIsNotNull() { |
||||
|
addCriterion("show_position is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionEqualTo(Byte value) { |
||||
|
addCriterion("show_position =", value, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionNotEqualTo(Byte value) { |
||||
|
addCriterion("show_position <>", value, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionGreaterThan(Byte value) { |
||||
|
addCriterion("show_position >", value, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("show_position >=", value, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionLessThan(Byte value) { |
||||
|
addCriterion("show_position <", value, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("show_position <=", value, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionIn(List<Byte> values) { |
||||
|
addCriterion("show_position in", values, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionNotIn(List<Byte> values) { |
||||
|
addCriterion("show_position not in", values, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("show_position between", value1, value2, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPositionNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("show_position not between", value1, value2, "showPosition"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageIsNull() { |
||||
|
addCriterion("show_page is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageIsNotNull() { |
||||
|
addCriterion("show_page is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageEqualTo(String value) { |
||||
|
addCriterion("show_page =", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageNotEqualTo(String value) { |
||||
|
addCriterion("show_page <>", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageGreaterThan(String value) { |
||||
|
addCriterion("show_page >", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("show_page >=", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageLessThan(String value) { |
||||
|
addCriterion("show_page <", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageLessThanOrEqualTo(String value) { |
||||
|
addCriterion("show_page <=", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageLike(String value) { |
||||
|
addCriterion("show_page like", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageNotLike(String value) { |
||||
|
addCriterion("show_page not like", value, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageIn(List<String> values) { |
||||
|
addCriterion("show_page in", values, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageNotIn(List<String> values) { |
||||
|
addCriterion("show_page not in", values, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageBetween(String value1, String value2) { |
||||
|
addCriterion("show_page between", value1, value2, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andShowPageNotBetween(String value1, String value2) { |
||||
|
addCriterion("show_page not between", value1, value2, "showPage"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortIsNull() { |
||||
|
addCriterion("sort is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortIsNotNull() { |
||||
|
addCriterion("sort is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortEqualTo(Integer value) { |
||||
|
addCriterion("sort =", value, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortNotEqualTo(Integer value) { |
||||
|
addCriterion("sort <>", value, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortGreaterThan(Integer value) { |
||||
|
addCriterion("sort >", value, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortGreaterThanOrEqualTo(Integer value) { |
||||
|
addCriterion("sort >=", value, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortLessThan(Integer value) { |
||||
|
addCriterion("sort <", value, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortLessThanOrEqualTo(Integer value) { |
||||
|
addCriterion("sort <=", value, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortIn(List<Integer> values) { |
||||
|
addCriterion("sort in", values, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortNotIn(List<Integer> values) { |
||||
|
addCriterion("sort not in", values, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("sort between", value1, value2, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andSortNotBetween(Integer value1, Integer value2) { |
||||
|
addCriterion("sort not between", value1, value2, "sort"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNull() { |
||||
|
addCriterion("operator is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIsNotNull() { |
||||
|
addCriterion("operator is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorEqualTo(Long value) { |
||||
|
addCriterion("operator =", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotEqualTo(Long value) { |
||||
|
addCriterion("operator <>", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThan(Long value) { |
||||
|
addCriterion("operator >", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator >=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThan(Long value) { |
||||
|
addCriterion("operator <", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("operator <=", value, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorIn(List<Long> values) { |
||||
|
addCriterion("operator in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotIn(List<Long> values) { |
||||
|
addCriterion("operator not in", values, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("operator not between", value1, value2, "operator"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNull() { |
||||
|
addCriterion("created_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIsNotNull() { |
||||
|
addCriterion("created_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtEqualTo(Date value) { |
||||
|
addCriterion("created_at =", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("created_at <>", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThan(Date value) { |
||||
|
addCriterion("created_at >", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at >=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThan(Date value) { |
||||
|
addCriterion("created_at <", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("created_at <=", value, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtIn(List<Date> values) { |
||||
|
addCriterion("created_at in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("created_at not in", values, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("created_at not between", value1, value2, "createdAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNull() { |
||||
|
addCriterion("updated_at is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIsNotNull() { |
||||
|
addCriterion("updated_at is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtEqualTo(Date value) { |
||||
|
addCriterion("updated_at =", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotEqualTo(Date value) { |
||||
|
addCriterion("updated_at <>", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThan(Date value) { |
||||
|
addCriterion("updated_at >", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at >=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThan(Date value) { |
||||
|
addCriterion("updated_at <", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("updated_at <=", value, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtIn(List<Date> values) { |
||||
|
addCriterion("updated_at in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotIn(List<Date> values) { |
||||
|
addCriterion("updated_at not in", values, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNull() { |
||||
|
addCriterion("rec_status is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIsNotNull() { |
||||
|
addCriterion("rec_status is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusEqualTo(Byte value) { |
||||
|
addCriterion("rec_status =", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <>", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThan(Byte value) { |
||||
|
addCriterion("rec_status >", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status >=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThan(Byte value) { |
||||
|
addCriterion("rec_status <", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
||||
|
addCriterion("rec_status <=", value, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusIn(List<Byte> values) { |
||||
|
addCriterion("rec_status in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotIn(List<Byte> values) { |
||||
|
addCriterion("rec_status not in", values, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
||||
|
addCriterion("rec_status not between", value1, value2, "recStatus"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.ccsens.braintraining.bean.vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2022/3/11 16:00 |
||||
|
*/ |
||||
|
public class CarouselVo { |
||||
|
@Data |
||||
|
@ApiModel("广告屏轮播图-返回") |
||||
|
public static class Base { |
||||
|
@ApiModelProperty("轮播图ID") |
||||
|
private Long carouselId; |
||||
|
@ApiModelProperty("图片路径") |
||||
|
private String url; |
||||
|
@ApiModelProperty("图片跳转路径") |
||||
|
private String jumpUrl; |
||||
|
@ApiModelProperty("图片参数") |
||||
|
private String param; |
||||
|
@ApiModelProperty("类型 0:图片 1:新闻资讯 2:天气预报 3:疫情 4:抽奖 5:活动") |
||||
|
private Byte type; |
||||
|
} |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.ccsens.braintraining.persist.dao; |
||||
|
|
||||
|
import com.ccsens.braintraining.bean.vo.CarouselVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author: whj |
||||
|
* @time: 2022/3/11 16:21 |
||||
|
*/ |
||||
|
public interface CarouselDao { |
||||
|
/** |
||||
|
* 查询大屏轮播图 |
||||
|
* @return 轮播 |
||||
|
*/ |
||||
|
List<CarouselVo.Base> queryShow(); |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.ccsens.braintraining.persist.mapper; |
||||
|
|
||||
|
import com.ccsens.braintraining.bean.po.AssistCarousel; |
||||
|
import com.ccsens.braintraining.bean.po.AssistCarouselExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface AssistCarouselMapper { |
||||
|
long countByExample(AssistCarouselExample example); |
||||
|
|
||||
|
int deleteByExample(AssistCarouselExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(AssistCarousel record); |
||||
|
|
||||
|
int insertSelective(AssistCarousel record); |
||||
|
|
||||
|
List<AssistCarousel> selectByExample(AssistCarouselExample example); |
||||
|
|
||||
|
AssistCarousel selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") AssistCarousel record, @Param("example") AssistCarouselExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") AssistCarousel record, @Param("example") AssistCarouselExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(AssistCarousel record); |
||||
|
|
||||
|
int updateByPrimaryKey(AssistCarousel record); |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.ccsens.braintraining.service; |
||||
|
|
||||
|
import com.ccsens.braintraining.bean.vo.CarouselVo; |
||||
|
import com.ccsens.braintraining.persist.dao.CarouselDao; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Propagation; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: whj |
||||
|
* @time: 2022/3/11 16:18 |
||||
|
*/ |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
||||
|
public class CarouselService implements ICarouselService { |
||||
|
@Resource |
||||
|
private CarouselDao carouselDao; |
||||
|
|
||||
|
@Override |
||||
|
public List<CarouselVo.Base> show() { |
||||
|
return carouselDao.queryShow(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.ccsens.braintraining.service; |
||||
|
|
||||
|
import com.ccsens.braintraining.bean.vo.CarouselVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author: whj |
||||
|
* @time: 2022/3/11 16:18 |
||||
|
*/ |
||||
|
public interface ICarouselService { |
||||
|
/** |
||||
|
* 查询大屏轮播图 |
||||
|
* @return |
||||
|
*/ |
||||
|
List<CarouselVo.Base> show(); |
||||
|
} |
@ -1,37 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" |
|
||||
updateCheck="false" |
|
||||
name="myEhcache"> |
|
||||
<diskStore path="java.io.tmpdir/Tmp_EhCache"/> |
|
||||
<defaultCache eternal="false" |
|
||||
maxElementsInMemory="1000" |
|
||||
overflowToDisk="false" |
|
||||
diskPersistent="false" |
|
||||
timeToIdleSeconds="0" |
|
||||
timeToLiveSeconds="600" |
|
||||
memoryStoreEvictionPolicy="LRU"/> |
|
||||
<cache name="user" |
|
||||
eternal="false" |
|
||||
maxElementsInMemory="10000" |
|
||||
overflowToDisk="false" |
|
||||
diskPersistent="false" |
|
||||
timeToIdleSeconds="0" |
|
||||
timeToLiveSeconds="0" |
|
||||
memoryStoreEvictionPolicy="LFU"/> |
|
||||
<!-- |
|
||||
缓存配置 |
|
||||
name: 缓存名称。 |
|
||||
maxElementsInMemory: 缓存最大个数。 |
|
||||
eternal: 对象是否永久有效,一但设置了,timeout将不起作用。 |
|
||||
timeToIdleSeconds: 设置对象在失效前的允许闲置时间(单位:秒)。仅当eternal=false对象不是永久有效时使用,可选属性,默认值是0,也就是可闲置时间无穷大。 |
|
||||
timeToLiveSeconds: 设置对象在失效前允许存活时间(单位:秒)。最大时间介于创建时间和失效时间之间。仅当eternal=false对象不是永久有效时使用,默认是0.,也就是对象存活时间无穷大。 |
|
||||
overflowToDisk: 当内存中对象数量达到maxElementsInMemory时,Ehcache将会对象写到磁盘中。 |
|
||||
diskSpoolBufferSizeMB: 这个参数设置DiskStore(磁盘缓存)的缓存区大小。默认是30MB。每个Cache都应该有自己的一个缓冲区。 |
|
||||
maxElementsOnDisk: 硬盘最大缓存个数。 |
|
||||
diskPersistent: 是否缓存虚拟机重启期数据 Whether the disk store persists between restarts of the Virtual Machine. The default value is false. |
|
||||
diskExpiryThreadIntervalSeconds:磁盘失效线程运行时间间隔,默认是120秒。 |
|
||||
memoryStoreEvictionPolicy: 当达到maxElementsInMemory限制时,Ehcache将会根据指定的策略去清理内存。默认策略是LRU(最近最少使用)。你可以设置为FIFO(先进先出)或是LFU(较少使用)。 |
|
||||
clearOnFlush: 内存数量最大时是否清除。 |
|
||||
--> |
|
||||
</ehcache> |
|
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.braintraining.persist.dao.CarouselDao"> |
||||
|
<select id="queryShow" resultType="com.ccsens.braintraining.bean.vo.CarouselVo$Base"> |
||||
|
SELECT |
||||
|
id AS carouselId, |
||||
|
url, |
||||
|
jump_url, |
||||
|
param, |
||||
|
type |
||||
|
FROM |
||||
|
t_assist_carousel |
||||
|
WHERE |
||||
|
rec_status = 0 |
||||
|
ORDER BY |
||||
|
sort ASC |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,323 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ccsens.braintraining.persist.mapper.AssistCarouselMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.ccsens.braintraining.bean.po.AssistCarousel"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="url" jdbcType="VARCHAR" property="url" /> |
||||
|
<result column="jump_url" jdbcType="VARCHAR" property="jumpUrl" /> |
||||
|
<result column="param" jdbcType="VARCHAR" property="param" /> |
||||
|
<result column="type" jdbcType="TINYINT" property="type" /> |
||||
|
<result column="show_position" jdbcType="TINYINT" property="showPosition" /> |
||||
|
<result column="show_page" jdbcType="VARCHAR" property="showPage" /> |
||||
|
<result column="sort" jdbcType="INTEGER" property="sort" /> |
||||
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
||||
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, url, jump_url, param, type, show_position, show_page, sort, operator, created_at, |
||||
|
updated_at, rec_status |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.ccsens.braintraining.bean.po.AssistCarouselExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_assist_carousel |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from t_assist_carousel |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from t_assist_carousel |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<delete id="deleteByExample" parameterType="com.ccsens.braintraining.bean.po.AssistCarouselExample"> |
||||
|
delete from t_assist_carousel |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.ccsens.braintraining.bean.po.AssistCarousel"> |
||||
|
insert into t_assist_carousel (id, url, jump_url, |
||||
|
param, type, show_position, |
||||
|
show_page, sort, operator, |
||||
|
created_at, updated_at, rec_status |
||||
|
) |
||||
|
values (#{id,jdbcType=BIGINT}, #{url,jdbcType=VARCHAR}, #{jumpUrl,jdbcType=VARCHAR}, |
||||
|
#{param,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{showPosition,jdbcType=TINYINT}, |
||||
|
#{showPage,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
||||
|
) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.ccsens.braintraining.bean.po.AssistCarousel"> |
||||
|
insert into t_assist_carousel |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="url != null"> |
||||
|
url, |
||||
|
</if> |
||||
|
<if test="jumpUrl != null"> |
||||
|
jump_url, |
||||
|
</if> |
||||
|
<if test="param != null"> |
||||
|
param, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
type, |
||||
|
</if> |
||||
|
<if test="showPosition != null"> |
||||
|
show_position, |
||||
|
</if> |
||||
|
<if test="showPage != null"> |
||||
|
show_page, |
||||
|
</if> |
||||
|
<if test="sort != null"> |
||||
|
sort, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="url != null"> |
||||
|
#{url,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="jumpUrl != null"> |
||||
|
#{jumpUrl,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="param != null"> |
||||
|
#{param,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
#{type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="showPosition != null"> |
||||
|
#{showPosition,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="showPage != null"> |
||||
|
#{showPage,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="sort != null"> |
||||
|
#{sort,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
#{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
#{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
#{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.ccsens.braintraining.bean.po.AssistCarouselExample" resultType="java.lang.Long"> |
||||
|
select count(*) from t_assist_carousel |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update t_assist_carousel |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.url != null"> |
||||
|
url = #{record.url,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.jumpUrl != null"> |
||||
|
jump_url = #{record.jumpUrl,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.param != null"> |
||||
|
param = #{record.param,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.type != null"> |
||||
|
type = #{record.type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.showPosition != null"> |
||||
|
show_position = #{record.showPosition,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="record.showPage != null"> |
||||
|
show_page = #{record.showPage,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.sort != null"> |
||||
|
sort = #{record.sort,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="record.operator != null"> |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createdAt != null"> |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updatedAt != null"> |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.recStatus != null"> |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update t_assist_carousel |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
url = #{record.url,jdbcType=VARCHAR}, |
||||
|
jump_url = #{record.jumpUrl,jdbcType=VARCHAR}, |
||||
|
param = #{record.param,jdbcType=VARCHAR}, |
||||
|
type = #{record.type,jdbcType=TINYINT}, |
||||
|
show_position = #{record.showPosition,jdbcType=TINYINT}, |
||||
|
show_page = #{record.showPage,jdbcType=VARCHAR}, |
||||
|
sort = #{record.sort,jdbcType=INTEGER}, |
||||
|
operator = #{record.operator,jdbcType=BIGINT}, |
||||
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.braintraining.bean.po.AssistCarousel"> |
||||
|
update t_assist_carousel |
||||
|
<set> |
||||
|
<if test="url != null"> |
||||
|
url = #{url,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="jumpUrl != null"> |
||||
|
jump_url = #{jumpUrl,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="param != null"> |
||||
|
param = #{param,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="type != null"> |
||||
|
type = #{type,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="showPosition != null"> |
||||
|
show_position = #{showPosition,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
<if test="showPage != null"> |
||||
|
show_page = #{showPage,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="sort != null"> |
||||
|
sort = #{sort,jdbcType=INTEGER}, |
||||
|
</if> |
||||
|
<if test="operator != null"> |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createdAt != null"> |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updatedAt != null"> |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="recStatus != null"> |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.braintraining.bean.po.AssistCarousel"> |
||||
|
update t_assist_carousel |
||||
|
set url = #{url,jdbcType=VARCHAR}, |
||||
|
jump_url = #{jumpUrl,jdbcType=VARCHAR}, |
||||
|
param = #{param,jdbcType=VARCHAR}, |
||||
|
type = #{type,jdbcType=TINYINT}, |
||||
|
show_position = #{showPosition,jdbcType=TINYINT}, |
||||
|
show_page = #{showPage,jdbcType=VARCHAR}, |
||||
|
sort = #{sort,jdbcType=INTEGER}, |
||||
|
operator = #{operator,jdbcType=BIGINT}, |
||||
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
|
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
Loading…
Reference in new issue