Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
82b549e4
Commit
82b549e4
authored
Nov 06, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序页面弹框配置
parent
d2481e63
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2118 additions
and
3 deletions
+2118
-3
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AppletPageConfigDao.java
.../com/wwdz/ch/db/dao/distribution/AppletPageConfigDao.java
+12
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AppletPageConfig.java
.../com/wwdz/ch/db/domain/distribution/AppletPageConfig.java
+283
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AppletPageConfigExample.java
...dz/ch/db/domain/distribution/AppletPageConfigExample.java
+1266
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/AppletPageConfigRequestDto.java
.../dto/request/distribution/AppletPageConfigRequestDto.java
+38
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AppletPageConfigDaoImpl.java
...wwdz/ch/db/impl/distribution/AppletPageConfigDaoImpl.java
+28
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/AppletPageConfigMapper.java
...wdz/ch/db/mapper/distribution/AppletPageConfigMapper.java
+69
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/AppletPageConfigMapper.xml
...wwdz/ch/db/mapper/distribution/AppletPageConfigMapper.xml
+338
-0
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+3
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AppletPageConfigServiceImpl.java
.../ch/wx/impl/distribution/AppletPageConfigServiceImpl.java
+31
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/AppletPageConfigService.java
...z/ch/wx/service/distribution/AppletPageConfigService.java
+14
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/AppletPageConfigController.java
...dz/ch/wx/web/distribution/AppletPageConfigController.java
+35
-0
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/AppletPageConfigDao.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.db.dao.distribution
;
import
com.wwdz.ch.db.domain.distribution.AppletPageConfig
;
import
com.wwdz.ch.db.dto.request.distribution.AppletPageConfigRequestDto
;
public
interface
AppletPageConfigDao
{
boolean
insert
(
AppletPageConfig
appletPageConfig
);
AppletPageConfig
findList
(
AppletPageConfigRequestDto
dto
);
}
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AppletPageConfig.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.db.domain.distribution
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2024/11/06
*/
@Data
public
class
AppletPageConfig
implements
Entity
{
private
Integer
id
;
/**
* 标题
*/
private
String
title
;
/**
* 图片
*/
private
String
image
;
/**
* 跳转链接
*/
private
String
link
;
/**
* 对应小程序的页面
*/
private
String
appletPage
;
/**
* 类型
*/
private
Integer
type
;
/**
* 是否有效
*/
private
Boolean
isValid
;
private
static
final
long
serialVersionUID
=
1L
;
@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
(
", title="
).
append
(
title
);
sb
.
append
(
", image="
).
append
(
image
);
sb
.
append
(
", link="
).
append
(
link
);
sb
.
append
(
", appletPage="
).
append
(
appletPage
);
sb
.
append
(
", type="
).
append
(
type
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
AppletPageConfig
other
=
(
AppletPageConfig
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getTitle
()
==
null
?
other
.
getTitle
()
==
null
:
this
.
getTitle
().
equals
(
other
.
getTitle
()))
&&
(
this
.
getImage
()
==
null
?
other
.
getImage
()
==
null
:
this
.
getImage
().
equals
(
other
.
getImage
()))
&&
(
this
.
getLink
()
==
null
?
other
.
getLink
()
==
null
:
this
.
getLink
().
equals
(
other
.
getLink
()))
&&
(
this
.
getAppletPage
()
==
null
?
other
.
getAppletPage
()
==
null
:
this
.
getAppletPage
().
equals
(
other
.
getAppletPage
()))
&&
(
this
.
getType
()
==
null
?
other
.
getType
()
==
null
:
this
.
getType
().
equals
(
other
.
getType
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getTitle
()
==
null
)
?
0
:
getTitle
().
hashCode
());
result
=
prime
*
result
+
((
getImage
()
==
null
)
?
0
:
getImage
().
hashCode
());
result
=
prime
*
result
+
((
getLink
()
==
null
)
?
0
:
getLink
().
hashCode
());
result
=
prime
*
result
+
((
getAppletPage
()
==
null
)
?
0
:
getAppletPage
().
hashCode
());
result
=
prime
*
result
+
((
getType
()
==
null
)
?
0
:
getType
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
title
(
"title"
,
"title"
,
"VARCHAR"
,
false
),
image
(
"image"
,
"image"
,
"VARCHAR"
,
false
),
link
(
"link"
,
"link"
,
"VARCHAR"
,
false
),
appletPage
(
"applet_page"
,
"appletPage"
,
"VARCHAR"
,
false
),
type
(
"type"
,
"type"
,
"INTEGER"
,
true
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/distribution/AppletPageConfigExample.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.db.domain.distribution
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
AppletPageConfigExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
AppletPageConfigExample
()
{
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AppletPageConfigExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AppletPageConfigExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
AppletPageConfigExample
example
=
new
AppletPageConfigExample
();
return
example
.
createCriteria
();
}
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
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
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
andTitleIsNull
()
{
addCriterion
(
"title is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleIsNotNull
()
{
addCriterion
(
"title is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleEqualTo
(
String
value
)
{
addCriterion
(
"title ="
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTitleEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"title = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotEqualTo
(
String
value
)
{
addCriterion
(
"title <>"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTitleNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"title <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTitleGreaterThan
(
String
value
)
{
addCriterion
(
"title >"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTitleGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"title > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTitleGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"title >="
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTitleGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"title >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTitleLessThan
(
String
value
)
{
addCriterion
(
"title <"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTitleLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"title < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTitleLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"title <="
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTitleLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"title <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTitleLike
(
String
value
)
{
addCriterion
(
"title like"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotLike
(
String
value
)
{
addCriterion
(
"title not like"
,
value
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleIn
(
List
<
String
>
values
)
{
addCriterion
(
"title in"
,
values
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"title not in"
,
values
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"title between"
,
value1
,
value2
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTitleNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"title not between"
,
value1
,
value2
,
"title"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageIsNull
()
{
addCriterion
(
"image is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageIsNotNull
()
{
addCriterion
(
"image is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageEqualTo
(
String
value
)
{
addCriterion
(
"image ="
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageNotEqualTo
(
String
value
)
{
addCriterion
(
"image <>"
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageGreaterThan
(
String
value
)
{
addCriterion
(
"image >"
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"image >="
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageLessThan
(
String
value
)
{
addCriterion
(
"image <"
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"image <="
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andImageLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"image <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andImageLike
(
String
value
)
{
addCriterion
(
"image like"
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageNotLike
(
String
value
)
{
addCriterion
(
"image not like"
,
value
,
"image"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageIn
(
List
<
String
>
values
)
{
addCriterion
(
"image in"
,
values
,
"image"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"image not in"
,
values
,
"image"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"image between"
,
value1
,
value2
,
"image"
);
return
(
Criteria
)
this
;
}
public
Criteria
andImageNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"image not between"
,
value1
,
value2
,
"image"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkIsNull
()
{
addCriterion
(
"link is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkIsNotNull
()
{
addCriterion
(
"link is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkEqualTo
(
String
value
)
{
addCriterion
(
"link ="
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLinkEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"link = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andLinkNotEqualTo
(
String
value
)
{
addCriterion
(
"link <>"
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLinkNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"link <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andLinkGreaterThan
(
String
value
)
{
addCriterion
(
"link >"
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLinkGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"link > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andLinkGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"link >="
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLinkGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"link >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andLinkLessThan
(
String
value
)
{
addCriterion
(
"link <"
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLinkLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"link < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andLinkLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"link <="
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andLinkLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"link <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andLinkLike
(
String
value
)
{
addCriterion
(
"link like"
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkNotLike
(
String
value
)
{
addCriterion
(
"link not like"
,
value
,
"link"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkIn
(
List
<
String
>
values
)
{
addCriterion
(
"link in"
,
values
,
"link"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"link not in"
,
values
,
"link"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"link between"
,
value1
,
value2
,
"link"
);
return
(
Criteria
)
this
;
}
public
Criteria
andLinkNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"link not between"
,
value1
,
value2
,
"link"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageIsNull
()
{
addCriterion
(
"applet_page is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageIsNotNull
()
{
addCriterion
(
"applet_page is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageEqualTo
(
String
value
)
{
addCriterion
(
"applet_page ="
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAppletPageEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"applet_page = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageNotEqualTo
(
String
value
)
{
addCriterion
(
"applet_page <>"
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAppletPageNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"applet_page <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageGreaterThan
(
String
value
)
{
addCriterion
(
"applet_page >"
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAppletPageGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"applet_page > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"applet_page >="
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAppletPageGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"applet_page >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageLessThan
(
String
value
)
{
addCriterion
(
"applet_page <"
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAppletPageLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"applet_page < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"applet_page <="
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andAppletPageLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"applet_page <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageLike
(
String
value
)
{
addCriterion
(
"applet_page like"
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageNotLike
(
String
value
)
{
addCriterion
(
"applet_page not like"
,
value
,
"appletPage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageIn
(
List
<
String
>
values
)
{
addCriterion
(
"applet_page in"
,
values
,
"appletPage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"applet_page not in"
,
values
,
"appletPage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"applet_page between"
,
value1
,
value2
,
"appletPage"
);
return
(
Criteria
)
this
;
}
public
Criteria
andAppletPageNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"applet_page not between"
,
value1
,
value2
,
"appletPage"
);
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
(
Integer
value
)
{
addCriterion
(
"`type` ="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <>"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"`type` >"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` >="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThan
(
Integer
value
)
{
addCriterion
(
"`type` <"
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`type` <="
,
value
,
"type"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andTypeLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`type` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`type` not in"
,
values
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`type` not between"
,
value1
,
value2
,
"type"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNull
()
{
addCriterion
(
"is_valid is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIsNotNull
()
{
addCriterion
(
"is_valid is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid ="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <>"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidNotEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThan
(
Boolean
value
)
{
addCriterion
(
"is_valid >"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid >="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidGreaterThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThan
(
Boolean
value
)
{
addCriterion
(
"is_valid <"
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"is_valid <="
,
value
,
"isValid"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIsValidLessThanOrEqualToColumn
(
AppletPageConfig
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"is_valid <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"is_valid not in"
,
values
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIsValidNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
AppletPageConfigExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
AppletPageConfigExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
AppletPageConfigExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
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
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/AppletPageConfigRequestDto.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.db.dto.request.distribution
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
@Data
public
class
AppletPageConfigRequestDto
implements
Entity
{
/**
* 标题
*/
private
String
title
;
/**
* 图片
*/
private
String
image
;
/**
* 跳转链接
*/
private
String
link
;
/**
* 对应小程序的页面
*/
private
String
appletPage
;
/**
* 类型
*/
private
Integer
type
;
/**
* 是否有效
*/
private
Boolean
isValid
;
}
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AppletPageConfigDaoImpl.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.db.impl.distribution
;
import
com.wwdz.ch.db.dao.distribution.AppletPageConfigDao
;
import
com.wwdz.ch.db.domain.distribution.AppletPageConfig
;
import
com.wwdz.ch.db.domain.distribution.AppletPageConfigExample
;
import
com.wwdz.ch.db.dto.request.distribution.AppletPageConfigRequestDto
;
import
com.wwdz.ch.db.mapper.distribution.AppletPageConfigMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
@Repository
public
class
AppletPageConfigDaoImpl
implements
AppletPageConfigDao
{
@Autowired
AppletPageConfigMapper
appletPageConfigMapper
;
@Override
public
boolean
insert
(
AppletPageConfig
appletPageConfig
)
{
return
appletPageConfigMapper
.
insert
(
appletPageConfig
)
>
0
;
}
@Override
public
AppletPageConfig
findList
(
AppletPageConfigRequestDto
dto
)
{
AppletPageConfigExample
example
=
new
AppletPageConfigExample
();
AppletPageConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
return
appletPageConfigMapper
.
selectOneByExample
(
example
);
}
}
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/AppletPageConfigMapper.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.db.mapper.distribution
;
import
com.wwdz.ch.db.domain.distribution.AppletPageConfig
;
import
com.wwdz.ch.db.domain.distribution.AppletPageConfigExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
AppletPageConfigMapper
{
long
countByExample
(
AppletPageConfigExample
example
);
int
deleteByExample
(
AppletPageConfigExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
AppletPageConfig
record
);
int
insertSelective
(
AppletPageConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AppletPageConfig
selectOneByExample
(
AppletPageConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AppletPageConfig
selectOneByExampleSelective
(
@Param
(
"example"
)
AppletPageConfigExample
example
,
@Param
(
"selective"
)
AppletPageConfig
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
AppletPageConfig
>
selectByExampleSelective
(
@Param
(
"example"
)
AppletPageConfigExample
example
,
@Param
(
"selective"
)
AppletPageConfig
.
Column
...
selective
);
List
<
AppletPageConfig
>
selectByExample
(
AppletPageConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table applet_page_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
AppletPageConfig
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
AppletPageConfig
.
Column
...
selective
);
AppletPageConfig
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
AppletPageConfig
record
,
@Param
(
"example"
)
AppletPageConfigExample
example
);
int
updateByExample
(
@Param
(
"record"
)
AppletPageConfig
record
,
@Param
(
"example"
)
AppletPageConfigExample
example
);
int
updateByPrimaryKeySelective
(
AppletPageConfig
record
);
int
updateByPrimaryKey
(
AppletPageConfig
record
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/AppletPageConfigMapper.xml
0 → 100644
View file @
82b549e4
<?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.wwdz.ch.db.mapper.distribution.AppletPageConfigMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.distribution.AppletPageConfig"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"title"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"image"
jdbcType=
"VARCHAR"
property=
"image"
/>
<result
column=
"link"
jdbcType=
"VARCHAR"
property=
"link"
/>
<result
column=
"applet_page"
jdbcType=
"VARCHAR"
property=
"appletPage"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
</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, title, image, link, applet_page, `type`, is_valid
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfigExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from applet_page_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, title, image, link, applet_page, `type`, is_valid
</otherwise>
</choose>
from applet_page_config
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from applet_page_config
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, title, image, link, applet_page, `type`, is_valid
</otherwise>
</choose>
from applet_page_config
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from applet_page_config
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfigExample"
>
delete from applet_page_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfig"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into applet_page_config (title, image, link,
applet_page, `type`, is_valid
)
values (#{title,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{link,jdbcType=VARCHAR},
#{appletPage,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{isValid,jdbcType=BIT}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfig"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into applet_page_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"image != null"
>
image,
</if>
<if
test=
"link != null"
>
link,
</if>
<if
test=
"appletPage != null"
>
applet_page,
</if>
<if
test=
"type != null"
>
`type`,
</if>
<if
test=
"isValid != null"
>
is_valid,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
</if>
<if
test=
"image != null"
>
#{image,jdbcType=VARCHAR},
</if>
<if
test=
"link != null"
>
#{link,jdbcType=VARCHAR},
</if>
<if
test=
"appletPage != null"
>
#{appletPage,jdbcType=VARCHAR},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfigExample"
resultType=
"java.lang.Long"
>
select count(*) from applet_page_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update applet_page_config
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.title != null"
>
title = #{record.title,jdbcType=VARCHAR},
</if>
<if
test=
"record.image != null"
>
image = #{record.image,jdbcType=VARCHAR},
</if>
<if
test=
"record.link != null"
>
link = #{record.link,jdbcType=VARCHAR},
</if>
<if
test=
"record.appletPage != null"
>
applet_page = #{record.appletPage,jdbcType=VARCHAR},
</if>
<if
test=
"record.type != null"
>
`type` = #{record.type,jdbcType=INTEGER},
</if>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update applet_page_config
set id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
image = #{record.image,jdbcType=VARCHAR},
link = #{record.link,jdbcType=VARCHAR},
applet_page = #{record.appletPage,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=INTEGER},
is_valid = #{record.isValid,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfig"
>
update applet_page_config
<set>
<if
test=
"title != null"
>
title = #{title,jdbcType=VARCHAR},
</if>
<if
test=
"image != null"
>
image = #{image,jdbcType=VARCHAR},
</if>
<if
test=
"link != null"
>
link = #{link,jdbcType=VARCHAR},
</if>
<if
test=
"appletPage != null"
>
applet_page = #{appletPage,jdbcType=VARCHAR},
</if>
<if
test=
"type != null"
>
`type` = #{type,jdbcType=INTEGER},
</if>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfig"
>
update applet_page_config
set title = #{title,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
link = #{link,jdbcType=VARCHAR},
applet_page = #{appletPage,jdbcType=VARCHAR},
`type` = #{type,jdbcType=INTEGER},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.distribution.AppletPageConfigExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from applet_page_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, title, image, link, applet_page, `type`, is_valid
</otherwise>
</choose>
from applet_page_config
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
82b549e4
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.distribution"
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper.distribution"
targetProject=
"ch-dao/src/main/java"
/>
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"
special_performance
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"
applet_page_config
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
82b549e4
...
@@ -49,9 +49,10 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -49,9 +49,10 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/wx/supplierItem/**"
,
"/wx/specialPerformance/**"
,
"/wx/groupPurchase/**"
,
"/wx/disposableSubscribeRecord/**"
,
"/wx/auctionRecord/findList"
,
"/wx/supplierItem/**"
,
"/wx/specialPerformance/**"
,
"/wx/groupPurchase/**"
,
"/wx/disposableSubscribeRecord/**"
,
"/wx/auctionRecord/findList"
,
"/wx/selfPage/countIntroduceAmount"
,
"/wx/selfPage/countIntroduceAmount"
,
"/wx/exchange/findExchangeItem"
,
"/wx/specialPerformance/findInfos"
,
"/wx/specialPerformance/findItemList"
,
"/wx/exchange/findExchangeItem"
,
"/wx/specialPerformance/findInfos"
,
"/wx/specialPerformance/findItemList"
,
"/wx/groupPurchase/findList"
,
"/wx/groupPurchase/findItemDetail"
,
"/wx/exchangeApplyOrder/handleApplyOrder"
,
"/wx/supplierItem/findDiscountList"
"/wx/groupPurchase/findList"
,
"/wx/groupPurchase/findItemDetail"
,
"/wx/exchangeApplyOrder/handleApplyOrder"
,
"/wx/supplierItem/findDiscountList"
,
"/wx/appletPageConfig/**"
//下列路径上线注释
//下列路径上线注释
,
"/wx/itemTagOperate/**"
,
"/wx/openShop/**"
//
,"/wx/itemTagOperate/**", "/wx/openShop/**"
/* ,"/wx/specialPerformance/**"
/* ,"/wx/specialPerformance/**"
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
, "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**", "/wx/auctionRecord/**",
"/wx/shareRecord/**","/wx/collectionBook/**", "/wx/collectedRecord/**", "/wx/collectionItemsRelation/**","/wx/collectionShareRecord/**"
"/wx/shareRecord/**","/wx/collectionBook/**", "/wx/collectedRecord/**", "/wx/collectionItemsRelation/**","/wx/collectionShareRecord/**"
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/AppletPageConfigServiceImpl.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.wx.impl.distribution
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.distribution.AppletPageConfigDao
;
import
com.wwdz.ch.db.domain.distribution.AppletPageConfig
;
import
com.wwdz.ch.db.dto.request.distribution.AppletPageConfigRequestDto
;
import
com.wwdz.ch.wx.service.distribution.AppletPageConfigService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
AppletPageConfigServiceImpl
implements
AppletPageConfigService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AppletPageConfigServiceImpl
.
class
);
@Autowired
AppletPageConfigDao
appletPageConfigDao
;
@Override
public
Result
getPageConfig
(
AppletPageConfigRequestDto
dto
)
{
try
{
AppletPageConfig
appletPageConfig
=
appletPageConfigDao
.
findList
(
dto
);
return
Result
.
success
(
appletPageConfig
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"获取页面配置 error : {}"
,
e
);
}
return
Result
.
failed
();
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/AppletPageConfigService.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.wx.service.distribution
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.AppletPageConfigRequestDto
;
public
interface
AppletPageConfigService
{
/**
* 获取页面配置
* @param dto
* @return
*/
Result
getPageConfig
(
AppletPageConfigRequestDto
dto
);
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/AppletPageConfigController.java
0 → 100644
View file @
82b549e4
package
com.wwdz.ch.wx.web.distribution
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.core.consts.CommConsts
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.distribution.AppletPageConfigRequestDto
;
import
com.wwdz.ch.db.dto.request.distribution.AuctionRecordRequestDto
;
import
com.wwdz.ch.wx.service.distribution.AppletPageConfigService
;
import
com.wwdz.ch.wx.service.distribution.AuctionRecordService
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/wx/appletPageConfig"
)
public
class
AppletPageConfigController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SupplierItemController
.
class
);
@Autowired
AppletPageConfigService
appletPageConfigService
;
@ApiOperation
(
value
=
"获取页面配置"
)
@PostMapping
(
"/getPageConfig"
)
public
Result
getPageConfig
(
@RequestBody
AppletPageConfigRequestDto
dto
)
{
logger
.
info
(
"获取页面配置,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
return
appletPageConfigService
.
getPageConfig
(
dto
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment