Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
12f67d2b
Commit
12f67d2b
authored
Oct 13, 2020
by
hewei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'future/strokeList' into 'master'
Future/stroke list See merge request hewei/Jumeirah!14
parents
1314314b
fe9f9b08
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
219 additions
and
41 deletions
+219
-41
api-app/src/main/java/com/jumeirah/api/app/controller/AirIntroducedController.java
+47
-0
common/src/main/java/com/jumeirah/common/entity/MerchantUser.java
+28
-7
common/src/main/java/com/jumeirah/common/mapper/MerchantUserMapper.java
+10
-7
common/src/main/java/com/jumeirah/common/param/MerchantUserPageParam.java
+2
-2
common/src/main/java/com/jumeirah/common/service/MerchantUserService.java
+12
-0
common/src/main/java/com/jumeirah/common/service/impl/MerchantUserServiceImpl.java
+8
-0
common/src/main/java/com/jumeirah/common/vo/MerchantUserQueryForAppVo.java
+51
-0
common/src/main/java/com/jumeirah/common/vo/MerchantUserQueryVo.java
+51
-24
common/src/main/resources/mapper/merchant/MerchantUserMapper.xml
+10
-1
No files found.
api-app/src/main/java/com/jumeirah/api/app/controller/AirIntroducedController.java
0 → 100644
View file @
12f67d2b
package
com
.
jumeirah
.
api
.
app
.
controller
;
import
com.jumeirah.common.param.MerchantUserPageParam
;
import
com.jumeirah.common.service.MerchantUserService
;
import
com.jumeirah.common.vo.MerchantUserQueryForAppVo
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.controller.BaseController
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLog
;
import
io.geekidea.springbootplus.framework.log.enums.OperationLogType
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
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
;
/**
* 航空介绍 控制器
*
* @author wei
* @since 2020-09-29
*/
@Slf4j
@RestController
@RequestMapping
(
"/app/airline"
)
@Api
(
value
=
"航空介绍"
,
tags
=
{
"航空公司介绍"
})
public
class
AirIntroducedController
extends
BaseController
{
@Autowired
private
MerchantUserService
merchantUserService
;
/**
* 商家分页列表
*/
@PostMapping
(
"/getPageList"
)
@OperationLog
(
name
=
"航空公司介绍分页列表"
,
type
=
OperationLogType
.
PAGE
)
@ApiOperation
(
value
=
"航空公司介绍分页列表"
,
response
=
MerchantUserQueryForAppVo
.
class
)
public
ApiResult
<
Paging
<
MerchantUserQueryForAppVo
>>
getMerchantUserPageList
(
@Validated
@RequestBody
MerchantUserPageParam
merchantUserPageParam
)
throws
Exception
{
Paging
<
MerchantUserQueryForAppVo
>
paging
=
merchantUserService
.
getMerchantUserPageListForApp
(
merchantUserPageParam
);
return
ApiResult
.
ok
(
paging
);
}
}
common/src/main/java/com/jumeirah/common/entity/MerchantUser.java
View file @
12f67d2b
package
com
.
jumeirah
.
common
.
entity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.Version
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.Version
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
java.util.Date
;
/**
* 商家
...
...
@@ -27,7 +27,7 @@ import io.geekidea.springbootplus.framework.core.validator.groups.Update;
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"MerchantUser对象"
)
public
class
MerchantUser
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"id不能为空"
,
groups
=
{
Update
.
class
})
@ApiModelProperty
(
"主键"
)
...
...
@@ -73,7 +73,7 @@ private static final long serialVersionUID=1L;
@ApiModelProperty
(
"逻辑删除,0:未删除,1:已删除"
)
@TableLogic
private
Integer
deleted
;
private
Integer
deleted
;
@ApiModelProperty
(
"版本"
)
@Version
...
...
@@ -85,4 +85,25 @@ private Integer deleted;
@ApiModelProperty
(
"修改时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
"在列表展示的图片url"
)
private
String
imageListUrl
;
@ApiModelProperty
(
"公司介绍图片url"
)
private
String
imageCompanyIntroductionUrl
;
@ApiModelProperty
(
"团队介绍图片url"
)
private
String
imageTeamIntroductionUrl
;
@ApiModelProperty
(
"优势图片url"
)
private
String
imageAdvantageUrl
;
@ApiModelProperty
(
"公司介绍文字"
)
private
String
textCompanyIntroduction
;
@ApiModelProperty
(
"团队介绍文字"
)
private
String
textTeamIntroduction
;
@ApiModelProperty
(
"优势介绍文字"
)
private
String
textAdvantage
;
}
common/src/main/java/com/jumeirah/common/mapper/MerchantUserMapper.java
View file @
12f67d2b
package
com
.
jumeirah
.
common
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.jumeirah.common.entity.MerchantUser
;
import
com.jumeirah.common.param.MerchantUserPageParam
;
import
com.jumeirah.common.vo.MerchantUserQueryForAppVo
;
import
com.jumeirah.common.vo.MerchantUserQueryVo
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.io.Serializable
;
...
...
@@ -37,6 +36,10 @@ public interface MerchantUserMapper extends BaseMapper<MerchantUser> {
* @param merchantUserPageParam
* @return
*/
IPage
<
MerchantUserQueryVo
>
getMerchantUserPageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
MerchantUserPageParam
merchantUserPageParam
);
IPage
<
MerchantUserQueryVo
>
getMerchantUserPageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
MerchantUserPageParam
merchantUserPageParam
);
IPage
<
MerchantUserQueryForAppVo
>
getMerchantUserForAppPageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
MerchantUserPageParam
merchantUserPageParam
);
}
}
common/src/main/java/com/jumeirah/common/param/MerchantUserPageParam.java
View file @
12f67d2b
package
com
.
jumeirah
.
common
.
param
;
import
io.geekidea.springbootplus.framework.core.pagination.BasePageOrderParam
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
io.geekidea.springbootplus.framework.core.pagination.BasePageOrderParam
;
/**
* <pre>
...
...
@@ -20,4 +20,4 @@ import io.geekidea.springbootplus.framework.core.pagination.BasePageOrderParam;
@ApiModel
(
value
=
"商家分页参数"
)
public
class
MerchantUserPageParam
extends
BasePageOrderParam
{
private
static
final
long
serialVersionUID
=
1L
;
}
}
common/src/main/java/com/jumeirah/common/service/MerchantUserService.java
View file @
12f67d2b
...
...
@@ -4,6 +4,7 @@ import com.jumeirah.common.entity.MerchantUser;
import
com.jumeirah.common.param.LoginParam
;
import
com.jumeirah.common.param.MerchantUserPageParam
;
import
com.jumeirah.common.vo.LoginSysUserTokenVo
;
import
com.jumeirah.common.vo.MerchantUserQueryForAppVo
;
import
com.jumeirah.common.vo.MerchantUserQueryVo
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.service.BaseService
;
...
...
@@ -75,4 +76,15 @@ public interface MerchantUserService extends BaseService<MerchantUser> {
*/
Paging
<
MerchantUserQueryVo
>
getMerchantUserPageList
(
MerchantUserPageParam
merchantUserPageParam
)
throws
Exception
;
/**
* 获取分页对象
*
* @param merchantUserPageParam
* @return
* @throws Exception
*/
Paging
<
MerchantUserQueryForAppVo
>
getMerchantUserPageListForApp
(
MerchantUserPageParam
merchantUserPageParam
)
throws
Exception
;
}
common/src/main/java/com/jumeirah/common/service/impl/MerchantUserServiceImpl.java
View file @
12f67d2b
...
...
@@ -15,6 +15,7 @@ import com.jumeirah.common.service.MerchantRolePermissionService;
import
com.jumeirah.common.service.MerchantRoleService
;
import
com.jumeirah.common.service.MerchantUserService
;
import
com.jumeirah.common.vo.LoginSysUserTokenVo
;
import
com.jumeirah.common.vo.MerchantUserQueryForAppVo
;
import
com.jumeirah.common.vo.MerchantUserQueryVo
;
import
io.geekidea.springbootplus.config.properties.JwtProperties
;
import
io.geekidea.springbootplus.config.properties.SpringBootPlusProperties
;
...
...
@@ -218,4 +219,11 @@ public class MerchantUserServiceImpl extends BaseServiceImpl<MerchantUserMapper,
return
new
Paging
<
MerchantUserQueryVo
>(
iPage
);
}
@Override
public
Paging
<
MerchantUserQueryForAppVo
>
getMerchantUserPageListForApp
(
MerchantUserPageParam
merchantUserPageParam
)
throws
Exception
{
Page
<
MerchantUserQueryForAppVo
>
page
=
new
PageInfo
<>(
merchantUserPageParam
,
OrderItem
.
desc
(
getLambdaColumn
(
MerchantUser:
:
getCreateTime
)));
IPage
<
MerchantUserQueryForAppVo
>
iPage
=
merchantUserMapper
.
getMerchantUserForAppPageList
(
page
,
merchantUserPageParam
);
return
new
Paging
<
MerchantUserQueryForAppVo
>(
iPage
);
}
}
common/src/main/java/com/jumeirah/common/vo/MerchantUserQueryForAppVo.java
0 → 100644
View file @
12f67d2b
package
com
.
jumeirah
.
common
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
/**
* <pre>
* 商家 查询结果对象
* </pre>
*
* @author wei
* @date 2020-09-28
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"MerchantUserQueryForAppVo对象"
)
public
class
MerchantUserQueryForAppVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
Long
id
;
@ApiModelProperty
(
"航空公司名称"
)
private
String
airlineName
;
@ApiModelProperty
(
"在列表展示的图片url"
)
private
String
imageListUrl
;
@ApiModelProperty
(
"公司介绍图片url"
)
private
String
imageCompanyIntroductionUrl
;
@ApiModelProperty
(
"团队介绍图片url"
)
private
String
imageTeamIntroductionUrl
;
@ApiModelProperty
(
"优势图片url"
)
private
String
imageAdvantageUrl
;
@ApiModelProperty
(
"公司介绍文字"
)
private
String
textCompanyIntroduction
;
@ApiModelProperty
(
"团队介绍文字"
)
private
String
textTeamIntroduction
;
@ApiModelProperty
(
"优势介绍文字"
)
private
String
textAdvantage
;
}
\ No newline at end of file
common/src/main/java/com/jumeirah/common/vo/MerchantUserQueryVo.java
View file @
12f67d2b
package
com
.
jumeirah
.
common
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.
util.Date
;
import
java.
sql.Timestamp
;
/**
* <pre>
...
...
@@ -18,57 +19,82 @@ import java.util.Date;
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"MerchantUserQueryVo对象"
)
public
class
MerchantUserQueryVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
public
class
MerchantUserQueryVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
Long
id
;
private
Long
id
;
@ApiModelProperty
(
"用户名"
)
private
String
username
;
private
String
username
;
@ApiModelProperty
(
"昵称"
)
private
String
nickname
;
private
String
nickname
;
@ApiModelProperty
(
"航空公司名称"
)
private
String
airlineName
;
@ApiModelProperty
(
"密码"
)
private
String
password
;
private
String
password
;
@ApiModelProperty
(
"盐值"
)
private
String
salt
;
private
String
salt
;
@ApiModelProperty
(
"手机号码"
)
private
String
phone
;
private
String
phone
;
@ApiModelProperty
(
"手机区号"
)
private
String
phoneArea
;
private
String
phoneArea
;
@ApiModelProperty
(
"性别,0:女,1:男,默认1"
)
private
Integer
gender
;
private
Integer
gender
;
@ApiModelProperty
(
"头像"
)
private
String
head
;
private
String
head
;
@ApiModelProperty
(
"备注"
)
private
String
remark
;
private
String
remark
;
@ApiModelProperty
(
"状态,0:禁用,1:启用,2:锁定"
)
private
Integer
state
;
private
Integer
state
;
@ApiModelProperty
(
"部门id"
)
private
Long
departmentId
;
private
Long
departmentId
;
@ApiModelProperty
(
"角色id"
)
private
Long
roleId
;
private
Long
roleId
;
@ApiModelProperty
(
"逻辑删除,0:未删除,1:已删除"
)
private
Integer
deleted
;
private
Integer
deleted
;
@ApiModelProperty
(
"版本"
)
private
Integer
version
;
private
Integer
version
;
@ApiModelProperty
(
"创建时间"
)
private
Date
createTime
;
private
Timestamp
createTime
;
@ApiModelProperty
(
"修改时间"
)
private
Date
updateTime
;
private
Timestamp
updateTime
;
@ApiModelProperty
(
"在列表展示的图片url"
)
private
String
imageListUrl
;
@ApiModelProperty
(
"公司介绍图片url"
)
private
String
imageCompanyIntroductionUrl
;
@ApiModelProperty
(
"团队介绍图片url"
)
private
String
imageTeamIntroductionUrl
;
@ApiModelProperty
(
"优势图片url"
)
private
String
imageAdvantageUrl
;
@ApiModelProperty
(
"公司介绍文字"
)
private
String
textCompanyIntroduction
;
@ApiModelProperty
(
"团队介绍文字"
)
private
String
textTeamIntroduction
;
@ApiModelProperty
(
"优势介绍文字"
)
private
String
textAdvantage
;
}
\ No newline at end of file
common/src/main/resources/mapper/merchant/MerchantUserMapper.xml
View file @
12f67d2b
...
...
@@ -4,7 +4,7 @@
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, username, nickname, password, salt, phone, phone_area, gender, head, remark, state, department_id, role_id, deleted, version, create_time, update_time
id, username, nickname, password, salt, phone, phone_area, gender, head, remark, state, department_id, role_id, deleted, version, create_time, update_time
, recharge_bank, recharge_name, recharge_bank_number, image_list_url, image_company_introduction_url, image_team_introduction_url, image_advantage_url, text_company_introduction, text_team_introduction, text_advantage,airline_name
</sql>
<select
id=
"getMerchantUserById"
resultType=
"com.jumeirah.common.vo.MerchantUserQueryVo"
>
...
...
@@ -20,4 +20,13 @@
from merchant_user
</select>
<select
id=
"getMerchantUserForAppPageList"
parameterType=
"com.jumeirah.common.param.MerchantUserPageParam"
resultType=
"com.jumeirah.common.vo.MerchantUserQueryForAppVo"
>
select
<include
refid=
"Base_Column_List"
/>
from merchant_user
</select>
</mapper>
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