Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
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
SiEn
Commits
d5875b24
Commit
d5875b24
authored
Nov 05, 2020
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加包机介绍推荐; 添加公务机出售/托管表推荐
parent
45222fd6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
7 deletions
+23
-7
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/CharterIntroductionForMerController.java
+1
-1
common/pom.xml
+9
-0
common/src/main/java/com/jumeirah/common/param/CharterIntroductionUpdateParam.java
+2
-2
common/src/main/java/com/jumeirah/common/service/impl/CharterIntroductionServiceImpl.java
+3
-2
common/src/main/java/com/jumeirah/common/vo/BusinessPlainQueryForAppVo.java
+3
-0
common/src/main/resources/mapper/BusinessPlainMapper.xml
+5
-2
No files found.
api-merchant/src/main/java/com/jumeirah/api/merchant/controller/CharterIntroductionForMerController.java
View file @
d5875b24
...
@@ -60,7 +60,7 @@ public class CharterIntroductionForMerController extends BaseController {
...
@@ -60,7 +60,7 @@ public class CharterIntroductionForMerController extends BaseController {
* 修改包机介绍
* 修改包机介绍
*/
*/
@PostMapping
(
"/update"
)
@PostMapping
(
"/update"
)
@OperationLog
(
name
=
"修改包机介绍"
,
type
=
OperationLogType
.
UPDATE
)
//
@OperationLog(name = "修改包机介绍", type = OperationLogType.UPDATE)
@ApiOperation
(
value
=
"修改包机介绍"
)
@ApiOperation
(
value
=
"修改包机介绍"
)
@RequiresPermissions
(
"merchant:aircraft:management:edit"
)
@RequiresPermissions
(
"merchant:aircraft:management:edit"
)
public
ApiResult
<
Boolean
>
updateCharterIntroduction
(
@Validated
(
Update
.
class
)
@RequestBody
CharterIntroductionUpdateParam
charterIntroductionUpdateParam
)
throws
Exception
{
public
ApiResult
<
Boolean
>
updateCharterIntroduction
(
@Validated
(
Update
.
class
)
@RequestBody
CharterIntroductionUpdateParam
charterIntroductionUpdateParam
)
throws
Exception
{
...
...
common/pom.xml
View file @
d5875b24
...
@@ -49,6 +49,14 @@
...
@@ -49,6 +49,14 @@
</dependency>
</dependency>
<!-- 极光 end -->
<!-- 极光 end -->
<!-- wecloud短信 start-->
<!-- <dependency>-->
<!-- <groupId>cn.wecloud</groupId>-->
<!-- <artifactId>we-cloud-sdk-sms</artifactId>-->
<!-- <version>0.0.1</version>-->
<!-- </dependency>-->
<!-- wecloud短信 end-->
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
common/src/main/java/com/jumeirah/common/param/CharterIntroductionUpdateParam.java
View file @
d5875b24
...
@@ -24,10 +24,10 @@ public class CharterIntroductionUpdateParam extends BaseEntity {
...
@@ -24,10 +24,10 @@ public class CharterIntroductionUpdateParam extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"id"
)
@ApiModelProperty
(
"id"
)
private
Integer
id
;
private
Long
id
;
@ApiModelProperty
(
"包机图片url"
)
@ApiModelProperty
(
"包机图片url"
)
private
List
<
ImgJson
>
img
Url
;
private
List
<
ImgJson
>
img
List
;
@ApiModelProperty
(
value
=
"包机文字"
)
@ApiModelProperty
(
value
=
"包机文字"
)
private
String
text
;
private
String
text
;
...
...
common/src/main/java/com/jumeirah/common/service/impl/CharterIntroductionServiceImpl.java
View file @
d5875b24
...
@@ -60,8 +60,9 @@ public class CharterIntroductionServiceImpl extends BaseServiceImpl<CharterIntro
...
@@ -60,8 +60,9 @@ public class CharterIntroductionServiceImpl extends BaseServiceImpl<CharterIntro
CharterIntroduction
charterIntroduction
=
new
CharterIntroduction
();
CharterIntroduction
charterIntroduction
=
new
CharterIntroduction
();
BeanUtils
.
copyProperties
(
charterIntroductionUpdateParam
,
charterIntroduction
);
BeanUtils
.
copyProperties
(
charterIntroductionUpdateParam
,
charterIntroduction
);
if
(
charterIntroductionUpdateParam
.
getImgUrl
()
!=
null
)
{
charterIntroduction
.
setImgUrl
(
Jackson
.
toJsonString
(
charterIntroductionUpdateParam
.
getImgUrl
()));
if
(
charterIntroductionUpdateParam
.
getImgList
()
!=
null
)
{
charterIntroduction
.
setImgUrl
(
Jackson
.
toJsonString
(
charterIntroductionUpdateParam
.
getImgList
()));
}
}
return
super
.
updateById
(
charterIntroduction
);
return
super
.
updateById
(
charterIntroduction
);
}
}
...
...
common/src/main/java/com/jumeirah/common/vo/BusinessPlainQueryForAppVo.java
View file @
d5875b24
...
@@ -45,6 +45,9 @@ public class BusinessPlainQueryForAppVo implements Serializable {
...
@@ -45,6 +45,9 @@ public class BusinessPlainQueryForAppVo implements Serializable {
@ApiModelProperty
(
"商家头像"
)
@ApiModelProperty
(
"商家头像"
)
private
String
mcHead
;
private
String
mcHead
;
@ApiModelProperty
(
"推荐: 0不推荐 1推荐"
)
private
Integer
recommend
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
@ApiModelProperty
(
"图片相关数据json (包括:路径,宽和高)"
)
@ApiModelProperty
(
"图片相关数据json (包括:路径,宽和高)"
)
private
List
<
ImgJson
>
imgList
;
private
List
<
ImgJson
>
imgList
;
...
...
common/src/main/resources/mapper/BusinessPlainMapper.xml
View file @
d5875b24
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
wechat,
wechat,
status,
status,
create_time,
create_time,
update_time
update_time,
recommend
</sql>
</sql>
<sql
id=
"Base_Column_ListForApp"
>
<sql
id=
"Base_Column_ListForApp"
>
...
@@ -24,7 +25,8 @@
...
@@ -24,7 +25,8 @@
bp.name,
bp.name,
bp.phone,
bp.phone,
bp.wechat,
bp.wechat,
m.`name` AS mcName
m.`name` AS mcName,
bp.recommend
</sql>
</sql>
<select
id=
"getBusinessPlainById"
resultType=
"com.jumeirah.common.vo.BusinessPlainQueryVo"
>
<select
id=
"getBusinessPlainById"
resultType=
"com.jumeirah.common.vo.BusinessPlainQueryVo"
>
...
@@ -56,6 +58,7 @@
...
@@ -56,6 +58,7 @@
where bp.business_type = #{param.type}
where bp.business_type = #{param.type}
AND m.state = 1
AND m.state = 1
and m.audit_register_status = 1
and m.audit_register_status = 1
ORDER BY bp.recommend DESC
</select>
</select>
<resultMap
id=
"pageListMapForApp"
type=
"com.jumeirah.common.vo.BusinessPlainQueryForAppVo"
>
<resultMap
id=
"pageListMapForApp"
type=
"com.jumeirah.common.vo.BusinessPlainQueryForAppVo"
>
...
...
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