Commit 29e19a4b by XiaHou

系统参数编码业务提交

parent 49041df9
......@@ -19,9 +19,20 @@
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<exclusions>
<exclusion>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -232,6 +243,12 @@
<artifactId>swagger-bootstrap-ui</artifactId>
<version>1.9.6</version>
</dependency>
<!--代码生成器@entity等注解标识-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>
<!--<repositories>-->
......
package com;
package com.atlgroupasia;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
......@@ -10,12 +10,11 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@EnableSwagger2
@EnableCaching
@MapperScan(value = "com.atlgroupasia.servicecenter.mapper")
@MapperScan(value = {"com.atlgroupasia.servicecenter.mapper", "com.atlgroupasia.servicecenter.mbg.mapper", "com.atlgroupasia.servicecenter.operation.*.dao"})
@ComponentScan(basePackages = {"com.atlgroupasia.servicecenter.*"})
public class ServicecenterApplication {
public static void main(String[] args) {
SpringApplication.run(ServicecenterApplication.class, args);
}
......
package com.atlgroupasia.servicecenter.mbg.mapper;
import com.atlgroupasia.servicecenter.mbg.po.OshExhibit;
import com.atlgroupasia.servicecenter.mbg.po.OshExhibitExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OshExhibitMapper {
long countByExample(OshExhibitExample example);
int deleteByExample(OshExhibitExample example);
int deleteByPrimaryKey(Integer id);
int insert(OshExhibit record);
int insertSelective(OshExhibit record);
List<OshExhibit> selectByExample(OshExhibitExample example);
OshExhibit selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") OshExhibit record, @Param("example") OshExhibitExample example);
int updateByExample(@Param("record") OshExhibit record, @Param("example") OshExhibitExample example);
int updateByPrimaryKeySelective(OshExhibit record);
int updateByPrimaryKey(OshExhibit record);
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.mbg.po;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
public class OshExhibit implements Serializable {
@ApiModelProperty(value = "展览纪念馆id")
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Integer id;
@ApiModelProperty(value = "寺庙id")
private Integer templeId;
@ApiModelProperty(value = "联系电话")
private String phone;
@ApiModelProperty(value = "参观开始时间")
private String joinStartTime;
@ApiModelProperty(value = "参观结束时间")
private String joinEndTime;
@ApiModelProperty(value = "报名开始时间")
private String applyStartTime;
@ApiModelProperty(value = "报名结束时间")
private String applyEndTime;
@ApiModelProperty(value = "最大报名人数")
private Integer totalNumber;
@ApiModelProperty(value = "已报名人数")
private Integer appNumber;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
private Integer isDel;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getTempleId() {
return templeId;
}
public void setTempleId(Integer templeId) {
this.templeId = templeId;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getJoinStartTime() {
return joinStartTime;
}
public void setJoinStartTime(String joinStartTime) {
this.joinStartTime = joinStartTime;
}
public String getJoinEndTime() {
return joinEndTime;
}
public void setJoinEndTime(String joinEndTime) {
this.joinEndTime = joinEndTime;
}
public String getApplyStartTime() {
return applyStartTime;
}
public void setApplyStartTime(String applyStartTime) {
this.applyStartTime = applyStartTime;
}
public String getApplyEndTime() {
return applyEndTime;
}
public void setApplyEndTime(String applyEndTime) {
this.applyEndTime = applyEndTime;
}
public Integer getTotalNumber() {
return totalNumber;
}
public void setTotalNumber(Integer totalNumber) {
this.totalNumber = totalNumber;
}
public Integer getAppNumber() {
return appNumber;
}
public void setAppNumber(Integer appNumber) {
this.appNumber = appNumber;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getIsDel() {
return isDel;
}
public void setIsDel(Integer isDel) {
this.isDel = isDel;
}
@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(", templeId=").append(templeId);
sb.append(", phone=").append(phone);
sb.append(", joinStartTime=").append(joinStartTime);
sb.append(", joinEndTime=").append(joinEndTime);
sb.append(", applyStartTime=").append(applyStartTime);
sb.append(", applyEndTime=").append(applyEndTime);
sb.append(", totalNumber=").append(totalNumber);
sb.append(", appNumber=").append(appNumber);
sb.append(", createTime=").append(createTime);
sb.append(", isDel=").append(isDel);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.mbg.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OshExhibitExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public OshExhibitExample() {
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(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTempleIdIsNull() {
addCriterion("temple_id is null");
return (Criteria) this;
}
public Criteria andTempleIdIsNotNull() {
addCriterion("temple_id is not null");
return (Criteria) this;
}
public Criteria andTempleIdEqualTo(Integer value) {
addCriterion("temple_id =", value, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdNotEqualTo(Integer value) {
addCriterion("temple_id <>", value, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdGreaterThan(Integer value) {
addCriterion("temple_id >", value, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdGreaterThanOrEqualTo(Integer value) {
addCriterion("temple_id >=", value, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdLessThan(Integer value) {
addCriterion("temple_id <", value, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdLessThanOrEqualTo(Integer value) {
addCriterion("temple_id <=", value, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdIn(List<Integer> values) {
addCriterion("temple_id in", values, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdNotIn(List<Integer> values) {
addCriterion("temple_id not in", values, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdBetween(Integer value1, Integer value2) {
addCriterion("temple_id between", value1, value2, "templeId");
return (Criteria) this;
}
public Criteria andTempleIdNotBetween(Integer value1, Integer value2) {
addCriterion("temple_id not between", value1, value2, "templeId");
return (Criteria) this;
}
public Criteria andPhoneIsNull() {
addCriterion("phone is null");
return (Criteria) this;
}
public Criteria andPhoneIsNotNull() {
addCriterion("phone is not null");
return (Criteria) this;
}
public Criteria andPhoneEqualTo(String value) {
addCriterion("phone =", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotEqualTo(String value) {
addCriterion("phone <>", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneGreaterThan(String value) {
addCriterion("phone >", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneGreaterThanOrEqualTo(String value) {
addCriterion("phone >=", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLessThan(String value) {
addCriterion("phone <", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLessThanOrEqualTo(String value) {
addCriterion("phone <=", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLike(String value) {
addCriterion("phone like", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotLike(String value) {
addCriterion("phone not like", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneIn(List<String> values) {
addCriterion("phone in", values, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotIn(List<String> values) {
addCriterion("phone not in", values, "phone");
return (Criteria) this;
}
public Criteria andPhoneBetween(String value1, String value2) {
addCriterion("phone between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotBetween(String value1, String value2) {
addCriterion("phone not between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andJoinStartTimeIsNull() {
addCriterion("join_start_time is null");
return (Criteria) this;
}
public Criteria andJoinStartTimeIsNotNull() {
addCriterion("join_start_time is not null");
return (Criteria) this;
}
public Criteria andJoinStartTimeEqualTo(String value) {
addCriterion("join_start_time =", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeNotEqualTo(String value) {
addCriterion("join_start_time <>", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeGreaterThan(String value) {
addCriterion("join_start_time >", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeGreaterThanOrEqualTo(String value) {
addCriterion("join_start_time >=", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeLessThan(String value) {
addCriterion("join_start_time <", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeLessThanOrEqualTo(String value) {
addCriterion("join_start_time <=", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeLike(String value) {
addCriterion("join_start_time like", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeNotLike(String value) {
addCriterion("join_start_time not like", value, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeIn(List<String> values) {
addCriterion("join_start_time in", values, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeNotIn(List<String> values) {
addCriterion("join_start_time not in", values, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeBetween(String value1, String value2) {
addCriterion("join_start_time between", value1, value2, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinStartTimeNotBetween(String value1, String value2) {
addCriterion("join_start_time not between", value1, value2, "joinStartTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeIsNull() {
addCriterion("join_end_time is null");
return (Criteria) this;
}
public Criteria andJoinEndTimeIsNotNull() {
addCriterion("join_end_time is not null");
return (Criteria) this;
}
public Criteria andJoinEndTimeEqualTo(String value) {
addCriterion("join_end_time =", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeNotEqualTo(String value) {
addCriterion("join_end_time <>", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeGreaterThan(String value) {
addCriterion("join_end_time >", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeGreaterThanOrEqualTo(String value) {
addCriterion("join_end_time >=", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeLessThan(String value) {
addCriterion("join_end_time <", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeLessThanOrEqualTo(String value) {
addCriterion("join_end_time <=", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeLike(String value) {
addCriterion("join_end_time like", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeNotLike(String value) {
addCriterion("join_end_time not like", value, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeIn(List<String> values) {
addCriterion("join_end_time in", values, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeNotIn(List<String> values) {
addCriterion("join_end_time not in", values, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeBetween(String value1, String value2) {
addCriterion("join_end_time between", value1, value2, "joinEndTime");
return (Criteria) this;
}
public Criteria andJoinEndTimeNotBetween(String value1, String value2) {
addCriterion("join_end_time not between", value1, value2, "joinEndTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeIsNull() {
addCriterion("apply_start_time is null");
return (Criteria) this;
}
public Criteria andApplyStartTimeIsNotNull() {
addCriterion("apply_start_time is not null");
return (Criteria) this;
}
public Criteria andApplyStartTimeEqualTo(String value) {
addCriterion("apply_start_time =", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeNotEqualTo(String value) {
addCriterion("apply_start_time <>", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeGreaterThan(String value) {
addCriterion("apply_start_time >", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeGreaterThanOrEqualTo(String value) {
addCriterion("apply_start_time >=", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeLessThan(String value) {
addCriterion("apply_start_time <", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeLessThanOrEqualTo(String value) {
addCriterion("apply_start_time <=", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeLike(String value) {
addCriterion("apply_start_time like", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeNotLike(String value) {
addCriterion("apply_start_time not like", value, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeIn(List<String> values) {
addCriterion("apply_start_time in", values, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeNotIn(List<String> values) {
addCriterion("apply_start_time not in", values, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeBetween(String value1, String value2) {
addCriterion("apply_start_time between", value1, value2, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyStartTimeNotBetween(String value1, String value2) {
addCriterion("apply_start_time not between", value1, value2, "applyStartTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeIsNull() {
addCriterion("apply_end_time is null");
return (Criteria) this;
}
public Criteria andApplyEndTimeIsNotNull() {
addCriterion("apply_end_time is not null");
return (Criteria) this;
}
public Criteria andApplyEndTimeEqualTo(String value) {
addCriterion("apply_end_time =", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeNotEqualTo(String value) {
addCriterion("apply_end_time <>", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeGreaterThan(String value) {
addCriterion("apply_end_time >", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeGreaterThanOrEqualTo(String value) {
addCriterion("apply_end_time >=", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeLessThan(String value) {
addCriterion("apply_end_time <", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeLessThanOrEqualTo(String value) {
addCriterion("apply_end_time <=", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeLike(String value) {
addCriterion("apply_end_time like", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeNotLike(String value) {
addCriterion("apply_end_time not like", value, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeIn(List<String> values) {
addCriterion("apply_end_time in", values, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeNotIn(List<String> values) {
addCriterion("apply_end_time not in", values, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeBetween(String value1, String value2) {
addCriterion("apply_end_time between", value1, value2, "applyEndTime");
return (Criteria) this;
}
public Criteria andApplyEndTimeNotBetween(String value1, String value2) {
addCriterion("apply_end_time not between", value1, value2, "applyEndTime");
return (Criteria) this;
}
public Criteria andTotalNumberIsNull() {
addCriterion("total_number is null");
return (Criteria) this;
}
public Criteria andTotalNumberIsNotNull() {
addCriterion("total_number is not null");
return (Criteria) this;
}
public Criteria andTotalNumberEqualTo(Integer value) {
addCriterion("total_number =", value, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberNotEqualTo(Integer value) {
addCriterion("total_number <>", value, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberGreaterThan(Integer value) {
addCriterion("total_number >", value, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberGreaterThanOrEqualTo(Integer value) {
addCriterion("total_number >=", value, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberLessThan(Integer value) {
addCriterion("total_number <", value, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberLessThanOrEqualTo(Integer value) {
addCriterion("total_number <=", value, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberIn(List<Integer> values) {
addCriterion("total_number in", values, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberNotIn(List<Integer> values) {
addCriterion("total_number not in", values, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberBetween(Integer value1, Integer value2) {
addCriterion("total_number between", value1, value2, "totalNumber");
return (Criteria) this;
}
public Criteria andTotalNumberNotBetween(Integer value1, Integer value2) {
addCriterion("total_number not between", value1, value2, "totalNumber");
return (Criteria) this;
}
public Criteria andAppNumberIsNull() {
addCriterion("app_number is null");
return (Criteria) this;
}
public Criteria andAppNumberIsNotNull() {
addCriterion("app_number is not null");
return (Criteria) this;
}
public Criteria andAppNumberEqualTo(Integer value) {
addCriterion("app_number =", value, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberNotEqualTo(Integer value) {
addCriterion("app_number <>", value, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberGreaterThan(Integer value) {
addCriterion("app_number >", value, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberGreaterThanOrEqualTo(Integer value) {
addCriterion("app_number >=", value, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberLessThan(Integer value) {
addCriterion("app_number <", value, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberLessThanOrEqualTo(Integer value) {
addCriterion("app_number <=", value, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberIn(List<Integer> values) {
addCriterion("app_number in", values, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberNotIn(List<Integer> values) {
addCriterion("app_number not in", values, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberBetween(Integer value1, Integer value2) {
addCriterion("app_number between", value1, value2, "appNumber");
return (Criteria) this;
}
public Criteria andAppNumberNotBetween(Integer value1, Integer value2) {
addCriterion("app_number not between", value1, value2, "appNumber");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Integer value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Integer value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Integer value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Integer value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Integer value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Integer> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Integer> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Integer value1, Integer value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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);
}
}
}
\ No newline at end of file
package com.atlgroupasia.servicecenter.operation.exhibit.dao;
import com.atlgroupasia.servicecenter.operation.exhibit.pojo.QueryExhibitParam;
import com.atlgroupasia.servicecenter.operation.exhibit.pojo.QueryExhibitVO;
import java.util.List;
/**
* @Author xh
* @Date 2021/4/15
* description:
*/
public interface OshExhibitDao {
/**
* 根据其他参数查询 展示馆list
*
* @param queryExhibitParam
* @return
*/
List<QueryExhibitVO> selectExhibitListByOther(QueryExhibitParam queryExhibitParam);
}
package com.atlgroupasia.servicecenter.operation.exhibit.pojo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @Author xh
* @Date 2021/4/15
* description:
*/
@Data
public class QueryExhibitParam implements Serializable {
@ApiModelProperty(value = "展览纪念馆id")
private Integer id;
@ApiModelProperty(value = "寺庙id")
private Integer templeId;
@ApiModelProperty(value = "参观开始时间")
private String phone;
@ApiModelProperty(value = "参观开始时间")
private String joinStartTime;
@ApiModelProperty(value = "参观结束时间")
private String joinEndTime;
@ApiModelProperty(value = "报名开始时间")
private String applyStartTime;
@ApiModelProperty(value = "报名结束时间")
private String applyEndTime;
@ApiModelProperty(value = "最大报名人数")
private Integer totalNumber;
@ApiModelProperty(value = "已报名人数")
private Integer appNumber;
@ApiModelProperty(value = "寺庙名称")
private String templeName;
}
package com.atlgroupasia.servicecenter.operation.exhibit.pojo;
import lombok.Data;
import java.io.Serializable;
/**
* @Author xh
* @Date 2021/4/15
* description:
*/
@Data
public class QueryExhibitVO implements Serializable {
}
package com.atlgroupasia.servicecenter.operation.exhibit.service;
/**
* @Author xh
* @Date 2021/4/15
* description:
*/
public interface IOshExhibitService {
}
package com.atlgroupasia.servicecenter.operation.exhibit.service.impl;
import com.atlgroupasia.servicecenter.mbg.mapper.OshExhibitMapper;
import com.atlgroupasia.servicecenter.operation.exhibit.dao.OshExhibitDao;
import com.atlgroupasia.servicecenter.operation.exhibit.service.IOshExhibitService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* @Author xh
* @Date 2021/4/15
* description:
*/
@Service
public class OshExhibitServiceImpl implements IOshExhibitService {
@Resource
private OshExhibitMapper oshExhibitMapper;
@Resource
private OshExhibitDao oshExhibitDao;
}
......@@ -10,9 +10,14 @@ spring:
#���ݿ�����
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://lmerp001w.mysql.rds.aliyuncs.com/lmerp?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: test_erp
password: Fzii591com
#url: jdbc:mysql://lmerp001w.mysql.rds.aliyuncs.com/lmerp?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
#username: test_erp
#password: Fzii591com
url: jdbc:mysql://47.98.216.76:3306/atl-service-center?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 6just@2019
type: com.alibaba.druid.pool.DruidDataSource
......@@ -29,10 +34,12 @@ spring:
database: 0
# Redis服务器地址
host: 47.98.96.174
#host: 127.0.0.1
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
password: "root123!!"
#password: ""
#password: atl@redis_120726
jedis:
pool:
......@@ -53,7 +60,7 @@ server:
#����myba
#配置mybatis
mybatis:
mapper-locations: classpath:mapper/*.xml
mapper-locations: classpath:mapper/**/*.xml
#全局的映射,不用在xml文件写实体类的全路径
type-aliases-package: com.atlgroupasia.servicecenter
#开启驼峰映射
......
<?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.atlgroupasia.servicecenter.mbg.mapper.OshExhibitMapper">
<resultMap id="BaseResultMap" type="com.atlgroupasia.servicecenter.mbg.po.OshExhibit">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="temple_id" jdbcType="INTEGER" property="templeId" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="join_start_time" jdbcType="VARCHAR" property="joinStartTime" />
<result column="join_end_time" jdbcType="VARCHAR" property="joinEndTime" />
<result column="apply_start_time" jdbcType="VARCHAR" property="applyStartTime" />
<result column="apply_end_time" jdbcType="VARCHAR" property="applyEndTime" />
<result column="total_number" jdbcType="INTEGER" property="totalNumber" />
<result column="app_number" jdbcType="INTEGER" property="appNumber" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="is_del" jdbcType="TINYINT" property="isDel" />
</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, temple_id, phone, join_start_time, join_end_time, apply_start_time, apply_end_time,
total_number, app_number, create_time, is_del
</sql>
<select id="selectByExample" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibitExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from osh_exhibit
<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.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from osh_exhibit
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from osh_exhibit
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibitExample">
delete from osh_exhibit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibit">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into osh_exhibit (temple_id, phone, join_start_time,
join_end_time, apply_start_time, apply_end_time,
total_number, app_number, create_time,
is_del)
values (#{templeId,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, #{joinStartTime,jdbcType=VARCHAR},
#{joinEndTime,jdbcType=VARCHAR}, #{applyStartTime,jdbcType=VARCHAR}, #{applyEndTime,jdbcType=VARCHAR},
#{totalNumber,jdbcType=INTEGER}, #{appNumber,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{isDel,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibit">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into osh_exhibit
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templeId != null">
temple_id,
</if>
<if test="phone != null">
phone,
</if>
<if test="joinStartTime != null">
join_start_time,
</if>
<if test="joinEndTime != null">
join_end_time,
</if>
<if test="applyStartTime != null">
apply_start_time,
</if>
<if test="applyEndTime != null">
apply_end_time,
</if>
<if test="totalNumber != null">
total_number,
</if>
<if test="appNumber != null">
app_number,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="isDel != null">
is_del,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templeId != null">
#{templeId,jdbcType=INTEGER},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="joinStartTime != null">
#{joinStartTime,jdbcType=VARCHAR},
</if>
<if test="joinEndTime != null">
#{joinEndTime,jdbcType=VARCHAR},
</if>
<if test="applyStartTime != null">
#{applyStartTime,jdbcType=VARCHAR},
</if>
<if test="applyEndTime != null">
#{applyEndTime,jdbcType=VARCHAR},
</if>
<if test="totalNumber != null">
#{totalNumber,jdbcType=INTEGER},
</if>
<if test="appNumber != null">
#{appNumber,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isDel != null">
#{isDel,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibitExample" resultType="java.lang.Long">
select count(*) from osh_exhibit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update osh_exhibit
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.templeId != null">
temple_id = #{record.templeId,jdbcType=INTEGER},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.joinStartTime != null">
join_start_time = #{record.joinStartTime,jdbcType=VARCHAR},
</if>
<if test="record.joinEndTime != null">
join_end_time = #{record.joinEndTime,jdbcType=VARCHAR},
</if>
<if test="record.applyStartTime != null">
apply_start_time = #{record.applyStartTime,jdbcType=VARCHAR},
</if>
<if test="record.applyEndTime != null">
apply_end_time = #{record.applyEndTime,jdbcType=VARCHAR},
</if>
<if test="record.totalNumber != null">
total_number = #{record.totalNumber,jdbcType=INTEGER},
</if>
<if test="record.appNumber != null">
app_number = #{record.appNumber,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isDel != null">
is_del = #{record.isDel,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update osh_exhibit
set id = #{record.id,jdbcType=INTEGER},
temple_id = #{record.templeId,jdbcType=INTEGER},
phone = #{record.phone,jdbcType=VARCHAR},
join_start_time = #{record.joinStartTime,jdbcType=VARCHAR},
join_end_time = #{record.joinEndTime,jdbcType=VARCHAR},
apply_start_time = #{record.applyStartTime,jdbcType=VARCHAR},
apply_end_time = #{record.applyEndTime,jdbcType=VARCHAR},
total_number = #{record.totalNumber,jdbcType=INTEGER},
app_number = #{record.appNumber,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
is_del = #{record.isDel,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibit">
update osh_exhibit
<set>
<if test="templeId != null">
temple_id = #{templeId,jdbcType=INTEGER},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="joinStartTime != null">
join_start_time = #{joinStartTime,jdbcType=VARCHAR},
</if>
<if test="joinEndTime != null">
join_end_time = #{joinEndTime,jdbcType=VARCHAR},
</if>
<if test="applyStartTime != null">
apply_start_time = #{applyStartTime,jdbcType=VARCHAR},
</if>
<if test="applyEndTime != null">
apply_end_time = #{applyEndTime,jdbcType=VARCHAR},
</if>
<if test="totalNumber != null">
total_number = #{totalNumber,jdbcType=INTEGER},
</if>
<if test="appNumber != null">
app_number = #{appNumber,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isDel != null">
is_del = #{isDel,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.atlgroupasia.servicecenter.mbg.po.OshExhibit">
update osh_exhibit
set temple_id = #{templeId,jdbcType=INTEGER},
phone = #{phone,jdbcType=VARCHAR},
join_start_time = #{joinStartTime,jdbcType=VARCHAR},
join_end_time = #{joinEndTime,jdbcType=VARCHAR},
apply_start_time = #{applyStartTime,jdbcType=VARCHAR},
apply_end_time = #{applyEndTime,jdbcType=VARCHAR},
total_number = #{totalNumber,jdbcType=INTEGER},
app_number = #{appNumber,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
is_del = #{isDel,jdbcType=TINYINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?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.atlgroupasia.servicecenter.operation.exhibit.dao.OshExhibitDao">
<resultMap id="baseResultMap" type="com.atlgroupasia.servicecenter.mbg.po.OshExhibit" extends="com.atlgroupasia.servicecenter.mbg.mapper.OshExhibitMapper.BaseResultMap">
</resultMap>
<select id="selectExhibitListByOther" parameterType="com.atlgroupasia.servicecenter.operation.exhibit.pojo.QueryExhibitParam" resultType="com.atlgroupasia.servicecenter.operation.exhibit.pojo.QueryExhibitVO">
select
a.id,a.temple_id templeId
from osh_exhibit a
left join mis_temple b ON a.temple_id = b.id
</select>
</mapper>
\ No newline at end of file
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