Commit 70eef023 by hewei

Merge branch 'future/strokeList' into 'master'

Future/stroke list

See merge request hewei/Jumeirah!70
parents fe16d531 c03eb3c4
......@@ -60,7 +60,7 @@ public class CharterIntroductionForMerController extends BaseController {
* 修改包机介绍
*/
@PostMapping("/update")
@OperationLog(name = "修改包机介绍", type = OperationLogType.UPDATE)
// @OperationLog(name = "修改包机介绍", type = OperationLogType.UPDATE)
@ApiOperation(value = "修改包机介绍")
@RequiresPermissions("merchant:aircraft:management:edit")
public ApiResult<Boolean> updateCharterIntroduction(@Validated(Update.class) @RequestBody CharterIntroductionUpdateParam charterIntroductionUpdateParam) throws Exception {
......
......@@ -49,6 +49,14 @@
</dependency>
<!-- 极光 end -->
<!-- wecloud短信 start-->
<!-- <dependency>-->
<!-- <groupId>cn.wecloud</groupId>-->
<!-- <artifactId>we-cloud-sdk-sms</artifactId>-->
<!-- <version>0.0.1</version>-->
<!-- </dependency>-->
<!-- wecloud短信 end-->
</dependencies>
</project>
\ No newline at end of file
......@@ -24,10 +24,10 @@ public class CharterIntroductionUpdateParam extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("id")
private Integer id;
private Long id;
@ApiModelProperty("包机图片url")
private List<ImgJson> imgUrl;
private List<ImgJson> imgList;
@ApiModelProperty(value = "包机文字")
private String text;
......
......@@ -60,8 +60,9 @@ public class CharterIntroductionServiceImpl extends BaseServiceImpl<CharterIntro
CharterIntroduction charterIntroduction = new 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);
}
......
......@@ -45,6 +45,9 @@ public class BusinessPlainQueryForAppVo implements Serializable {
@ApiModelProperty("商家头像")
private String mcHead;
@ApiModelProperty("推荐: 0不推荐 1推荐")
private Integer recommend;
@TableField(typeHandler = FastjsonTypeHandler.class)
@ApiModelProperty("图片相关数据json (包括:路径,宽和高)")
private List<ImgJson> imgList;
......
......@@ -14,7 +14,8 @@
wechat,
status,
create_time,
update_time
update_time,
recommend
</sql>
<sql id="Base_Column_ListForApp">
......@@ -24,7 +25,8 @@
bp.name,
bp.phone,
bp.wechat,
m.`name` AS mcName
m.`name` AS mcName,
bp.recommend
</sql>
<select id="getBusinessPlainById" resultType="com.jumeirah.common.vo.BusinessPlainQueryVo">
......@@ -56,6 +58,7 @@
where bp.business_type = #{param.type}
AND m.state = 1
and m.audit_register_status = 1
ORDER BY bp.recommend DESC
</select>
<resultMap id="pageListMapForApp" type="com.jumeirah.common.vo.BusinessPlainQueryForAppVo">
......
......@@ -14,9 +14,9 @@ spring-boot-plus:
spring:
datasource:
url: jdbc:mysql://47.99.47.225:3306/Jumeirah?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: temple123456
url: jdbc:mysql://122.9.51.93:3306/jumeirah?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: web
password: wBT7bC9BeUkE
# Redis配置
redis:
......
......@@ -15,15 +15,15 @@ spring-boot-plus:
spring:
datasource:
url: jdbc:mysql://47.99.47.225:3306/Jumeirah?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: temple123456
url: jdbc:mysql://122.9.51.93:3306/jumeirah?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: web
password: wBT7bC9BeUkE
# Redis配置
redis:
database: 0
host: 127.0.0.1
password: temple123456
password: LSlX0JKkD34U3oY3hwI5
port: 6379
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment