Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
c9639195
Commit
c9639195
authored
Jun 11, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加旅游后台
parent
49b66af6
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
885 additions
and
3231 deletions
+885
-3231
BaseUserMemberLevel.java
...ub/wxiaoqi/security/admin/entity/BaseUserMemberLevel.java
+70
-0
UserFeign.java
...va/com/github/wxiaoqi/security/admin/feign/UserFeign.java
+6
-0
AppUserGroups.java
...a/com/github/wxiaoqi/security/admin/vo/AppUserGroups.java
+0
-0
AuthorityMenuTree.java
...m/github/wxiaoqi/security/admin/vo/AuthorityMenuTree.java
+0
-0
FrontUser.java
.../java/com/github/wxiaoqi/security/admin/vo/FrontUser.java
+0
-0
GroupTree.java
.../java/com/github/wxiaoqi/security/admin/vo/GroupTree.java
+0
-0
GroupUsers.java
...java/com/github/wxiaoqi/security/admin/vo/GroupUsers.java
+0
-0
MenuTree.java
...n/java/com/github/wxiaoqi/security/admin/vo/MenuTree.java
+0
-0
pom.xml
ace-modules/ace-admin/pom.xml
+6
-4
UserMemberBiz.java
.../com/github/wxiaoqi/security/admin/biz/UserMemberBiz.java
+40
-0
AdminCommonConstant.java
.../wxiaoqi/security/admin/constant/AdminCommonConstant.java
+0
-33
RedisKey.java
.../com/github/wxiaoqi/security/admin/constant/RedisKey.java
+0
-10
AppUser.java
...ava/com/github/wxiaoqi/security/admin/entity/AppUser.java
+0
-541
AppUserDetail.java
...m/github/wxiaoqi/security/admin/entity/AppUserDetail.java
+0
-35
AppUserLogin.java
...om/github/wxiaoqi/security/admin/entity/AppUserLogin.java
+0
-36
Element.java
...ava/com/github/wxiaoqi/security/admin/entity/Element.java
+0
-366
GateLog.java
...ava/com/github/wxiaoqi/security/admin/entity/GateLog.java
+0
-149
Group.java
.../java/com/github/wxiaoqi/security/admin/entity/Group.java
+0
-404
GroupType.java
...a/com/github/wxiaoqi/security/admin/entity/GroupType.java
+0
-336
Menu.java
...n/java/com/github/wxiaoqi/security/admin/entity/Menu.java
+0
-419
ResourceAuthority.java
...thub/wxiaoqi/security/admin/entity/ResourceAuthority.java
+0
-345
User.java
...n/java/com/github/wxiaoqi/security/admin/entity/User.java
+0
-535
BaseUserMemberLevelMapper.java
...aoqi/security/admin/mapper/BaseUserMemberLevelMapper.java
+14
-0
MemberController.java
.../github/wxiaoqi/security/admin/rest/MemberController.java
+37
-0
application.yml
ace-modules/ace-generator/src/main/resources/application.yml
+1
-1
generator.properties
...les/ace-generator/src/main/resources/generator.properties
+1
-1
GoodBannerDTO.java
...c/main/java/com/xxfc/platform/tour/dto/GoodBannerDTO.java
+38
-0
GoodSearchDTO.java
...c/main/java/com/xxfc/platform/tour/dto/GoodSearchDTO.java
+31
-0
GoodSiteDTO.java
...src/main/java/com/xxfc/platform/tour/dto/GoodSiteDTO.java
+89
-0
GoodSpePriceDTO.java
...main/java/com/xxfc/platform/tour/dto/GoodSpePriceDTO.java
+55
-0
GoodTagDTO.java
.../src/main/java/com/xxfc/platform/tour/dto/GoodTagDTO.java
+25
-0
TourGoodDTO.java
...src/main/java/com/xxfc/platform/tour/dto/TourGoodDTO.java
+108
-0
TourGood.java
...src/main/java/com/xxfc/platform/tour/entity/TourGood.java
+8
-3
TourGoodSite.java
...main/java/com/xxfc/platform/tour/entity/TourGoodSite.java
+29
-0
TourGoodVo.java
...i/src/main/java/com/xxfc/platform/tour/vo/TourGoodVo.java
+110
-0
TourGoodBiz.java
...src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
+116
-6
TourGoodMapper.java
...in/java/com/xxfc/platform/tour/mapper/TourGoodMapper.java
+5
-0
TourGoodController.java
.../java/com/xxfc/platform/tour/rest/TourGoodController.java
+3
-5
TouGoodAdminController.java
...xxfc/platform/tour/rest/admin/TouGoodAdminController.java
+31
-0
TourGoodMapper.xml
...-tour-server/src/main/resources/mapper/TourGoodMapper.xml
+46
-2
UploadController.java
.../xxfc/platform/universal/controller/UploadController.java
+16
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/BaseUserMemberLevel.java
0 → 100644
View file @
c9639195
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
javax.persistence.*
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 会员等级表
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-11 11:06:45
*/
@Data
@Table
(
name
=
"base_user_member_level"
)
public
class
BaseUserMemberLevel
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
//主键id
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
@ApiModelProperty
(
"主键id"
)
private
Integer
id
;
//等级名称
@Column
(
name
=
"name"
)
@ApiModelProperty
(
value
=
"等级名称"
)
private
String
name
;
//图标
@Column
(
name
=
"icon"
)
@ApiModelProperty
(
value
=
"图标"
)
private
String
icon
;
//等级
@Column
(
name
=
"level"
)
@ApiModelProperty
(
value
=
"等级"
)
private
Integer
level
;
//描述
@Column
(
name
=
"describe"
)
@ApiModelProperty
(
value
=
"描述"
)
private
String
describe
;
//有效数;-1是永久有效
@Column
(
name
=
"end_date"
)
@ApiModelProperty
(
value
=
"有效数;-1是永久有效"
)
private
Integer
endDate
;
//折扣
@Column
(
name
=
"discount"
)
@ApiModelProperty
(
value
=
"折扣"
)
private
Integer
discount
;
//是否删除;0-正常;1-删除
@Column
(
name
=
"isdel"
)
@ApiModelProperty
(
value
=
"是否删除;0-正常;1-删除"
)
private
Integer
isdel
;
//购买会员价格
@Column
(
name
=
"price"
)
@ApiModelProperty
(
value
=
"购买会员价格"
)
private
BigDecimal
price
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/UserFeign.java
View file @
c9639195
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
feign
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
...
...
@@ -9,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
/**
* ${DESCRIPTION}
*
...
...
@@ -32,6 +35,9 @@ public interface UserFeign {
public
ObjectRestResponse
authentication
(
@RequestParam
(
value
=
"userId"
)
Integer
userId
,
@RequestParam
(
value
=
"idNumber"
)
String
idNumber
,
@RequestParam
(
value
=
"status"
)
Integer
status
);
@RequestMapping
(
value
=
"/member/levels"
,
method
=
RequestMethod
.
GET
)
public
List
<
BaseUserMemberLevel
>
levels
();
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/vo/AppUserGroups.java
→
ace-modules/ace-admin
-api
/src/main/java/com/github/wxiaoqi/security/admin/vo/AppUserGroups.java
View file @
c9639195
File moved
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/vo/AuthorityMenuTree.java
→
ace-modules/ace-admin
-api
/src/main/java/com/github/wxiaoqi/security/admin/vo/AuthorityMenuTree.java
View file @
c9639195
File moved
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/vo/FrontUser.java
→
ace-modules/ace-admin
-api
/src/main/java/com/github/wxiaoqi/security/admin/vo/FrontUser.java
View file @
c9639195
File moved
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/vo/GroupTree.java
→
ace-modules/ace-admin
-api
/src/main/java/com/github/wxiaoqi/security/admin/vo/GroupTree.java
View file @
c9639195
File moved
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/vo/GroupUsers.java
→
ace-modules/ace-admin
-api
/src/main/java/com/github/wxiaoqi/security/admin/vo/GroupUsers.java
View file @
c9639195
File moved
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/vo/MenuTree.java
→
ace-modules/ace-admin
-api
/src/main/java/com/github/wxiaoqi/security/admin/vo/MenuTree.java
View file @
c9639195
File moved
ace-modules/ace-admin/pom.xml
View file @
c9639195
...
...
@@ -30,10 +30,6 @@
<pagehelper.version>
4.1.1
</pagehelper.version>
</properties>
<dependencies>
<!-- <dependency>-->
<!-- <groupId>com.github.wxiaoqi</groupId>-->
<!-- <artifactId>ace-admin-api</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>
com.github.wxiaoqi
</groupId>
<artifactId>
ace-common
</artifactId>
...
...
@@ -197,6 +193,12 @@
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.github.wxiaoqi
</groupId>
<artifactId>
ace-admin-api
</artifactId>
<version>
2.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
<finalName>
ace-admin
</finalName>
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/UserMemberBiz.java
0 → 100644
View file @
c9639195
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
biz
;
import
com.ace.cache.annotation.Cache
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.wxiaoqi.security.admin.entity.AppUser
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel
;
import
com.github.wxiaoqi.security.admin.entity.Group
;
import
com.github.wxiaoqi.security.admin.entity.User
;
import
com.github.wxiaoqi.security.admin.mapper.AppUserMapper
;
import
com.github.wxiaoqi.security.admin.mapper.BaseUserMemberLevelMapper
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.TableResultResponse
;
import
com.github.wxiaoqi.security.common.util.Query
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
static
com
.
github
.
wxiaoqi
.
security
.
auth
.
common
.
constatns
.
CommonConstants
.
DATA_ALL_TRUE
;
/**
* @author keliii
*/
@Service
public
class
UserMemberBiz
extends
BaseBiz
<
BaseUserMemberLevelMapper
,
BaseUserMemberLevel
>
{
@Transactional
public
List
<
BaseUserMemberLevel
>
getLevesls
()
{
return
mapper
.
selectAll
();
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/constant/AdminCommonConstant.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
constant
;
/**
* ${DESCRIPTION}
*
* @author wanghaobin
* @create 2017-06-17 14:41
*/
public
class
AdminCommonConstant
{
public
final
static
int
ROOT
=
-
1
;
public
final
static
int
DEFAULT_GROUP_TYPE
=
0
;
/**
* 权限关联类型
*/
public
final
static
String
AUTHORITY_TYPE_GROUP
=
"group"
;
/**
* 权限资源类型
*/
public
final
static
String
RESOURCE_TYPE_MENU
=
"menu"
;
public
final
static
String
RESOURCE_TYPE_BTN
=
"button"
;
public
final
static
String
RESOURCE_REQUEST_METHOD_GET
=
"GET"
;
public
final
static
String
RESOURCE_REQUEST_METHOD_PUT
=
"PUT"
;
public
final
static
String
RESOURCE_REQUEST_METHOD_DELETE
=
"DELETE"
;
public
final
static
String
RESOURCE_REQUEST_METHOD_POST
=
"POST"
;
public
final
static
String
RESOURCE_ACTION_VISIT
=
"访问"
;
public
final
static
String
BOOLEAN_NUMBER_FALSE
=
"0"
;
public
final
static
String
BOOLEAN_NUMBER_TRUE
=
"1"
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/constant/RedisKey.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
constant
;
public
class
RedisKey
{
/**
*验证码key前缀
*/
public
static
final
String
CONSTANT_CODE_PREFIX
=
"cache:mobilecode:"
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/AppUser.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
* @author keliii
*/
@Table
(
name
=
"app_user"
)
public
class
AppUser
{
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
//此处加上注解
private
Integer
id
;
private
String
username
;
private
String
password
;
private
String
name
;
private
String
birthday
;
private
String
address
;
@Column
(
name
=
"mobile_phone"
)
private
String
mobilePhone
;
@Column
(
name
=
"tel_phone"
)
private
String
telPhone
;
private
String
email
;
private
String
sex
;
private
String
type
;
@Column
(
name
=
"status"
)
private
Integer
status
;
@Column
(
name
=
"zone_id"
)
private
Integer
zoneId
;
@Column
(
name
=
"company_id"
)
private
Integer
companyId
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
@Column
(
name
=
"upd_time"
)
private
Date
updTime
;
@Column
(
name
=
"upd_user"
)
private
String
updUser
;
@Column
(
name
=
"upd_name"
)
private
String
updName
;
@Column
(
name
=
"upd_host"
)
private
String
updHost
;
@Column
(
name
=
"data_all"
)
private
Integer
dataAll
;
@Column
(
name
=
"data_zone"
)
private
String
dataZone
;
@Column
(
name
=
"data_company"
)
private
String
dataCompany
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return username
*/
public
String
getUsername
()
{
return
username
;
}
/**
* @param username
*/
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
/**
* @return password
*/
public
String
getPassword
()
{
return
password
;
}
/**
* @param password
*/
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
/**
* @return name
*/
public
String
getName
()
{
return
name
;
}
/**
* @param name
*/
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
* @return birthday
*/
public
String
getBirthday
()
{
return
birthday
;
}
/**
* @param birthday
*/
public
void
setBirthday
(
String
birthday
)
{
this
.
birthday
=
birthday
;
}
/**
* @return address
*/
public
String
getAddress
()
{
return
address
;
}
/**
* @param address
*/
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
/**
* @return mobile_phone
*/
public
String
getMobilePhone
()
{
return
mobilePhone
;
}
/**
* @param mobilePhone
*/
public
void
setMobilePhone
(
String
mobilePhone
)
{
this
.
mobilePhone
=
mobilePhone
;
}
/**
* @return tel_phone
*/
public
String
getTelPhone
()
{
return
telPhone
;
}
/**
* @param telPhone
*/
public
void
setTelPhone
(
String
telPhone
)
{
this
.
telPhone
=
telPhone
;
}
/**
* @return email
*/
public
String
getEmail
()
{
return
email
;
}
/**
* @param email
*/
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
/**
* @return sex
*/
public
String
getSex
()
{
return
sex
;
}
/**
* @param sex
*/
public
void
setSex
(
String
sex
)
{
this
.
sex
=
sex
;
}
/**
* @return type
*/
public
String
getType
()
{
return
type
;
}
/**
* @param type
*/
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getZoneId
()
{
return
zoneId
;
}
public
void
setZoneId
(
Integer
zoneId
)
{
this
.
zoneId
=
zoneId
;
}
public
Integer
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
Integer
companyId
)
{
this
.
companyId
=
companyId
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return upd_time
*/
public
Date
getUpdTime
()
{
return
updTime
;
}
/**
* @param updTime
*/
public
void
setUpdTime
(
Date
updTime
)
{
this
.
updTime
=
updTime
;
}
/**
* @return upd_user
*/
public
String
getUpdUser
()
{
return
updUser
;
}
/**
* @param updUser
*/
public
void
setUpdUser
(
String
updUser
)
{
this
.
updUser
=
updUser
;
}
/**
* @return upd_name
*/
public
String
getUpdName
()
{
return
updName
;
}
/**
* @param updName
*/
public
void
setUpdName
(
String
updName
)
{
this
.
updName
=
updName
;
}
/**
* @return upd_host
*/
public
String
getUpdHost
()
{
return
updHost
;
}
/**
* @param updHost
*/
public
void
setUpdHost
(
String
updHost
)
{
this
.
updHost
=
updHost
;
}
public
Integer
getDataAll
()
{
return
dataAll
;
}
public
void
setDataAll
(
Integer
dataAll
)
{
this
.
dataAll
=
dataAll
;
}
public
String
getDataZone
()
{
return
dataZone
;
}
public
void
setDataZone
(
String
dataZone
)
{
this
.
dataZone
=
dataZone
;
}
public
String
getDataCompany
()
{
return
dataCompany
;
}
public
void
setDataCompany
(
String
dataCompany
)
{
this
.
dataCompany
=
dataCompany
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/AppUserDetail.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* 用户详情信息表
*/
@Table
(
name
=
"app_user_detail"
)
@Data
public
class
AppUserDetail
{
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
private
int
id
;
private
Integer
userid
;
@Column
(
name
=
"is_member"
)
private
Integer
isMember
;
private
String
nickname
;
private
String
realname
;
private
String
headimgurl
;
private
String
email
;
private
Integer
sex
;
private
String
birthday
;
@Column
(
name
=
"person_sign"
)
private
String
personSign
;
private
String
remark
;
private
Long
createtime
;
private
Long
updatetime
;
private
Integer
isdel
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/AppUserLogin.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* 用户登录信息表
*/
@Table
(
name
=
"app_user_login"
)
@Data
public
class
AppUserLogin
{
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
private
int
id
;
@Column
(
name
=
"im_userid"
)
private
Integer
imUserid
;
private
String
username
;
private
String
password
;
@Column
(
name
=
"wx_openid"
)
private
String
wxOpenid
;
private
String
unionid
;
private
String
openid
;
private
Long
createtime
;
private
Long
updatetime
;
private
Integer
isdel
;
private
Integer
status
;
@Column
(
name
=
"id_number"
)
private
String
idNumber
;
@Column
(
name
=
"certification_status"
)
private
Integer
certificationStatus
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/Element.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"base_element"
)
public
class
Element
{
@Id
private
Integer
id
;
private
String
code
;
private
String
type
;
private
String
name
;
private
String
uri
;
@Column
(
name
=
"menu_id"
)
private
String
menuId
;
@Column
(
name
=
"parent_id"
)
private
String
parentId
;
private
String
path
;
private
String
method
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return code
*/
public
String
getCode
()
{
return
code
;
}
/**
* @param code
*/
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
/**
* @return type
*/
public
String
getType
()
{
return
type
;
}
/**
* @param type
*/
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
/**
* @return name
*/
public
String
getName
()
{
return
name
;
}
/**
* @param name
*/
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
* @return uri
*/
public
String
getUri
()
{
return
uri
;
}
/**
* @param uri
*/
public
void
setUri
(
String
uri
)
{
this
.
uri
=
uri
;
}
/**
* @return menu_id
*/
public
String
getMenuId
()
{
return
menuId
;
}
/**
* @param menuId
*/
public
void
setMenuId
(
String
menuId
)
{
this
.
menuId
=
menuId
;
}
/**
* @return parent_id
*/
public
String
getParentId
()
{
return
parentId
;
}
/**
* @param parentId
*/
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
/**
* @return path
*/
public
String
getPath
()
{
return
path
;
}
/**
* @param path
*/
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
/**
* @return method
*/
public
String
getMethod
()
{
return
method
;
}
/**
* @param method
*/
public
void
setMethod
(
String
method
)
{
this
.
method
=
method
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/GateLog.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
@Table
(
name
=
"gate_log"
)
public
class
GateLog
{
@Id
private
Integer
id
;
private
String
menu
;
private
String
opt
;
private
String
uri
;
private
String
body
;
@Column
(
name
=
"crt_time"
)
@JsonFormat
(
locale
=
"zh"
,
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return menu
*/
public
String
getMenu
()
{
return
menu
;
}
/**
* @param menu
*/
public
void
setMenu
(
String
menu
)
{
this
.
menu
=
menu
;
}
/**
* @return uri
*/
public
String
getUri
()
{
return
uri
;
}
/**
* @param uri
*/
public
void
setUri
(
String
uri
)
{
this
.
uri
=
uri
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
public
String
getOpt
()
{
return
opt
;
}
public
void
setOpt
(
String
opt
)
{
this
.
opt
=
opt
;
}
public
String
getBody
()
{
return
body
;
}
public
void
setBody
(
String
body
)
{
this
.
body
=
body
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/Group.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
com.github.wxiaoqi.security.admin.constant.AdminCommonConstant
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"base_group"
)
public
class
Group
{
@Id
private
Integer
id
;
private
String
code
;
private
String
name
;
@Column
(
name
=
"parent_id"
)
private
Integer
parentId
;
private
String
path
;
private
String
type
;
@Column
(
name
=
"group_type"
)
private
Integer
groupType
=
AdminCommonConstant
.
DEFAULT_GROUP_TYPE
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
@Column
(
name
=
"upd_time"
)
private
Date
updTime
;
@Column
(
name
=
"upd_user"
)
private
String
updUser
;
@Column
(
name
=
"upd_name"
)
private
String
updName
;
@Column
(
name
=
"upd_host"
)
private
String
updHost
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return code
*/
public
String
getCode
()
{
return
code
;
}
/**
* @param code
*/
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
/**
* @return name
*/
public
String
getName
()
{
return
name
;
}
/**
* @param name
*/
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
* @return parent_id
*/
public
Integer
getParentId
()
{
return
parentId
;
}
/**
* @param parentId
*/
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
/**
* @return path
*/
public
String
getPath
()
{
return
path
;
}
/**
* @param path
*/
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
/**
* @return type
*/
public
String
getType
()
{
return
type
;
}
/**
* @param type
*/
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
/**
* @return group_type
*/
public
Integer
getGroupType
()
{
return
groupType
;
}
/**
* @param groupType
*/
public
void
setGroupType
(
Integer
groupType
)
{
this
.
groupType
=
groupType
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return upd_time
*/
public
Date
getUpdTime
()
{
return
updTime
;
}
/**
* @param updTime
*/
public
void
setUpdTime
(
Date
updTime
)
{
this
.
updTime
=
updTime
;
}
/**
* @return upd_user
*/
public
String
getUpdUser
()
{
return
updUser
;
}
/**
* @param updUser
*/
public
void
setUpdUser
(
String
updUser
)
{
this
.
updUser
=
updUser
;
}
/**
* @return upd_name
*/
public
String
getUpdName
()
{
return
updName
;
}
/**
* @param updName
*/
public
void
setUpdName
(
String
updName
)
{
this
.
updName
=
updName
;
}
/**
* @return upd_host
*/
public
String
getUpdHost
()
{
return
updHost
;
}
/**
* @param updHost
*/
public
void
setUpdHost
(
String
updHost
)
{
this
.
updHost
=
updHost
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/GroupType.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"base_group_type"
)
public
class
GroupType
{
@Id
private
Integer
id
;
private
String
code
;
private
String
name
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
@Column
(
name
=
"upd_time"
)
private
Date
updTime
;
@Column
(
name
=
"upd_user"
)
private
String
updUser
;
@Column
(
name
=
"upd_name"
)
private
String
updName
;
@Column
(
name
=
"upd_host"
)
private
String
updHost
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return code
*/
public
String
getCode
()
{
return
code
;
}
/**
* @param code
*/
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
/**
* @return name
*/
public
String
getName
()
{
return
name
;
}
/**
* @param name
*/
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return upd_time
*/
public
Date
getUpdTime
()
{
return
updTime
;
}
/**
* @param updTime
*/
public
void
setUpdTime
(
Date
updTime
)
{
this
.
updTime
=
updTime
;
}
/**
* @return upd_user
*/
public
String
getUpdUser
()
{
return
updUser
;
}
/**
* @param updUser
*/
public
void
setUpdUser
(
String
updUser
)
{
this
.
updUser
=
updUser
;
}
/**
* @return upd_name
*/
public
String
getUpdName
()
{
return
updName
;
}
/**
* @param updName
*/
public
void
setUpdName
(
String
updName
)
{
this
.
updName
=
updName
;
}
/**
* @return upd_host
*/
public
String
getUpdHost
()
{
return
updHost
;
}
/**
* @param updHost
*/
public
void
setUpdHost
(
String
updHost
)
{
this
.
updHost
=
updHost
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/Menu.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
com.github.wxiaoqi.security.admin.constant.AdminCommonConstant
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"base_menu"
)
public
class
Menu
{
@Id
private
Integer
id
;
private
String
code
;
private
String
title
;
@Column
(
name
=
"parent_id"
)
private
Integer
parentId
=
AdminCommonConstant
.
ROOT
;
private
String
href
;
private
String
icon
;
private
String
type
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
@Column
(
name
=
"upd_time"
)
private
Date
updTime
;
@Column
(
name
=
"upd_user"
)
private
String
updUser
;
@Column
(
name
=
"upd_name"
)
private
String
updName
;
@Column
(
name
=
"upd_host"
)
private
String
updHost
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
private
String
path
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return code
*/
public
String
getCode
()
{
return
code
;
}
/**
* @param code
*/
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
/**
* @return title
*/
public
String
getTitle
()
{
return
title
;
}
/**
* @param title
*/
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
/**
* @return parent_id
*/
public
Integer
getParentId
()
{
return
parentId
;
}
/**
* @param parentId
*/
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
/**
* @return href
*/
public
String
getHref
()
{
return
href
;
}
/**
* @param href
*/
public
void
setHref
(
String
href
)
{
this
.
href
=
href
;
}
/**
* @return icon
*/
public
String
getIcon
()
{
return
icon
;
}
/**
* @param icon
*/
public
void
setIcon
(
String
icon
)
{
this
.
icon
=
icon
;
}
/**
* @return type
*/
public
String
getType
()
{
return
type
;
}
/**
* @param type
*/
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return upd_time
*/
public
Date
getUpdTime
()
{
return
updTime
;
}
/**
* @param updTime
*/
public
void
setUpdTime
(
Date
updTime
)
{
this
.
updTime
=
updTime
;
}
/**
* @return upd_user
*/
public
String
getUpdUser
()
{
return
updUser
;
}
/**
* @param updUser
*/
public
void
setUpdUser
(
String
updUser
)
{
this
.
updUser
=
updUser
;
}
/**
* @return upd_name
*/
public
String
getUpdName
()
{
return
updName
;
}
/**
* @param updName
*/
public
void
setUpdName
(
String
updName
)
{
this
.
updName
=
updName
;
}
/**
* @return upd_host
*/
public
String
getUpdHost
()
{
return
updHost
;
}
/**
* @param updHost
*/
public
void
setUpdHost
(
String
updHost
)
{
this
.
updHost
=
updHost
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
/**
* @return path
*/
public
String
getPath
()
{
return
path
;
}
/**
* @param path
*/
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/ResourceAuthority.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"base_resource_authority"
)
public
class
ResourceAuthority
{
@Id
private
Integer
id
;
@Column
(
name
=
"authority_id"
)
private
String
authorityId
;
@Column
(
name
=
"authority_type"
)
private
String
authorityType
;
@Column
(
name
=
"resource_id"
)
private
String
resourceId
;
@Column
(
name
=
"resource_type"
)
private
String
resourceType
;
@Column
(
name
=
"parent_id"
)
private
String
parentId
;
private
String
path
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
public
ResourceAuthority
(
String
authorityType
,
String
resourceType
)
{
this
.
authorityType
=
authorityType
;
this
.
resourceType
=
resourceType
;
}
public
ResourceAuthority
()
{
}
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return authority_id
*/
public
String
getAuthorityId
()
{
return
authorityId
;
}
/**
* @param authorityId
*/
public
void
setAuthorityId
(
String
authorityId
)
{
this
.
authorityId
=
authorityId
;
}
/**
* @return authority_type
*/
public
String
getAuthorityType
()
{
return
authorityType
;
}
/**
* @param authorityType
*/
public
void
setAuthorityType
(
String
authorityType
)
{
this
.
authorityType
=
authorityType
;
}
/**
* @return resource_id
*/
public
String
getResourceId
()
{
return
resourceId
;
}
/**
* @param resourceId
*/
public
void
setResourceId
(
String
resourceId
)
{
this
.
resourceId
=
resourceId
;
}
/**
* @return resource_type
*/
public
String
getResourceType
()
{
return
resourceType
;
}
/**
* @param resourceType
*/
public
void
setResourceType
(
String
resourceType
)
{
this
.
resourceType
=
resourceType
;
}
/**
* @return parent_id
*/
public
String
getParentId
()
{
return
parentId
;
}
/**
* @param parentId
*/
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
/**
* @return path
*/
public
String
getPath
()
{
return
path
;
}
/**
* @param path
*/
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/entity/User.java
deleted
100644 → 0
View file @
49b66af6
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
java.util.Date
;
import
javax.persistence.*
;
@Table
(
name
=
"base_user"
)
public
class
User
{
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
//此处加上注解
private
Integer
id
;
private
String
username
;
private
String
password
;
private
String
name
;
private
String
birthday
;
private
String
address
;
@Column
(
name
=
"mobile_phone"
)
private
String
mobilePhone
;
@Column
(
name
=
"tel_phone"
)
private
String
telPhone
;
private
String
email
;
private
String
sex
;
private
String
type
;
@Column
(
name
=
"status"
)
private
Integer
status
;
@Column
(
name
=
"zone_id"
)
private
Integer
zoneId
;
@Column
(
name
=
"company_id"
)
private
Integer
companyId
;
private
String
description
;
@Column
(
name
=
"crt_time"
)
private
Date
crtTime
;
@Column
(
name
=
"crt_user"
)
private
String
crtUser
;
@Column
(
name
=
"crt_name"
)
private
String
crtName
;
@Column
(
name
=
"crt_host"
)
private
String
crtHost
;
@Column
(
name
=
"upd_time"
)
private
Date
updTime
;
@Column
(
name
=
"upd_user"
)
private
String
updUser
;
@Column
(
name
=
"upd_name"
)
private
String
updName
;
@Column
(
name
=
"upd_host"
)
private
String
updHost
;
@Column
(
name
=
"data_all"
)
private
Integer
dataAll
;
@Column
(
name
=
"data_zone"
)
private
String
dataZone
;
@Column
(
name
=
"data_company"
)
private
String
dataCompany
;
private
String
attr1
;
private
String
attr2
;
private
String
attr3
;
private
String
attr4
;
private
String
attr5
;
private
String
attr6
;
private
String
attr7
;
private
String
attr8
;
/**
* @return id
*/
public
Integer
getId
()
{
return
id
;
}
/**
* @param id
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* @return username
*/
public
String
getUsername
()
{
return
username
;
}
/**
* @param username
*/
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
/**
* @return password
*/
public
String
getPassword
()
{
return
password
;
}
/**
* @param password
*/
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
/**
* @return name
*/
public
String
getName
()
{
return
name
;
}
/**
* @param name
*/
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
* @return birthday
*/
public
String
getBirthday
()
{
return
birthday
;
}
/**
* @param birthday
*/
public
void
setBirthday
(
String
birthday
)
{
this
.
birthday
=
birthday
;
}
/**
* @return address
*/
public
String
getAddress
()
{
return
address
;
}
/**
* @param address
*/
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
/**
* @return mobile_phone
*/
public
String
getMobilePhone
()
{
return
mobilePhone
;
}
/**
* @param mobilePhone
*/
public
void
setMobilePhone
(
String
mobilePhone
)
{
this
.
mobilePhone
=
mobilePhone
;
}
/**
* @return tel_phone
*/
public
String
getTelPhone
()
{
return
telPhone
;
}
/**
* @param telPhone
*/
public
void
setTelPhone
(
String
telPhone
)
{
this
.
telPhone
=
telPhone
;
}
/**
* @return email
*/
public
String
getEmail
()
{
return
email
;
}
/**
* @param email
*/
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
/**
* @return sex
*/
public
String
getSex
()
{
return
sex
;
}
/**
* @param sex
*/
public
void
setSex
(
String
sex
)
{
this
.
sex
=
sex
;
}
/**
* @return type
*/
public
String
getType
()
{
return
type
;
}
/**
* @param type
*/
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getZoneId
()
{
return
zoneId
;
}
public
void
setZoneId
(
Integer
zoneId
)
{
this
.
zoneId
=
zoneId
;
}
public
Integer
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
Integer
companyId
)
{
this
.
companyId
=
companyId
;
}
/**
* @return description
*/
public
String
getDescription
()
{
return
description
;
}
/**
* @param description
*/
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
/**
* @return crt_time
*/
public
Date
getCrtTime
()
{
return
crtTime
;
}
/**
* @param crtTime
*/
public
void
setCrtTime
(
Date
crtTime
)
{
this
.
crtTime
=
crtTime
;
}
/**
* @return crt_user
*/
public
String
getCrtUser
()
{
return
crtUser
;
}
/**
* @param crtUser
*/
public
void
setCrtUser
(
String
crtUser
)
{
this
.
crtUser
=
crtUser
;
}
/**
* @return crt_name
*/
public
String
getCrtName
()
{
return
crtName
;
}
/**
* @param crtName
*/
public
void
setCrtName
(
String
crtName
)
{
this
.
crtName
=
crtName
;
}
/**
* @return crt_host
*/
public
String
getCrtHost
()
{
return
crtHost
;
}
/**
* @param crtHost
*/
public
void
setCrtHost
(
String
crtHost
)
{
this
.
crtHost
=
crtHost
;
}
/**
* @return upd_time
*/
public
Date
getUpdTime
()
{
return
updTime
;
}
/**
* @param updTime
*/
public
void
setUpdTime
(
Date
updTime
)
{
this
.
updTime
=
updTime
;
}
/**
* @return upd_user
*/
public
String
getUpdUser
()
{
return
updUser
;
}
/**
* @param updUser
*/
public
void
setUpdUser
(
String
updUser
)
{
this
.
updUser
=
updUser
;
}
/**
* @return upd_name
*/
public
String
getUpdName
()
{
return
updName
;
}
/**
* @param updName
*/
public
void
setUpdName
(
String
updName
)
{
this
.
updName
=
updName
;
}
/**
* @return upd_host
*/
public
String
getUpdHost
()
{
return
updHost
;
}
/**
* @param updHost
*/
public
void
setUpdHost
(
String
updHost
)
{
this
.
updHost
=
updHost
;
}
public
Integer
getDataAll
()
{
return
dataAll
;
}
public
void
setDataAll
(
Integer
dataAll
)
{
this
.
dataAll
=
dataAll
;
}
public
String
getDataZone
()
{
return
dataZone
;
}
public
void
setDataZone
(
String
dataZone
)
{
this
.
dataZone
=
dataZone
;
}
public
String
getDataCompany
()
{
return
dataCompany
;
}
public
void
setDataCompany
(
String
dataCompany
)
{
this
.
dataCompany
=
dataCompany
;
}
/**
* @return attr1
*/
public
String
getAttr1
()
{
return
attr1
;
}
/**
* @param attr1
*/
public
void
setAttr1
(
String
attr1
)
{
this
.
attr1
=
attr1
;
}
/**
* @return attr2
*/
public
String
getAttr2
()
{
return
attr2
;
}
/**
* @param attr2
*/
public
void
setAttr2
(
String
attr2
)
{
this
.
attr2
=
attr2
;
}
/**
* @return attr3
*/
public
String
getAttr3
()
{
return
attr3
;
}
/**
* @param attr3
*/
public
void
setAttr3
(
String
attr3
)
{
this
.
attr3
=
attr3
;
}
/**
* @return attr4
*/
public
String
getAttr4
()
{
return
attr4
;
}
/**
* @param attr4
*/
public
void
setAttr4
(
String
attr4
)
{
this
.
attr4
=
attr4
;
}
/**
* @return attr5
*/
public
String
getAttr5
()
{
return
attr5
;
}
/**
* @param attr5
*/
public
void
setAttr5
(
String
attr5
)
{
this
.
attr5
=
attr5
;
}
/**
* @return attr6
*/
public
String
getAttr6
()
{
return
attr6
;
}
/**
* @param attr6
*/
public
void
setAttr6
(
String
attr6
)
{
this
.
attr6
=
attr6
;
}
/**
* @return attr7
*/
public
String
getAttr7
()
{
return
attr7
;
}
/**
* @param attr7
*/
public
void
setAttr7
(
String
attr7
)
{
this
.
attr7
=
attr7
;
}
/**
* @return attr8
*/
public
String
getAttr8
()
{
return
attr8
;
}
/**
* @param attr8
*/
public
void
setAttr8
(
String
attr8
)
{
this
.
attr8
=
attr8
;
}
}
\ No newline at end of file
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/mapper/BaseUserMemberLevelMapper.java
0 → 100644
View file @
c9639195
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
mapper
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel
;
import
tk.mybatis.mapper.common.Mapper
;
/**
* 会员等级表
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-11 11:06:45
*/
public
interface
BaseUserMemberLevelMapper
extends
Mapper
<
BaseUserMemberLevel
>
{
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/MemberController.java
0 → 100644
View file @
c9639195
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
rest
;
import
com.github.wxiaoqi.security.admin.biz.AppUserDetailBiz
;
import
com.github.wxiaoqi.security.admin.biz.UserBiz
;
import
com.github.wxiaoqi.security.admin.biz.UserMemberBiz
;
import
com.github.wxiaoqi.security.admin.entity.AppUserDetail
;
import
com.github.wxiaoqi.security.admin.entity.BaseUserMemberLevel
;
import
com.github.wxiaoqi.security.admin.entity.User
;
import
com.github.wxiaoqi.security.auth.client.jwt.UserAuthUtil
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* ${DESCRIPTION}
*
* @author wanghaobin
* @create 2017-06-08 11:51
*/
@RestController
@RequestMapping
(
"member"
)
public
class
MemberController
{
@Autowired
private
UserMemberBiz
memberBiz
;
@RequestMapping
(
value
=
"/levels"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
BaseUserMemberLevel
>
levels
(
String
token
)
throws
Exception
{
return
memberBiz
.
getLevesls
();
}
}
ace-modules/ace-generator/src/main/resources/application.yml
View file @
c9639195
...
...
@@ -10,7 +10,7 @@ spring:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://10.5.52.3:3306/
xxfc_order
?useUnicode=true&characterEncoding=UTF-8
url
:
jdbc:mysql://10.5.52.3:3306/
ag_admin_v1
?useUnicode=true&characterEncoding=UTF-8
username
:
root
password
:
sslcloud123*()
jackson
:
...
...
ace-modules/ace-generator/src/main/resources/generator.properties
View file @
c9639195
#代码生成器,配置信息
#包名
package
=
com.xxfc.platform.order
package
=
package com.github.wxiaoqi.security.admin
#作者
author
=
zjw
#Email
...
...
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/GoodBannerDTO.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 商品轮播图
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
GoodBannerDTO
{
//首页banner图主键
@ApiModelProperty
(
"首页banner图主键"
)
private
Integer
id
;
//标题
@ApiModelProperty
(
value
=
"标题"
)
private
String
title
;
//封面
@ApiModelProperty
(
value
=
"封面"
)
private
String
cover
;
//跳转链接
@ApiModelProperty
(
value
=
"跳转链接"
)
private
String
url
;
}
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/GoodSearchDTO.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
dto
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 旅游商品
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
GoodSearchDTO
extends
PageParam
{
//商品名
@ApiModelProperty
(
value
=
"商品名"
)
private
String
name
;
//商品名
@ApiModelProperty
(
value
=
"标签id"
)
private
String
tagId
;
}
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/GoodSiteDTO.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 路线站点
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
GoodSiteDTO
{
private
Integer
id
;
//路线id
@ApiModelProperty
(
value
=
"路线id"
)
private
Integer
goodId
;
//站点名称
@ApiModelProperty
(
value
=
"站点名称"
)
private
String
name
;
//站点地址
@ApiModelProperty
(
value
=
"站点地址"
)
private
String
address
;
//分公司id
@ApiModelProperty
(
value
=
"分公司id"
)
private
String
companyId
;
/**
* 地址-省/直辖市(编码)
*/
@ApiModelProperty
(
"地址-省/直辖市(编码)"
)
private
Integer
province
;
/**
* 地址-省/直辖市(名称)
*/
@ApiModelProperty
(
"地址-省/直辖市(名称)"
)
private
Integer
provinceName
;
/**
* 地址-市(编码)
*/
@ApiModelProperty
(
"地址-市(编码)"
)
private
Integer
city
;
/**
* 地址-市(名称)
*/
@ApiModelProperty
(
"地址-市(名称)"
)
private
Integer
cityName
;
//出发时间
@ApiModelProperty
(
value
=
"出发时间"
)
private
Long
departTime
;
//站点经度
@ApiModelProperty
(
value
=
"站点经度"
)
private
Double
longitude
;
//站点纬度
@ApiModelProperty
(
value
=
"站点纬度"
)
private
Double
latitude
;
//类型:0起点,1-途径点;2-终点
@ApiModelProperty
(
value
=
"类型:0起点,1-途径点;2-终点"
)
private
Integer
type
;
//排序
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
rank
;
//状态 0正常 1关闭
@ApiModelProperty
(
value
=
"状态 0正常 1关闭"
)
private
Integer
status
;
//站点介绍
@ApiModelProperty
(
value
=
"站点介绍"
)
private
String
intro
;
}
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/GoodSpePriceDTO.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* 商品规格
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
GoodSpePriceDTO
{
private
Integer
id
;
//出行时间
@ApiModelProperty
(
value
=
"出行时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
startTime
;
//结束时间
@ApiModelProperty
(
value
=
"结束时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
endTime
;
//规格id
@ApiModelProperty
(
value
=
"规格id"
)
private
String
speId
;
//价格
@ApiModelProperty
(
value
=
"价格"
)
private
BigDecimal
price
;
//儿童价格
@ApiModelProperty
(
value
=
"儿童价格"
)
private
BigDecimal
childPrice
;
//会员价格
@ApiModelProperty
(
value
=
"会员价格"
)
private
String
memberPrice
;
//库存
@ApiModelProperty
(
value
=
"库存"
)
private
Integer
stock
;
}
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/GoodTagDTO.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 商品标签
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
GoodTagDTO
{
//
@ApiModelProperty
(
""
)
private
Integer
id
;
//标签id
@ApiModelProperty
(
value
=
"标签id"
)
private
Integer
tagId
;
}
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/dto/TourGoodDTO.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* 旅游商品
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
TourGoodDTO
{
@ApiModelProperty
(
""
)
private
Integer
id
;
//商品名
@ApiModelProperty
(
value
=
"商品名"
)
private
String
name
;
//商品封面图
@ApiModelProperty
(
value
=
"商品封面图"
)
private
String
cover
;
//商品原价
@ApiModelProperty
(
value
=
"商品原价"
)
private
BigDecimal
price
;
//儿童价格
@ApiModelProperty
(
value
=
"儿童价格"
)
private
BigDecimal
childPrice
;
//商品浏览量
@ApiModelProperty
(
value
=
"商品浏览量"
)
private
Integer
viewCount
;
//商品销售量
@ApiModelProperty
(
value
=
"商品销售量"
)
private
Integer
saleCount
;
//天数
@ApiModelProperty
(
value
=
"天数"
)
private
Integer
number
;
//商品描述
@ApiModelProperty
(
value
=
"商品描述"
)
private
String
describe
;
//商品详情(行程亮点)
@ApiModelProperty
(
value
=
"商品详情(行程亮点)"
)
private
String
content
;
//行程介绍
@ApiModelProperty
(
value
=
"行程介绍"
)
private
String
introduce
;
//费用说明
@ApiModelProperty
(
value
=
"费用说明"
)
private
String
explain
;
//排序
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
rank
;
//状态:0-未发布;1-上架;2-下架
@ApiModelProperty
(
value
=
"状态:0-未发布;1-上架;2-下架"
)
private
Integer
status
;
//是否推荐:0-未推荐;1-已推荐
@ApiModelProperty
(
value
=
"是否推荐:0-未推荐;1-已推荐"
)
private
Integer
recommend
;
//是否会员价:0-否;1-是
@ApiModelProperty
(
value
=
"是否会员价:0-否;1-是"
)
private
Integer
isMember
;
//库存
@ApiModelProperty
(
value
=
"库存"
)
private
Integer
stock
;
//单位
@ApiModelProperty
(
value
=
"单位"
)
private
String
unit
;
//商品轮播
@ApiModelProperty
(
value
=
"商品轮播"
)
List
<
GoodBannerDTO
>
bannerDTOS
;
//出发,途径,终点
@ApiModelProperty
(
value
=
"出发,途径,终点"
)
List
<
GoodSiteDTO
>
siteDTOS
;
//商品规格
@ApiModelProperty
(
value
=
"商品规格"
)
List
<
GoodSpePriceDTO
>
priceDTOS
;
//商品标签
@ApiModelProperty
(
value
=
"商品标签"
)
List
<
GoodTagDTO
>
tagDTOS
;
}
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/entity/TourGood.java
View file @
c9639195
...
...
@@ -55,9 +55,14 @@ public class TourGood implements Serializable {
@Column
(
name
=
"sale_count"
)
@ApiModelProperty
(
value
=
"商品销售量"
)
private
Integer
saleCount
;
//天数
@Column
(
name
=
"number"
)
@ApiModelProperty
(
value
=
"天数"
)
private
Integer
number
;
//商品描述
@Column
(
name
=
"describe"
)
//商品描述
@Column
(
name
=
"describe
s
"
)
@ApiModelProperty
(
value
=
"商品描述"
)
private
String
describe
;
...
...
@@ -72,7 +77,7 @@ public class TourGood implements Serializable {
private
String
introduce
;
//费用说明
@Column
(
name
=
"explain"
)
@Column
(
name
=
"explain
s
"
)
@ApiModelProperty
(
value
=
"费用说明"
)
private
String
explain
;
...
...
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/entity/TourGoodSite.java
View file @
c9639195
...
...
@@ -45,6 +45,35 @@ public class TourGoodSite implements Serializable {
@ApiModelProperty
(
value
=
"分公司id"
)
private
String
companyId
;
/**
* 地址-省/直辖市(编码)
*/
@Column
(
name
=
"province"
)
@ApiModelProperty
(
"地址-省/直辖市(编码)"
)
private
Integer
province
;
/**
* 地址-省/直辖市(名称)
*/
@Column
(
name
=
"province_name"
)
@ApiModelProperty
(
"地址-省/直辖市(名称)"
)
private
Integer
provinceName
;
/**
* 地址-市(编码)
*/
@Column
(
name
=
"city"
)
@ApiModelProperty
(
"地址-市(编码)"
)
private
Integer
city
;
/**
* 地址-市(名称)
*/
@Column
(
name
=
"city_name"
)
@ApiModelProperty
(
"地址-市(名称)"
)
private
Integer
cityName
;
//出发时间
@Column
(
name
=
"depart_time"
)
...
...
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/vo/TourGoodVo.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* 旅游商品
*
* @author zjw
* @email nishijjo@qq.com
* @date 2019-06-06 11:41:51
*/
@Data
public
class
TourGoodVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
//
@ApiModelProperty
(
""
)
private
Integer
id
;
//商品名
@ApiModelProperty
(
value
=
"商品名"
)
private
String
name
;
//商品封面图
@ApiModelProperty
(
value
=
"商品封面图"
)
private
String
cover
;
//商品原价
@ApiModelProperty
(
value
=
"商品原价"
)
private
BigDecimal
price
;
//儿童价格
@ApiModelProperty
(
value
=
"儿童价格"
)
private
BigDecimal
childPrice
;
//商品浏览量
@ApiModelProperty
(
value
=
"商品浏览量"
)
private
Integer
viewCount
;
//商品销售量
@ApiModelProperty
(
value
=
"商品销售量"
)
private
Integer
saleCount
;
//商品描述
@ApiModelProperty
(
value
=
"商品描述"
)
private
String
describe
;
//商品详情(行程亮点)
@ApiModelProperty
(
value
=
"商品详情(行程亮点)"
)
private
String
content
;
//行程介绍
@ApiModelProperty
(
value
=
"行程介绍"
)
private
String
introduce
;
//费用说明
@ApiModelProperty
(
value
=
"费用说明"
)
private
String
explain
;
//排序
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
rank
;
//状态:0-未发布;1-上架;2-下架
@ApiModelProperty
(
value
=
"状态:0-未发布;1-上架;2-下架"
)
private
Integer
status
;
//创建时间
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
private
Long
crtTime
;
//更新时间
@ApiModelProperty
(
value
=
"更新时间"
,
hidden
=
true
)
private
Long
updTime
;
//是否推荐:0-未推荐;1-已推荐
@ApiModelProperty
(
value
=
"是否推荐:0-未推荐;1-已推荐"
)
private
Integer
recommend
;
//是否会员价:0-否;1-是
@ApiModelProperty
(
value
=
"是否会员价:0-否;1-是"
)
private
Integer
isMember
;
//库存
@ApiModelProperty
(
value
=
"库存"
)
private
Integer
stock
;
//单位
@ApiModelProperty
(
value
=
"单位"
)
private
String
unit
;
//是否删除,0否,1是
@ApiModelProperty
(
value
=
"是否删除,0否,1是"
)
private
Integer
isDel
;
//标签id
@ApiModelProperty
(
value
=
"标签"
)
private
String
tagNames
;
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodBiz.java
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
biz
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.constant.RestCode
;
import
com.github.wxiaoqi.security.common.msg.BaseResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
com.xxfc.platform.tour.mapper.TourGoodMapper
;
import
com.xxfc.platform.tour.dto.*
;
import
com.xxfc.platform.tour.entity.*
;
import
com.xxfc.platform.tour.mapper.*
;
import
com.xxfc.platform.tour.vo.TourGoodVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.lang.reflect.InvocationTargetException
;
import
java.math.BigDecimal
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -27,7 +33,13 @@ import java.util.Map;
public
class
TourGoodBiz
extends
BaseBiz
<
TourGoodMapper
,
TourGood
>
{
@Autowired
private
TourGoodMapper
tourGoodMapper
;
private
TourGoodBannerMapper
bannerMapper
;
@Autowired
private
TourGoodSiteMapper
siteMapper
;
@Autowired
private
TourGoodTagMapper
tagMapper
;
@Autowired
private
TourGoodSpePriceMapper
priceMapper
;
/**
* 查询旅游路线列表
...
...
@@ -58,4 +70,102 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
public
TourGood
getOne
(
Integer
id
)
{
return
mapper
.
getOne
(
id
);
}
}
\ No newline at end of file
//获取商品列表
public
PageDataVO
<
TourGoodVo
>
getAll
(
GoodSearchDTO
dto
){
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
PageInfo
<
TourGoodVo
>
goodPageInfo
=
new
PageInfo
<>(
mapper
.
findGoodList
(
dto
));
return
PageDataVO
.
pageInfo
(
goodPageInfo
);
}
//获取商品列表
public
ObjectRestResponse
goodsEdit
(
TourGoodDTO
dto
){
if
(
dto
==
null
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数为空"
);
}
TourGood
good
=
new
TourGood
();
try
{
BeanUtils
.
copyProperties
(
good
,
dto
);
Integer
goodId
=
good
.
getId
();
if
(
goodId
==
null
||
goodId
==
0
){
mapper
.
insertSelective
(
good
);
goodId
=
good
.
getId
();
}
else
{
mapper
.
updateByPrimaryKeySelective
(
good
);
}
if
(
goodId
>
0
){
List
<
GoodBannerDTO
>
bannerList
=
dto
.
getBannerDTOS
();
if
(
bannerList
.
size
()>
0
){
for
(
GoodBannerDTO
bannerDTO:
bannerList
){
Integer
bannerId
=
bannerDTO
.
getId
();
TourGoodBanner
goodBanner
=
new
TourGoodBanner
();
BeanUtils
.
copyProperties
(
goodBanner
,
bannerDTO
);
goodBanner
.
setGoodId
(
goodId
);
if
(
bannerId
==
null
||
bannerId
==
0
){
bannerMapper
.
insertSelective
(
goodBanner
);
}
else
{
bannerMapper
.
updateByPrimaryKeySelective
(
goodBanner
);
}
}
}
List
<
GoodSiteDTO
>
siteDTOList
=
dto
.
getSiteDTOS
();
if
(
siteDTOList
.
size
()>
0
){
for
(
GoodSiteDTO
siteDTO:
siteDTOList
){
Integer
siteId
=
siteDTO
.
getId
();
TourGoodSite
site
=
new
TourGoodSite
();
BeanUtils
.
copyProperties
(
site
,
siteDTO
);
site
.
setGoodId
(
goodId
);
if
(
siteId
==
null
||
siteId
==
0
){
siteMapper
.
insertSelective
(
site
);
}
else
{
siteMapper
.
updateByPrimaryKeySelective
(
site
);
}
}
}
List
<
GoodTagDTO
>
tagList
=
dto
.
getTagDTOS
();
if
(
siteDTOList
.
size
()>
0
){
for
(
GoodTagDTO
tagDTO:
tagList
){
Integer
tagId
=
tagDTO
.
getId
();
TourGoodTag
tag
=
new
TourGoodTag
();
BeanUtils
.
copyProperties
(
tag
,
tagDTO
);
tag
.
setGoodId
(
goodId
);
if
(
tagId
==
null
||
tagId
==
0
){
tagMapper
.
insertSelective
(
tag
);
}
else
{
tagMapper
.
updateByPrimaryKeySelective
(
tag
);
}
}
}
List
<
GoodSpePriceDTO
>
priceDTOList
=
dto
.
getPriceDTOS
();
if
(
siteDTOList
.
size
()>
0
){
for
(
GoodSpePriceDTO
priceDTO:
priceDTOList
){
Integer
priceId
=
priceDTO
.
getId
();
TourGoodSpePrice
spePrice
=
new
TourGoodSpePrice
();
BeanUtils
.
copyProperties
(
spePrice
,
priceDTO
);
BigDecimal
price
=
good
.
getPrice
();
BigDecimal
childPrice
=
good
.
getChildPrice
();
spePrice
.
setPrice
(
price
);
spePrice
.
setChildPrice
(
childPrice
);
spePrice
.
setGoodId
(
goodId
);
if
(
priceId
==
null
||
priceId
==
0
){
priceMapper
.
insertSelective
(
spePrice
);
}
else
{
priceMapper
.
updateByPrimaryKeySelective
(
spePrice
);
}
}
}
}
}
catch
(
IllegalAccessException
e
)
{
e
.
printStackTrace
();
}
catch
(
InvocationTargetException
e
)
{
e
.
printStackTrace
();
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
EXCEPTION_CODE
,
"出现异常"
);
}
return
ObjectRestResponse
.
succ
(
good
);
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/mapper/TourGoodMapper.java
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
mapper
;
import
com.xxfc.platform.tour.dto.GoodSearchDTO
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
com.xxfc.platform.tour.vo.TourGoodVo
;
import
org.apache.ibatis.annotations.Param
;
import
tk.mybatis.mapper.common.Mapper
;
import
java.util.List
;
...
...
@@ -20,4 +22,7 @@ public interface TourGoodMapper extends Mapper<TourGood> {
//查询旅游路线列表
public
List
<
TourGood
>
getGoodList
(
@Param
(
"params"
)
Map
<
String
,
Object
>
map
);
//获取商品列表
public
List
<
TourGoodVo
>
findGoodList
(
@Param
(
"params"
)
GoodSearchDTO
tourGoodDTO
);
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodController.java
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
rest
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.common.msg.BaseResponse
;
import
com.github.wxiaoqi.security.common.msg.ListRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.tour.biz.TourGoodBiz
;
import
com.xxfc.platform.tour.dto.GoodSearchDTO
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
com.xxfc.platform.tour.entity.TourTag
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
@RestController
...
...
@@ -44,4 +40,6 @@ public class TourGoodController extends BaseController<TourGoodBiz, TourGood> {
public
ObjectRestResponse
<
TourGood
>
getOne
(
@PathVariable
Integer
id
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
getOne
(
id
));
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/admin/TouGoodAdminController.java
0 → 100644
View file @
c9639195
package
com
.
xxfc
.
platform
.
tour
.
rest
.
admin
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.tour.biz.TourGoodBiz
;
import
com.xxfc.platform.tour.dto.GoodSearchDTO
;
import
com.xxfc.platform.tour.dto.TourGoodDTO
;
import
com.xxfc.platform.tour.entity.TourGood
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"good"
)
@IgnoreClientToken
public
class
TouGoodAdminController
extends
BaseController
<
TourGoodBiz
,
TourGood
>
{
@ApiOperation
(
"后台查询旅游路线列表"
)
@RequestMapping
(
value
=
"/admin/goodList"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
TourGood
>
goodList
(
@RequestBody
GoodSearchDTO
dto
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
getAll
(
dto
));
}
@ApiOperation
(
"后台查询旅游路线列表"
)
@RequestMapping
(
value
=
"/admin/goodEdit"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
TourGood
>
goodEdit
(
@RequestBody
TourGoodDTO
dto
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
goodsEdit
(
dto
));
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/resources/mapper/TourGoodMapper.xml
View file @
c9639195
...
...
@@ -12,8 +12,9 @@
<result
property=
"childPrice"
column=
"child_price"
/>
<result
property=
"viewCount"
column=
"view_count"
/>
<result
property=
"saleCount"
column=
"sale_count"
/>
<result
property=
"describe"
column=
"describe"
/>
<result
property=
"describe"
column=
"describe
s
"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"explain"
column=
"explains"
/>
<result
property=
"introduce"
column=
"introduce"
/>
<result
property=
"rank"
column=
"rank"
/>
<result
property=
"status"
column=
"status"
/>
...
...
@@ -25,6 +26,29 @@
<result
property=
"unit"
column=
"unit"
/>
</resultMap>
<resultMap
type=
"com.xxfc.platform.tour.vo.TourGoodVo"
id=
"tourGoodVoMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"cover"
column=
"cover"
/>
<result
property=
"price"
column=
"price"
/>
<result
property=
"childPrice"
column=
"child_price"
/>
<result
property=
"viewCount"
column=
"view_count"
/>
<result
property=
"saleCount"
column=
"sale_count"
/>
<result
property=
"describe"
column=
"describes"
/>
<result
property=
"explain"
column=
"explains"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"introduce"
column=
"introduce"
/>
<result
property=
"rank"
column=
"rank"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"crtTime"
column=
"crt_time"
/>
<result
property=
"updTime"
column=
"upd_time"
/>
<result
property=
"recommend"
column=
"recommend"
/>
<result
property=
"isMember"
column=
"is_member"
/>
<result
property=
"stock"
column=
"stock"
/>
<result
property=
"unit"
column=
"unit"
/>
<result
property=
"tagNames"
column=
"tagNames"
/>
</resultMap>
<!--查询旅游路线列表-->
<select
id=
"getGoodList"
parameterType=
"java.util.Map"
resultMap=
"tourGoodMap"
>
SELECT * from tour_good t
...
...
@@ -45,7 +69,7 @@
</if>
<if
test=
"params.tagId != null and params.tagId != '' "
>
and t.id in (SELECT tg.good_id from tour_good_tag tg
where tg.tag_id =
1
) and t.recommend = 1
where tg.tag_id =
#{params.tagId}
) and t.recommend = 1
ORDER BY t.recommend
</if>
...
...
@@ -54,4 +78,24 @@
<select
id=
"getOne"
resultMap=
"tourGoodMap"
>
SELECT * FROM tour_good WHERE id =#{id} and is_del=0
</select>
<!--后台查询旅游路线列表-->
<select
id=
"findGoodList"
resultMap=
"tourGoodMap"
>
SELECT g.*,REPLACE(GROUP_CONCAT( DISTINCT t.`name`),',','|')as tagNames from tour_good g
LEFT JOIN tour_good_tag tag ON g.id=tag.good_id
LEFT JOIN tour_tag t ON tag.tag_id=t.id
<where>
<if
test=
"params.query != null and params.query != ''"
>
and (g.`name` like CONCAT('%',#{params.query},'%') or g.introduce like CONCAT('%',#{params.query},'%'))
</if>
<if
test=
"params.tagId != null and params.tagId != '' "
>
and g.id in (SELECT good_id from tour_good_tag
where tag_id = #{params.tagId})
</if>
</where>
GROUP BY g.id
ORDER BY g.rank DESC ,g.id DESC
</select>
</mapper>
\ No newline at end of file
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/UploadController.java
View file @
c9639195
...
...
@@ -45,6 +45,22 @@ public class UploadController{
return
JsonResultUtil
.
createSuccessResultWithObj
(
uploadService
.
uploadFile
(
file
,
prefix
));
}
@RequestMapping
(
value
=
"/admin/upload"
,
method
=
RequestMethod
.
POST
)
public
JSONObject
uploads
(
@RequestParam
(
"file"
)
MultipartFile
file
,
@RequestParam
(
value
=
"prefix"
,
defaultValue
=
"admin"
)
String
prefix
)
throws
Exception
{
String
contentType
=
file
.
getContentType
();
//图片文件类型
// String fileName = file.getOriginalFilename(); //图片名字
/* if (!contentType.equals("image/jpeg") && !contentType.equals("image/gif")&&!contentType.equals("image/png")) {
return JsonResultUtil.createFailedResult(2001,"格式不对!!!");
}*/
if
(
file
.
getSize
()
>
MAX_DRIVING_LICENSE_SIZE
)
{
return
JsonResultUtil
.
createFailedResult
(
2002
,
"大小超过限制!!!"
);
}
return
JsonResultUtil
.
createSuccessResultWithObj
(
uploadService
.
uploadFile
(
file
,
prefix
));
}
@IgnoreUserToken
@RequestMapping
(
value
=
"/app/unauth/download"
,
method
=
RequestMethod
.
GET
)
//匹配的是href中的download请求
public
ResponseEntity
<
byte
[]>
download
(
@RequestParam
(
"realFileRelPath"
)
String
realFileRelPath
)
throws
Exception
{
...
...
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