Commit 4ed78a78 by XiaHou

云应用相关的业务代码

parent c189b308
...@@ -27,8 +27,5 @@ public class InsertAtlAppAliossParam implements Serializable { ...@@ -27,8 +27,5 @@ public class InsertAtlAppAliossParam implements Serializable {
private String ossUrl; private String ossUrl;
@ApiModelProperty(value = "本地服务器是否存储 0否 1是") @ApiModelProperty(value = "本地服务器是否存储 0否 1是")
private Integer isSaveLocal; private Integer isSaveLocal;
@ApiModelProperty(value = "是否开启 0否 1是")
private Integer isOpen;
} }
package com.hwstudio.antaile.controller; package com.hwstudio.antaile.controller;
import com.hwstudio.antaile.InsertParam.InsertAtlAppAliossParam; import com.hwstudio.antaile.InsertParam.InsertAtlAppAliossParam;
import com.hwstudio.antaile.entity.AtlUser;
import com.hwstudio.antaile.mbg.po.AtlAppAlioss; import com.hwstudio.antaile.mbg.po.AtlAppAlioss;
import com.hwstudio.antaile.mbg.po.AtlAppstoreOrder; import com.hwstudio.antaile.mbg.po.AtlAppstoreOrder;
import com.hwstudio.antaile.queryparam.QueryAliossAndOrderParam; import com.hwstudio.antaile.queryparam.QueryAliossAndOrderParam;
...@@ -12,7 +13,6 @@ import io.swagger.annotations.ApiParam; ...@@ -12,7 +13,6 @@ import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List; import java.util.List;
/** /**
...@@ -31,9 +31,9 @@ public class AtlAppAliossController extends BaseController { ...@@ -31,9 +31,9 @@ public class AtlAppAliossController extends BaseController {
@ApiOperation("根据appOrderId 查询一条oss数据") @ApiOperation("根据appOrderId 查询一条oss数据")
@RequestMapping(value = "/selectOneByAppOrderId", method = RequestMethod.GET) @RequestMapping(value = "/selectOneByAppOrderId", method = RequestMethod.GET)
public JsonResult<List<AtlAppAlioss>> selectOneByAppOrderId(@ApiParam(value = "关联app应用订单id", required = true) @RequestParam(value = "appOrderId", required = true) Long appOrderId, HttpServletRequest request) { public JsonResult<List<AtlAppAlioss>> selectOneByAppOrderId(@ApiParam(value = "关联app应用订单id", required = true) @RequestParam(value = "appOrderId", required = true) Long appOrderId) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if (token == null) { if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return JsonResult.success("查询成功", this.atlAppAliossService.selectOneByAppOrderId(appOrderId)); return JsonResult.success("查询成功", this.atlAppAliossService.selectOneByAppOrderId(appOrderId));
...@@ -41,9 +41,9 @@ public class AtlAppAliossController extends BaseController { ...@@ -41,9 +41,9 @@ public class AtlAppAliossController extends BaseController {
@ApiOperation("新增一条阿里云oss订单配置数据") @ApiOperation("新增一条阿里云oss订单配置数据")
@RequestMapping(value = "/insertAtlAppAlioss", method = RequestMethod.POST) @RequestMapping(value = "/insertAtlAppAlioss", method = RequestMethod.POST)
public JsonResult<AtlAppstoreOrder> insertAtlAppAlioss(@ApiParam(value = "传入对象") @RequestBody InsertAtlAppAliossParam insertAtlAppAliossParam, HttpServletRequest request) { public JsonResult<AtlAppstoreOrder> insertAtlAppAlioss(@ApiParam(value = "传入对象") @RequestBody InsertAtlAppAliossParam insertAtlAppAliossParam) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if (token == null) { if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return this.atlAppAliossService.insertAtlAppAlioss(insertAtlAppAliossParam); return this.atlAppAliossService.insertAtlAppAlioss(insertAtlAppAliossParam);
...@@ -51,9 +51,9 @@ public class AtlAppAliossController extends BaseController { ...@@ -51,9 +51,9 @@ public class AtlAppAliossController extends BaseController {
@ApiOperation("根据id 修改配置数据") @ApiOperation("根据id 修改配置数据")
@RequestMapping(value = "/updateByAtlAppAliossId", method = RequestMethod.POST) @RequestMapping(value = "/updateByAtlAppAliossId", method = RequestMethod.POST)
public JsonResult updateByAtlAppAliossId(@ApiParam(value = "传入对象") @RequestBody AtlAppAlioss atlAppAlioss, HttpServletRequest request) { public JsonResult updateByAtlAppAliossId(@ApiParam(value = "传入对象") @RequestBody AtlAppAlioss atlAppAlioss) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if (token == null) { if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return this.atlAppAliossService.updateByAtlAppAliossId(atlAppAlioss); return this.atlAppAliossService.updateByAtlAppAliossId(atlAppAlioss);
......
...@@ -2,6 +2,7 @@ package com.hwstudio.antaile.controller; ...@@ -2,6 +2,7 @@ package com.hwstudio.antaile.controller;
import com.hwstudio.antaile.InsertParam.InsertAppstoreOrderParam; import com.hwstudio.antaile.InsertParam.InsertAppstoreOrderParam;
import com.hwstudio.antaile.dto.AtlAppstoreDTO; import com.hwstudio.antaile.dto.AtlAppstoreDTO;
import com.hwstudio.antaile.entity.AtlUser;
import com.hwstudio.antaile.mbg.po.AtlAppstoreOrder; import com.hwstudio.antaile.mbg.po.AtlAppstoreOrder;
import com.hwstudio.antaile.queryparam.QueryAtlAppstoreOrderParam; import com.hwstudio.antaile.queryparam.QueryAtlAppstoreOrderParam;
import com.hwstudio.antaile.service.AtlAppStoreOrderService; import com.hwstudio.antaile.service.AtlAppStoreOrderService;
...@@ -34,9 +35,9 @@ public class AtlAppstoreOrderController extends BaseController { ...@@ -34,9 +35,9 @@ public class AtlAppstoreOrderController extends BaseController {
@ApiOperation("根据订单id 修改订单相关数据") @ApiOperation("根据订单id 修改订单相关数据")
@RequestMapping(value = "/updateAppstoreOrderById", method = RequestMethod.POST) @RequestMapping(value = "/updateAppstoreOrderById", method = RequestMethod.POST)
public JsonResult updateAppstoreOrderById(@ApiParam(value = "传入对象") @RequestBody AtlAppstoreOrder atlAppstoreOrder,HttpServletRequest request) { public JsonResult updateAppstoreOrderById(@ApiParam(value = "传入对象") @RequestBody AtlAppstoreOrder atlAppstoreOrder) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if(token == null){ if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return this.atlAppStoreOrderService.updateAppstoreOrderById(atlAppstoreOrder); return this.atlAppStoreOrderService.updateAppstoreOrderById(atlAppstoreOrder);
...@@ -44,9 +45,9 @@ public class AtlAppstoreOrderController extends BaseController { ...@@ -44,9 +45,9 @@ public class AtlAppstoreOrderController extends BaseController {
@ApiOperation("生成订单") @ApiOperation("生成订单")
@RequestMapping(value = "/generateAppstoreOrder", method = RequestMethod.POST) @RequestMapping(value = "/generateAppstoreOrder", method = RequestMethod.POST)
public JsonResult<AtlAppstoreOrder> generateAppstoreOrder(@ApiParam(value = "传入对象") @RequestBody InsertAppstoreOrderParam insertAppstoreOrderParam,HttpServletRequest request) { public JsonResult<AtlAppstoreOrder> generateAppstoreOrder(@ApiParam(value = "传入对象") @RequestBody InsertAppstoreOrderParam insertAppstoreOrderParam) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if(token == null){ if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return this.atlAppStoreOrderService.generateAppstoreOrder(insertAppstoreOrderParam); return this.atlAppStoreOrderService.generateAppstoreOrder(insertAppstoreOrderParam);
...@@ -54,9 +55,9 @@ public class AtlAppstoreOrderController extends BaseController { ...@@ -54,9 +55,9 @@ public class AtlAppstoreOrderController extends BaseController {
@ApiOperation("用户查询我的订单数据,不传分页参数不分页") @ApiOperation("用户查询我的订单数据,不传分页参数不分页")
@RequestMapping(value = "/selectAtlAppstoreOrderList", method = RequestMethod.GET) @RequestMapping(value = "/selectAtlAppstoreOrderList", method = RequestMethod.GET)
public JsonResult<List<AtlAppstoreDTO>> selectAtlAppstoreOrderList(@ModelAttribute QueryAtlAppstoreOrderParam queryAtlAppstoreOrderParam, @ModelAttribute Page page,HttpServletRequest request) { public JsonResult<List<AtlAppstoreDTO>> selectAtlAppstoreOrderList(@ModelAttribute QueryAtlAppstoreOrderParam queryAtlAppstoreOrderParam, @ModelAttribute Page page) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if(token == null){ if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return JsonResult.success("查询成功", this.atlAppStoreOrderService.selectAtlAppstoreOrderList(queryAtlAppstoreOrderParam, page)); return JsonResult.success("查询成功", this.atlAppStoreOrderService.selectAtlAppstoreOrderList(queryAtlAppstoreOrderParam, page));
...@@ -64,9 +65,9 @@ public class AtlAppstoreOrderController extends BaseController { ...@@ -64,9 +65,9 @@ public class AtlAppstoreOrderController extends BaseController {
@ApiOperation("根据参数(可以只查菜单)查询我的应用 ,不传分页参数不分页") @ApiOperation("根据参数(可以只查菜单)查询我的应用 ,不传分页参数不分页")
@RequestMapping(value = "/selectMyAtlAppstore", method = RequestMethod.GET) @RequestMapping(value = "/selectMyAtlAppstore", method = RequestMethod.GET)
public JsonResult<List<AtlAppstoreDTO>> selectMyAtlAppstore(@ModelAttribute QueryAtlAppstoreOrderParam queryAtlAppstoreOrderParam, @ModelAttribute Page page,HttpServletRequest request) { public JsonResult<List<AtlAppstoreDTO>> selectMyAtlAppstore(@ModelAttribute QueryAtlAppstoreOrderParam queryAtlAppstoreOrderParam, @ModelAttribute Page page) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if(token == null){ if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return JsonResult.success("查询成功", this.atlAppStoreOrderService.selectMyAtlAppstore(queryAtlAppstoreOrderParam, page)); return JsonResult.success("查询成功", this.atlAppStoreOrderService.selectMyAtlAppstore(queryAtlAppstoreOrderParam, page));
......
...@@ -2,14 +2,19 @@ package com.hwstudio.antaile.controller; ...@@ -2,14 +2,19 @@ package com.hwstudio.antaile.controller;
import com.hwstudio.antaile.dto.*; import com.hwstudio.antaile.dto.*;
import com.hwstudio.antaile.entity.AtlTime; import com.hwstudio.antaile.entity.AtlTime;
import com.hwstudio.antaile.entity.AtlUser;
import com.hwstudio.antaile.mbg.po.AtlTimeMenu;
import com.hwstudio.antaile.mbg.po.SysAtlTime;
import com.hwstudio.antaile.queryparam.QueryAtlTimeByBlessIdAndIdxParam; import com.hwstudio.antaile.queryparam.QueryAtlTimeByBlessIdAndIdxParam;
import com.hwstudio.antaile.service.*; import com.hwstudio.antaile.service.*;
import com.hwstudio.antaile.utils.JsonResult; import com.hwstudio.antaile.utils.JsonResult;
import com.hwstudio.antaile.utils.RedisUtil;
import com.hwstudio.antaile.vo.*; import com.hwstudio.antaile.vo.*;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -585,4 +590,14 @@ public class AtlTimeController extends BaseController { ...@@ -585,4 +590,14 @@ public class AtlTimeController extends BaseController {
public JsonResult<List<AtlTimeDTO>> selectAtlTimeInfoByBlessIdAndIdx(@ModelAttribute QueryAtlTimeByBlessIdAndIdxParam queryAtlTimeByBlessIdAndIdxParam) { public JsonResult<List<AtlTimeDTO>> selectAtlTimeInfoByBlessIdAndIdx(@ModelAttribute QueryAtlTimeByBlessIdAndIdxParam queryAtlTimeByBlessIdAndIdxParam) {
return this.atlTimeService.selectAtlTimeInfoByBlessIdAndIdx(queryAtlTimeByBlessIdAndIdxParam); return this.atlTimeService.selectAtlTimeInfoByBlessIdAndIdx(queryAtlTimeByBlessIdAndIdxParam);
} }
@ApiOperation("根据时光纪id修改一条时光纪数据")
@RequestMapping(value = "/updateByTimeId", method = RequestMethod.POST)
public JsonResult updateByTimeId(@ApiParam(value = "传入对象") @RequestBody SysAtlTime sysAtlTime) {
AtlUser atlUser = super.getHeadToken();
if (atlUser == null) {
return JsonResult.notLogin();
}
return this.atlTimeService.updateByTimeId(sysAtlTime);
}
} }
package com.hwstudio.antaile.controller; package com.hwstudio.antaile.controller;
import com.hwstudio.antaile.InsertParam.InsertAtlAppAliossParam;
import com.hwstudio.antaile.InsertParam.InsertAtlTimeMenuParam; import com.hwstudio.antaile.InsertParam.InsertAtlTimeMenuParam;
import com.hwstudio.antaile.mbg.po.AtlAppAlioss; import com.hwstudio.antaile.dto.AtlTimeMenuDTO;
import com.hwstudio.antaile.mbg.po.AtlAppstoreOrder; import com.hwstudio.antaile.entity.AtlUser;
import com.hwstudio.antaile.queryparam.QueryAliossAndOrderParam; import com.hwstudio.antaile.mbg.po.AtlTimeMenu;
import com.hwstudio.antaile.queryparam.QueryAtlTimeMenuParam; import com.hwstudio.antaile.queryparam.QueryAtlTimeMenuParam;
import com.hwstudio.antaile.service.AtlAppAliossService;
import com.hwstudio.antaile.service.AtlTimeMenuService; import com.hwstudio.antaile.service.AtlTimeMenuService;
import com.hwstudio.antaile.utils.JsonResult; import com.hwstudio.antaile.utils.JsonResult;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -33,20 +31,35 @@ public class AtlTimeMenuController extends BaseController { ...@@ -33,20 +31,35 @@ public class AtlTimeMenuController extends BaseController {
private AtlTimeMenuService atlTimeMenuService; private AtlTimeMenuService atlTimeMenuService;
@ApiOperation("插入时光纪与菜单关系") @ApiOperation("插入时光纪与菜单关系(清除之前的关系 以传入最后的为准)")
@RequestMapping(value = "/insertAtlTimeMenu", method = RequestMethod.POST) @RequestMapping(value = "/insertAtlTimeMenu", method = RequestMethod.POST)
public JsonResult insertAtlTimeMenu(@ApiParam(value = "传入对象") @RequestBody InsertAtlTimeMenuParam insertAtlTimeMenuParam, HttpServletRequest request) { public JsonResult insertAtlTimeMenu(@ApiParam(value = "传入对象") @RequestBody InsertAtlTimeMenuParam insertAtlTimeMenuParam) {
String token = request.getHeader("token"); AtlUser atlUser = super.getHeadToken();
if (token == null) { if (atlUser == null) {
return JsonResult.notLogin(); return JsonResult.notLogin();
} }
return this.atlTimeMenuService.insertAtlTimeMenu(insertAtlTimeMenuParam); return this.atlTimeMenuService.insertAtlTimeMenu(insertAtlTimeMenuParam);
} }
@ApiOperation("查询时光纪相关菜单") @ApiOperation("查询时光纪相关菜单")
@RequestMapping(value = "/selectTimeMenu", method = RequestMethod.GET) @RequestMapping(value = "/selectAtlTimeMenuListByTimeId", method = RequestMethod.GET)
public JsonResult selectTimeMenu(@ModelAttribute QueryAtlTimeMenuParam queryAtlTimeMenuParam) { public JsonResult<List<AtlTimeMenuDTO>> selectAtlTimeMenuListByTimeId(@ModelAttribute QueryAtlTimeMenuParam queryAtlTimeMenuParam) {
return this.atlTimeMenuService.selectTimeMenu(queryAtlTimeMenuParam); return JsonResult.success("查询成功", this.atlTimeMenuService.selectAtlTimeMenuListByTimeId(queryAtlTimeMenuParam));
} }
@ApiOperation("传入时光纪id 初始化菜单-恢复至默认情况")
@RequestMapping(value = "/initDefaultMenu", method = RequestMethod.GET)
public JsonResult initDefaultMenu(@ApiParam(value = "时光纪id", required = true) @RequestParam(value = "timeId", required = true) Long timeId) {
return this.atlTimeMenuService.initDefaultMenu(timeId);
}
@ApiOperation("根据id修改一条菜单信息")
@RequestMapping(value = "/updateAtlTimeMenuById", method = RequestMethod.POST)
public JsonResult updateAtlTimeMenuById(@ApiParam(value = "传入对象") @RequestBody AtlTimeMenu atlTimeMenu) {
AtlUser atlUser = super.getHeadToken();
if (atlUser == null) {
return JsonResult.notLogin();
}
return this.atlTimeMenuService.updateAtlTimeMenuById(atlTimeMenu);
}
} }
package com.hwstudio.antaile.controller; package com.hwstudio.antaile.controller;
import com.hwstudio.antaile.entity.AtlUser;
import com.hwstudio.antaile.utils.RedisUtil;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -9,16 +11,21 @@ import java.util.Objects; ...@@ -9,16 +11,21 @@ import java.util.Objects;
/** /**
* 功能描述: <br>统一控制器 * 功能描述: <br>统一控制器
* 〈〉 * 〈〉
*
* @since: 1.0.0 * @since: 1.0.0
* @Author:Momo * @Author:Momo
* @Date: 2019/5/26 17:01 * @Date: 2019/5/26 17:01
*/ */
public class BaseController { public class BaseController {
@Autowired @Autowired
private HttpServletRequest request; private HttpServletRequest request;
@Autowired
private RedisUtil redisUtil;
/** /**
* 获取userId * 获取userId
*
* @return * @return
*/ */
protected Long getUserId() { protected Long getUserId() {
...@@ -32,4 +39,17 @@ public class BaseController { ...@@ -32,4 +39,17 @@ public class BaseController {
return Long.parseLong(userId.toString()); return Long.parseLong(userId.toString());
} }
/**
* 请求url中解析token 获取user对象
*
* @return
*/
public AtlUser getHeadToken() {
String token = request.getHeader("token");
AtlUser atlUser = (AtlUser) redisUtil.get(token);
if(atlUser == null){
return null;
}
return atlUser;
}
} }
...@@ -27,20 +27,14 @@ public class AtlAppstoreDTO implements Serializable { ...@@ -27,20 +27,14 @@ public class AtlAppstoreDTO implements Serializable {
private String appName; private String appName;
@ApiModelProperty(value = "开发者") @ApiModelProperty(value = "开发者")
private String appDeveloper; private String appDeveloper;
@ApiModelProperty(value = "应用介绍")
private String appIntroduce;
@ApiModelProperty(value = "销量") @ApiModelProperty(value = "销量")
private Long saleNum; private Long saleNum;
@ApiModelProperty(value = "菜单名称")
private String menuName;
@ApiModelProperty(value = "菜单链接")
private String menuUrl;
@ApiModelProperty(value = "菜单其他链接")
private String menuOtherUrl;
@ApiModelProperty(value = "菜单设置链接")
private String menuSetUrl;
@ApiModelProperty(value = "原价") @ApiModelProperty(value = "原价")
private BigDecimal appPrice1; private BigDecimal appPrice1;
@ApiModelProperty(value = "现售价") @ApiModelProperty(value = "现售价")
private BigDecimal app_price2; private BigDecimal appPrice2;
@ApiModelProperty(value = "是否上架(0是|1否)") @ApiModelProperty(value = "是否上架(0是|1否)")
private Integer isSale; private Integer isSale;
@ApiModelProperty(value = "是否推荐(0是|1否)") @ApiModelProperty(value = "是否推荐(0是|1否)")
......
package com.hwstudio.antaile.dto; package com.hwstudio.antaile.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
...@@ -12,5 +13,23 @@ import java.io.Serializable; ...@@ -12,5 +13,23 @@ import java.io.Serializable;
@Data @Data
public class AtlTimeMenuDTO implements Serializable { public class AtlTimeMenuDTO implements Serializable {
@ApiModelProperty(value = "时光纪菜单id")
private Long id;
@ApiModelProperty(value = "时光纪id")
private Long timeId;
@ApiModelProperty(value = "菜单id")
private Long menuId;
@ApiModelProperty(value = "是否开启(0是|1否)")
private Integer isOpen;
@ApiModelProperty(value = "菜单排序:1最大 9999最小 顺序")
private Integer menuSort;
@ApiModelProperty(value = "菜单名称")
private String menuName;
@ApiModelProperty(value = "菜单类型: 0展示端")
private Integer menuType;
@ApiModelProperty(value = "是否默认菜单(0是|1否)")
private Integer defaultMenu;
} }
...@@ -42,4 +42,6 @@ public class AtlTime { ...@@ -42,4 +42,6 @@ public class AtlTime {
private Long blessId; private Long blessId;
@ApiModelProperty(value = "关联的福位格ID(ERP库osh_user_bless_using表bless_idx字段)") @ApiModelProperty(value = "关联的福位格ID(ERP库osh_user_bless_using表bless_idx字段)")
private Integer blessIdx; private Integer blessIdx;
@ApiModelProperty(value = "oss配置时光纪相关的路径")
private String ossCatalogue;
} }
\ No newline at end of file
package com.hwstudio.antaile.mapper; package com.hwstudio.antaile.mapper;
import com.hwstudio.antaile.dto.AtlTimeMenuDTO;
import com.hwstudio.antaile.queryparam.QueryAtlTimeMenuParam;
import java.util.List;
/** /**
* @Author xh * @Author xh
* @Date 2021/7/13 * @Date 2021/7/13
...@@ -7,4 +12,20 @@ package com.hwstudio.antaile.mapper; ...@@ -7,4 +12,20 @@ package com.hwstudio.antaile.mapper;
*/ */
public interface AtlTimeMenuDao { public interface AtlTimeMenuDao {
/**
* 根据时光纪查询菜单
*
* @param queryAtlTimeMenuParam
* @return
*/
List<AtlTimeMenuDTO> selectAtlTimeMenuListByTimeId(QueryAtlTimeMenuParam queryAtlTimeMenuParam);
/**
* 查询时光纪下最大的排序菜单
*
* @param timeId
* @return
*/
Integer selectMaxSortByTimeId(Long timeId);
} }
package com.hwstudio.antaile.mbg.mapper;
import com.hwstudio.antaile.mbg.po.SysAtlTime;
import com.hwstudio.antaile.mbg.po.SysAtlTimeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysAtlTimeMapper {
long countByExample(SysAtlTimeExample example);
int deleteByExample(SysAtlTimeExample example);
int deleteByPrimaryKey(Long id);
int insert(SysAtlTime record);
int insertSelective(SysAtlTime record);
List<SysAtlTime> selectByExample(SysAtlTimeExample example);
SysAtlTime selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") SysAtlTime record, @Param("example") SysAtlTimeExample example);
int updateByExample(@Param("record") SysAtlTime record, @Param("example") SysAtlTimeExample example);
int updateByPrimaryKeySelective(SysAtlTime record);
int updateByPrimaryKey(SysAtlTime record);
}
\ No newline at end of file
...@@ -19,6 +19,12 @@ public class AtlTimeMenu implements Serializable { ...@@ -19,6 +19,12 @@ public class AtlTimeMenu implements Serializable {
@ApiModelProperty(value = "关联菜单id") @ApiModelProperty(value = "关联菜单id")
private Long menuId; private Long menuId;
@ApiModelProperty(value = "是否开启(0是|1否)")
private Integer isOpen;
@ApiModelProperty(value = "菜单排序:1最大 9999最小 顺序")
private Integer menuSort;
@ApiModelProperty(value = "备注") @ApiModelProperty(value = "备注")
private String remark; private String remark;
...@@ -56,6 +62,22 @@ public class AtlTimeMenu implements Serializable { ...@@ -56,6 +62,22 @@ public class AtlTimeMenu implements Serializable {
this.menuId = menuId; this.menuId = menuId;
} }
public Integer getIsOpen() {
return isOpen;
}
public void setIsOpen(Integer isOpen) {
this.isOpen = isOpen;
}
public Integer getMenuSort() {
return menuSort;
}
public void setMenuSort(Integer menuSort) {
this.menuSort = menuSort;
}
public String getRemark() { public String getRemark() {
return remark; return remark;
} }
...@@ -89,6 +111,8 @@ public class AtlTimeMenu implements Serializable { ...@@ -89,6 +111,8 @@ public class AtlTimeMenu implements Serializable {
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", timeId=").append(timeId); sb.append(", timeId=").append(timeId);
sb.append(", menuId=").append(menuId); sb.append(", menuId=").append(menuId);
sb.append(", isOpen=").append(isOpen);
sb.append(", menuSort=").append(menuSort);
sb.append(", remark=").append(remark); sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);
......
...@@ -285,6 +285,126 @@ public class AtlTimeMenuExample { ...@@ -285,6 +285,126 @@ public class AtlTimeMenuExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsOpenIsNull() {
addCriterion("is_open is null");
return (Criteria) this;
}
public Criteria andIsOpenIsNotNull() {
addCriterion("is_open is not null");
return (Criteria) this;
}
public Criteria andIsOpenEqualTo(Integer value) {
addCriterion("is_open =", value, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenNotEqualTo(Integer value) {
addCriterion("is_open <>", value, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenGreaterThan(Integer value) {
addCriterion("is_open >", value, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenGreaterThanOrEqualTo(Integer value) {
addCriterion("is_open >=", value, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenLessThan(Integer value) {
addCriterion("is_open <", value, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenLessThanOrEqualTo(Integer value) {
addCriterion("is_open <=", value, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenIn(List<Integer> values) {
addCriterion("is_open in", values, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenNotIn(List<Integer> values) {
addCriterion("is_open not in", values, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenBetween(Integer value1, Integer value2) {
addCriterion("is_open between", value1, value2, "isOpen");
return (Criteria) this;
}
public Criteria andIsOpenNotBetween(Integer value1, Integer value2) {
addCriterion("is_open not between", value1, value2, "isOpen");
return (Criteria) this;
}
public Criteria andMenuSortIsNull() {
addCriterion("menu_sort is null");
return (Criteria) this;
}
public Criteria andMenuSortIsNotNull() {
addCriterion("menu_sort is not null");
return (Criteria) this;
}
public Criteria andMenuSortEqualTo(Integer value) {
addCriterion("menu_sort =", value, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortNotEqualTo(Integer value) {
addCriterion("menu_sort <>", value, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortGreaterThan(Integer value) {
addCriterion("menu_sort >", value, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortGreaterThanOrEqualTo(Integer value) {
addCriterion("menu_sort >=", value, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortLessThan(Integer value) {
addCriterion("menu_sort <", value, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortLessThanOrEqualTo(Integer value) {
addCriterion("menu_sort <=", value, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortIn(List<Integer> values) {
addCriterion("menu_sort in", values, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortNotIn(List<Integer> values) {
addCriterion("menu_sort not in", values, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortBetween(Integer value1, Integer value2) {
addCriterion("menu_sort between", value1, value2, "menuSort");
return (Criteria) this;
}
public Criteria andMenuSortNotBetween(Integer value1, Integer value2) {
addCriterion("menu_sort not between", value1, value2, "menuSort");
return (Criteria) this;
}
public Criteria andRemarkIsNull() { public Criteria andRemarkIsNull() {
addCriterion("remark is null"); addCriterion("remark is null");
return (Criteria) this; return (Criteria) this;
......
package com.hwstudio.antaile.mbg.po;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
public class SysAtlTime implements Serializable {
@ApiModelProperty(value = "主键")
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id;
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "模板id")
private Long templateId;
@ApiModelProperty(value = "名称")
private String name;
@ApiModelProperty(value = "关于谁")
private String aboutName;
@ApiModelProperty(value = "封面图")
private String coverUrl;
@ApiModelProperty(value = "域名")
private String secondUrl;
@ApiModelProperty(value = "隐私设置")
private Integer privacySetting;
@ApiModelProperty(value = "状态 0-删除 1-正常")
private Integer status;
@ApiModelProperty(value = "备注")
private String remarks;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createDate;
@ApiModelProperty(value = "修改时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateDate;
@ApiModelProperty(value = "是否默认 0-否 1-是")
private Integer isDefault;
@ApiModelProperty(value = "二维码地址")
private String codeUrl;
@ApiModelProperty(value = "是否首页推荐 0-否 1-是")
private Integer isCommend;
@ApiModelProperty(value = "是否频道页推荐 0-否 1-是")
private Integer isChannelCommend;
@ApiModelProperty(value = "是否发现页推荐 0-否 1-是")
private Integer isFindCommend;
@ApiModelProperty(value = "阅读量")
private Integer readCount;
@ApiModelProperty(value = "喜欢量")
private Integer likeCount;
@ApiModelProperty(value = "自传书id")
private Long autobiographyId;
@ApiModelProperty(value = "是否快捷发布")
private Integer isQuickDefault;
@ApiModelProperty(value = "福位晋塔ID(ERP库osh_user_bless_using表ID字段)")
private Long blessUsingId;
@ApiModelProperty(value = "关联的福位ID(ERP库osh_user_bless_using表bless_id字段)")
private Long blessId;
@ApiModelProperty(value = "关联的福位格ID(ERP库osh_user_bless_using表bless_idx字段)")
private Integer blessIdx;
@ApiModelProperty(value = "oss配置时光纪相关的路径")
private String ossCatalogue;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getTemplateId() {
return templateId;
}
public void setTemplateId(Long templateId) {
this.templateId = templateId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAboutName() {
return aboutName;
}
public void setAboutName(String aboutName) {
this.aboutName = aboutName;
}
public String getCoverUrl() {
return coverUrl;
}
public void setCoverUrl(String coverUrl) {
this.coverUrl = coverUrl;
}
public String getSecondUrl() {
return secondUrl;
}
public void setSecondUrl(String secondUrl) {
this.secondUrl = secondUrl;
}
public Integer getPrivacySetting() {
return privacySetting;
}
public void setPrivacySetting(Integer privacySetting) {
this.privacySetting = privacySetting;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public Integer getIsDefault() {
return isDefault;
}
public void setIsDefault(Integer isDefault) {
this.isDefault = isDefault;
}
public String getCodeUrl() {
return codeUrl;
}
public void setCodeUrl(String codeUrl) {
this.codeUrl = codeUrl;
}
public Integer getIsCommend() {
return isCommend;
}
public void setIsCommend(Integer isCommend) {
this.isCommend = isCommend;
}
public Integer getIsChannelCommend() {
return isChannelCommend;
}
public void setIsChannelCommend(Integer isChannelCommend) {
this.isChannelCommend = isChannelCommend;
}
public Integer getIsFindCommend() {
return isFindCommend;
}
public void setIsFindCommend(Integer isFindCommend) {
this.isFindCommend = isFindCommend;
}
public Integer getReadCount() {
return readCount;
}
public void setReadCount(Integer readCount) {
this.readCount = readCount;
}
public Integer getLikeCount() {
return likeCount;
}
public void setLikeCount(Integer likeCount) {
this.likeCount = likeCount;
}
public Long getAutobiographyId() {
return autobiographyId;
}
public void setAutobiographyId(Long autobiographyId) {
this.autobiographyId = autobiographyId;
}
public Integer getIsQuickDefault() {
return isQuickDefault;
}
public void setIsQuickDefault(Integer isQuickDefault) {
this.isQuickDefault = isQuickDefault;
}
public Long getBlessUsingId() {
return blessUsingId;
}
public void setBlessUsingId(Long blessUsingId) {
this.blessUsingId = blessUsingId;
}
public Long getBlessId() {
return blessId;
}
public void setBlessId(Long blessId) {
this.blessId = blessId;
}
public Integer getBlessIdx() {
return blessIdx;
}
public void setBlessIdx(Integer blessIdx) {
this.blessIdx = blessIdx;
}
public String getOssCatalogue() {
return ossCatalogue;
}
public void setOssCatalogue(String ossCatalogue) {
this.ossCatalogue = ossCatalogue;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", templateId=").append(templateId);
sb.append(", name=").append(name);
sb.append(", aboutName=").append(aboutName);
sb.append(", coverUrl=").append(coverUrl);
sb.append(", secondUrl=").append(secondUrl);
sb.append(", privacySetting=").append(privacySetting);
sb.append(", status=").append(status);
sb.append(", remarks=").append(remarks);
sb.append(", createDate=").append(createDate);
sb.append(", updateDate=").append(updateDate);
sb.append(", isDefault=").append(isDefault);
sb.append(", codeUrl=").append(codeUrl);
sb.append(", isCommend=").append(isCommend);
sb.append(", isChannelCommend=").append(isChannelCommend);
sb.append(", isFindCommend=").append(isFindCommend);
sb.append(", readCount=").append(readCount);
sb.append(", likeCount=").append(likeCount);
sb.append(", autobiographyId=").append(autobiographyId);
sb.append(", isQuickDefault=").append(isQuickDefault);
sb.append(", blessUsingId=").append(blessUsingId);
sb.append(", blessId=").append(blessId);
sb.append(", blessIdx=").append(blessIdx);
sb.append(", ossCatalogue=").append(ossCatalogue);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.hwstudio.antaile.mbg.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysAtlTimeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysAtlTimeExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andTemplateIdIsNull() {
addCriterion("template_id is null");
return (Criteria) this;
}
public Criteria andTemplateIdIsNotNull() {
addCriterion("template_id is not null");
return (Criteria) this;
}
public Criteria andTemplateIdEqualTo(Long value) {
addCriterion("template_id =", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotEqualTo(Long value) {
addCriterion("template_id <>", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThan(Long value) {
addCriterion("template_id >", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThanOrEqualTo(Long value) {
addCriterion("template_id >=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThan(Long value) {
addCriterion("template_id <", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThanOrEqualTo(Long value) {
addCriterion("template_id <=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdIn(List<Long> values) {
addCriterion("template_id in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotIn(List<Long> values) {
addCriterion("template_id not in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdBetween(Long value1, Long value2) {
addCriterion("template_id between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotBetween(Long value1, Long value2) {
addCriterion("template_id not between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andAboutNameIsNull() {
addCriterion("about_name is null");
return (Criteria) this;
}
public Criteria andAboutNameIsNotNull() {
addCriterion("about_name is not null");
return (Criteria) this;
}
public Criteria andAboutNameEqualTo(String value) {
addCriterion("about_name =", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameNotEqualTo(String value) {
addCriterion("about_name <>", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameGreaterThan(String value) {
addCriterion("about_name >", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameGreaterThanOrEqualTo(String value) {
addCriterion("about_name >=", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameLessThan(String value) {
addCriterion("about_name <", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameLessThanOrEqualTo(String value) {
addCriterion("about_name <=", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameLike(String value) {
addCriterion("about_name like", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameNotLike(String value) {
addCriterion("about_name not like", value, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameIn(List<String> values) {
addCriterion("about_name in", values, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameNotIn(List<String> values) {
addCriterion("about_name not in", values, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameBetween(String value1, String value2) {
addCriterion("about_name between", value1, value2, "aboutName");
return (Criteria) this;
}
public Criteria andAboutNameNotBetween(String value1, String value2) {
addCriterion("about_name not between", value1, value2, "aboutName");
return (Criteria) this;
}
public Criteria andCoverUrlIsNull() {
addCriterion("cover_url is null");
return (Criteria) this;
}
public Criteria andCoverUrlIsNotNull() {
addCriterion("cover_url is not null");
return (Criteria) this;
}
public Criteria andCoverUrlEqualTo(String value) {
addCriterion("cover_url =", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlNotEqualTo(String value) {
addCriterion("cover_url <>", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlGreaterThan(String value) {
addCriterion("cover_url >", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlGreaterThanOrEqualTo(String value) {
addCriterion("cover_url >=", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlLessThan(String value) {
addCriterion("cover_url <", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlLessThanOrEqualTo(String value) {
addCriterion("cover_url <=", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlLike(String value) {
addCriterion("cover_url like", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlNotLike(String value) {
addCriterion("cover_url not like", value, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlIn(List<String> values) {
addCriterion("cover_url in", values, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlNotIn(List<String> values) {
addCriterion("cover_url not in", values, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlBetween(String value1, String value2) {
addCriterion("cover_url between", value1, value2, "coverUrl");
return (Criteria) this;
}
public Criteria andCoverUrlNotBetween(String value1, String value2) {
addCriterion("cover_url not between", value1, value2, "coverUrl");
return (Criteria) this;
}
public Criteria andSecondUrlIsNull() {
addCriterion("second_url is null");
return (Criteria) this;
}
public Criteria andSecondUrlIsNotNull() {
addCriterion("second_url is not null");
return (Criteria) this;
}
public Criteria andSecondUrlEqualTo(String value) {
addCriterion("second_url =", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlNotEqualTo(String value) {
addCriterion("second_url <>", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlGreaterThan(String value) {
addCriterion("second_url >", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlGreaterThanOrEqualTo(String value) {
addCriterion("second_url >=", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlLessThan(String value) {
addCriterion("second_url <", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlLessThanOrEqualTo(String value) {
addCriterion("second_url <=", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlLike(String value) {
addCriterion("second_url like", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlNotLike(String value) {
addCriterion("second_url not like", value, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlIn(List<String> values) {
addCriterion("second_url in", values, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlNotIn(List<String> values) {
addCriterion("second_url not in", values, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlBetween(String value1, String value2) {
addCriterion("second_url between", value1, value2, "secondUrl");
return (Criteria) this;
}
public Criteria andSecondUrlNotBetween(String value1, String value2) {
addCriterion("second_url not between", value1, value2, "secondUrl");
return (Criteria) this;
}
public Criteria andPrivacySettingIsNull() {
addCriterion("privacy_setting is null");
return (Criteria) this;
}
public Criteria andPrivacySettingIsNotNull() {
addCriterion("privacy_setting is not null");
return (Criteria) this;
}
public Criteria andPrivacySettingEqualTo(Integer value) {
addCriterion("privacy_setting =", value, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingNotEqualTo(Integer value) {
addCriterion("privacy_setting <>", value, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingGreaterThan(Integer value) {
addCriterion("privacy_setting >", value, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingGreaterThanOrEqualTo(Integer value) {
addCriterion("privacy_setting >=", value, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingLessThan(Integer value) {
addCriterion("privacy_setting <", value, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingLessThanOrEqualTo(Integer value) {
addCriterion("privacy_setting <=", value, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingIn(List<Integer> values) {
addCriterion("privacy_setting in", values, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingNotIn(List<Integer> values) {
addCriterion("privacy_setting not in", values, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingBetween(Integer value1, Integer value2) {
addCriterion("privacy_setting between", value1, value2, "privacySetting");
return (Criteria) this;
}
public Criteria andPrivacySettingNotBetween(Integer value1, Integer value2) {
addCriterion("privacy_setting not between", value1, value2, "privacySetting");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andRemarksIsNull() {
addCriterion("remarks is null");
return (Criteria) this;
}
public Criteria andRemarksIsNotNull() {
addCriterion("remarks is not null");
return (Criteria) this;
}
public Criteria andRemarksEqualTo(String value) {
addCriterion("remarks =", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotEqualTo(String value) {
addCriterion("remarks <>", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksGreaterThan(String value) {
addCriterion("remarks >", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksGreaterThanOrEqualTo(String value) {
addCriterion("remarks >=", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLessThan(String value) {
addCriterion("remarks <", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLessThanOrEqualTo(String value) {
addCriterion("remarks <=", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLike(String value) {
addCriterion("remarks like", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotLike(String value) {
addCriterion("remarks not like", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksIn(List<String> values) {
addCriterion("remarks in", values, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotIn(List<String> values) {
addCriterion("remarks not in", values, "remarks");
return (Criteria) this;
}
public Criteria andRemarksBetween(String value1, String value2) {
addCriterion("remarks between", value1, value2, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotBetween(String value1, String value2) {
addCriterion("remarks not between", value1, value2, "remarks");
return (Criteria) this;
}
public Criteria andCreateDateIsNull() {
addCriterion("create_date is null");
return (Criteria) this;
}
public Criteria andCreateDateIsNotNull() {
addCriterion("create_date is not null");
return (Criteria) this;
}
public Criteria andCreateDateEqualTo(Date value) {
addCriterion("create_date =", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotEqualTo(Date value) {
addCriterion("create_date <>", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThan(Date value) {
addCriterion("create_date >", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
addCriterion("create_date >=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThan(Date value) {
addCriterion("create_date <", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateLessThanOrEqualTo(Date value) {
addCriterion("create_date <=", value, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateIn(List<Date> values) {
addCriterion("create_date in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotIn(List<Date> values) {
addCriterion("create_date not in", values, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateBetween(Date value1, Date value2) {
addCriterion("create_date between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andCreateDateNotBetween(Date value1, Date value2) {
addCriterion("create_date not between", value1, value2, "createDate");
return (Criteria) this;
}
public Criteria andUpdateDateIsNull() {
addCriterion("update_date is null");
return (Criteria) this;
}
public Criteria andUpdateDateIsNotNull() {
addCriterion("update_date is not null");
return (Criteria) this;
}
public Criteria andUpdateDateEqualTo(Date value) {
addCriterion("update_date =", value, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateNotEqualTo(Date value) {
addCriterion("update_date <>", value, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateGreaterThan(Date value) {
addCriterion("update_date >", value, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
addCriterion("update_date >=", value, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateLessThan(Date value) {
addCriterion("update_date <", value, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
addCriterion("update_date <=", value, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateIn(List<Date> values) {
addCriterion("update_date in", values, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateNotIn(List<Date> values) {
addCriterion("update_date not in", values, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateBetween(Date value1, Date value2) {
addCriterion("update_date between", value1, value2, "updateDate");
return (Criteria) this;
}
public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
addCriterion("update_date not between", value1, value2, "updateDate");
return (Criteria) this;
}
public Criteria andIsDefaultIsNull() {
addCriterion("is_default is null");
return (Criteria) this;
}
public Criteria andIsDefaultIsNotNull() {
addCriterion("is_default is not null");
return (Criteria) this;
}
public Criteria andIsDefaultEqualTo(Integer value) {
addCriterion("is_default =", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultNotEqualTo(Integer value) {
addCriterion("is_default <>", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultGreaterThan(Integer value) {
addCriterion("is_default >", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultGreaterThanOrEqualTo(Integer value) {
addCriterion("is_default >=", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultLessThan(Integer value) {
addCriterion("is_default <", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultLessThanOrEqualTo(Integer value) {
addCriterion("is_default <=", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultIn(List<Integer> values) {
addCriterion("is_default in", values, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultNotIn(List<Integer> values) {
addCriterion("is_default not in", values, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultBetween(Integer value1, Integer value2) {
addCriterion("is_default between", value1, value2, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultNotBetween(Integer value1, Integer value2) {
addCriterion("is_default not between", value1, value2, "isDefault");
return (Criteria) this;
}
public Criteria andCodeUrlIsNull() {
addCriterion("code_url is null");
return (Criteria) this;
}
public Criteria andCodeUrlIsNotNull() {
addCriterion("code_url is not null");
return (Criteria) this;
}
public Criteria andCodeUrlEqualTo(String value) {
addCriterion("code_url =", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlNotEqualTo(String value) {
addCriterion("code_url <>", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlGreaterThan(String value) {
addCriterion("code_url >", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlGreaterThanOrEqualTo(String value) {
addCriterion("code_url >=", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlLessThan(String value) {
addCriterion("code_url <", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlLessThanOrEqualTo(String value) {
addCriterion("code_url <=", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlLike(String value) {
addCriterion("code_url like", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlNotLike(String value) {
addCriterion("code_url not like", value, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlIn(List<String> values) {
addCriterion("code_url in", values, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlNotIn(List<String> values) {
addCriterion("code_url not in", values, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlBetween(String value1, String value2) {
addCriterion("code_url between", value1, value2, "codeUrl");
return (Criteria) this;
}
public Criteria andCodeUrlNotBetween(String value1, String value2) {
addCriterion("code_url not between", value1, value2, "codeUrl");
return (Criteria) this;
}
public Criteria andIsCommendIsNull() {
addCriterion("is_commend is null");
return (Criteria) this;
}
public Criteria andIsCommendIsNotNull() {
addCriterion("is_commend is not null");
return (Criteria) this;
}
public Criteria andIsCommendEqualTo(Integer value) {
addCriterion("is_commend =", value, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendNotEqualTo(Integer value) {
addCriterion("is_commend <>", value, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendGreaterThan(Integer value) {
addCriterion("is_commend >", value, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendGreaterThanOrEqualTo(Integer value) {
addCriterion("is_commend >=", value, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendLessThan(Integer value) {
addCriterion("is_commend <", value, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendLessThanOrEqualTo(Integer value) {
addCriterion("is_commend <=", value, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendIn(List<Integer> values) {
addCriterion("is_commend in", values, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendNotIn(List<Integer> values) {
addCriterion("is_commend not in", values, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendBetween(Integer value1, Integer value2) {
addCriterion("is_commend between", value1, value2, "isCommend");
return (Criteria) this;
}
public Criteria andIsCommendNotBetween(Integer value1, Integer value2) {
addCriterion("is_commend not between", value1, value2, "isCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendIsNull() {
addCriterion("is_channel_commend is null");
return (Criteria) this;
}
public Criteria andIsChannelCommendIsNotNull() {
addCriterion("is_channel_commend is not null");
return (Criteria) this;
}
public Criteria andIsChannelCommendEqualTo(Integer value) {
addCriterion("is_channel_commend =", value, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendNotEqualTo(Integer value) {
addCriterion("is_channel_commend <>", value, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendGreaterThan(Integer value) {
addCriterion("is_channel_commend >", value, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendGreaterThanOrEqualTo(Integer value) {
addCriterion("is_channel_commend >=", value, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendLessThan(Integer value) {
addCriterion("is_channel_commend <", value, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendLessThanOrEqualTo(Integer value) {
addCriterion("is_channel_commend <=", value, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendIn(List<Integer> values) {
addCriterion("is_channel_commend in", values, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendNotIn(List<Integer> values) {
addCriterion("is_channel_commend not in", values, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendBetween(Integer value1, Integer value2) {
addCriterion("is_channel_commend between", value1, value2, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsChannelCommendNotBetween(Integer value1, Integer value2) {
addCriterion("is_channel_commend not between", value1, value2, "isChannelCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendIsNull() {
addCriterion("is_find_commend is null");
return (Criteria) this;
}
public Criteria andIsFindCommendIsNotNull() {
addCriterion("is_find_commend is not null");
return (Criteria) this;
}
public Criteria andIsFindCommendEqualTo(Integer value) {
addCriterion("is_find_commend =", value, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendNotEqualTo(Integer value) {
addCriterion("is_find_commend <>", value, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendGreaterThan(Integer value) {
addCriterion("is_find_commend >", value, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendGreaterThanOrEqualTo(Integer value) {
addCriterion("is_find_commend >=", value, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendLessThan(Integer value) {
addCriterion("is_find_commend <", value, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendLessThanOrEqualTo(Integer value) {
addCriterion("is_find_commend <=", value, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendIn(List<Integer> values) {
addCriterion("is_find_commend in", values, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendNotIn(List<Integer> values) {
addCriterion("is_find_commend not in", values, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendBetween(Integer value1, Integer value2) {
addCriterion("is_find_commend between", value1, value2, "isFindCommend");
return (Criteria) this;
}
public Criteria andIsFindCommendNotBetween(Integer value1, Integer value2) {
addCriterion("is_find_commend not between", value1, value2, "isFindCommend");
return (Criteria) this;
}
public Criteria andReadCountIsNull() {
addCriterion("read_count is null");
return (Criteria) this;
}
public Criteria andReadCountIsNotNull() {
addCriterion("read_count is not null");
return (Criteria) this;
}
public Criteria andReadCountEqualTo(Integer value) {
addCriterion("read_count =", value, "readCount");
return (Criteria) this;
}
public Criteria andReadCountNotEqualTo(Integer value) {
addCriterion("read_count <>", value, "readCount");
return (Criteria) this;
}
public Criteria andReadCountGreaterThan(Integer value) {
addCriterion("read_count >", value, "readCount");
return (Criteria) this;
}
public Criteria andReadCountGreaterThanOrEqualTo(Integer value) {
addCriterion("read_count >=", value, "readCount");
return (Criteria) this;
}
public Criteria andReadCountLessThan(Integer value) {
addCriterion("read_count <", value, "readCount");
return (Criteria) this;
}
public Criteria andReadCountLessThanOrEqualTo(Integer value) {
addCriterion("read_count <=", value, "readCount");
return (Criteria) this;
}
public Criteria andReadCountIn(List<Integer> values) {
addCriterion("read_count in", values, "readCount");
return (Criteria) this;
}
public Criteria andReadCountNotIn(List<Integer> values) {
addCriterion("read_count not in", values, "readCount");
return (Criteria) this;
}
public Criteria andReadCountBetween(Integer value1, Integer value2) {
addCriterion("read_count between", value1, value2, "readCount");
return (Criteria) this;
}
public Criteria andReadCountNotBetween(Integer value1, Integer value2) {
addCriterion("read_count not between", value1, value2, "readCount");
return (Criteria) this;
}
public Criteria andLikeCountIsNull() {
addCriterion("like_count is null");
return (Criteria) this;
}
public Criteria andLikeCountIsNotNull() {
addCriterion("like_count is not null");
return (Criteria) this;
}
public Criteria andLikeCountEqualTo(Integer value) {
addCriterion("like_count =", value, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountNotEqualTo(Integer value) {
addCriterion("like_count <>", value, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountGreaterThan(Integer value) {
addCriterion("like_count >", value, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountGreaterThanOrEqualTo(Integer value) {
addCriterion("like_count >=", value, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountLessThan(Integer value) {
addCriterion("like_count <", value, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountLessThanOrEqualTo(Integer value) {
addCriterion("like_count <=", value, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountIn(List<Integer> values) {
addCriterion("like_count in", values, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountNotIn(List<Integer> values) {
addCriterion("like_count not in", values, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountBetween(Integer value1, Integer value2) {
addCriterion("like_count between", value1, value2, "likeCount");
return (Criteria) this;
}
public Criteria andLikeCountNotBetween(Integer value1, Integer value2) {
addCriterion("like_count not between", value1, value2, "likeCount");
return (Criteria) this;
}
public Criteria andAutobiographyIdIsNull() {
addCriterion("autobiography_id is null");
return (Criteria) this;
}
public Criteria andAutobiographyIdIsNotNull() {
addCriterion("autobiography_id is not null");
return (Criteria) this;
}
public Criteria andAutobiographyIdEqualTo(Long value) {
addCriterion("autobiography_id =", value, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdNotEqualTo(Long value) {
addCriterion("autobiography_id <>", value, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdGreaterThan(Long value) {
addCriterion("autobiography_id >", value, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdGreaterThanOrEqualTo(Long value) {
addCriterion("autobiography_id >=", value, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdLessThan(Long value) {
addCriterion("autobiography_id <", value, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdLessThanOrEqualTo(Long value) {
addCriterion("autobiography_id <=", value, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdIn(List<Long> values) {
addCriterion("autobiography_id in", values, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdNotIn(List<Long> values) {
addCriterion("autobiography_id not in", values, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdBetween(Long value1, Long value2) {
addCriterion("autobiography_id between", value1, value2, "autobiographyId");
return (Criteria) this;
}
public Criteria andAutobiographyIdNotBetween(Long value1, Long value2) {
addCriterion("autobiography_id not between", value1, value2, "autobiographyId");
return (Criteria) this;
}
public Criteria andIsQuickDefaultIsNull() {
addCriterion("is_quick_default is null");
return (Criteria) this;
}
public Criteria andIsQuickDefaultIsNotNull() {
addCriterion("is_quick_default is not null");
return (Criteria) this;
}
public Criteria andIsQuickDefaultEqualTo(Integer value) {
addCriterion("is_quick_default =", value, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultNotEqualTo(Integer value) {
addCriterion("is_quick_default <>", value, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultGreaterThan(Integer value) {
addCriterion("is_quick_default >", value, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultGreaterThanOrEqualTo(Integer value) {
addCriterion("is_quick_default >=", value, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultLessThan(Integer value) {
addCriterion("is_quick_default <", value, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultLessThanOrEqualTo(Integer value) {
addCriterion("is_quick_default <=", value, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultIn(List<Integer> values) {
addCriterion("is_quick_default in", values, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultNotIn(List<Integer> values) {
addCriterion("is_quick_default not in", values, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultBetween(Integer value1, Integer value2) {
addCriterion("is_quick_default between", value1, value2, "isQuickDefault");
return (Criteria) this;
}
public Criteria andIsQuickDefaultNotBetween(Integer value1, Integer value2) {
addCriterion("is_quick_default not between", value1, value2, "isQuickDefault");
return (Criteria) this;
}
public Criteria andBlessUsingIdIsNull() {
addCriterion("bless_using_id is null");
return (Criteria) this;
}
public Criteria andBlessUsingIdIsNotNull() {
addCriterion("bless_using_id is not null");
return (Criteria) this;
}
public Criteria andBlessUsingIdEqualTo(Long value) {
addCriterion("bless_using_id =", value, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdNotEqualTo(Long value) {
addCriterion("bless_using_id <>", value, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdGreaterThan(Long value) {
addCriterion("bless_using_id >", value, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdGreaterThanOrEqualTo(Long value) {
addCriterion("bless_using_id >=", value, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdLessThan(Long value) {
addCriterion("bless_using_id <", value, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdLessThanOrEqualTo(Long value) {
addCriterion("bless_using_id <=", value, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdIn(List<Long> values) {
addCriterion("bless_using_id in", values, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdNotIn(List<Long> values) {
addCriterion("bless_using_id not in", values, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdBetween(Long value1, Long value2) {
addCriterion("bless_using_id between", value1, value2, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessUsingIdNotBetween(Long value1, Long value2) {
addCriterion("bless_using_id not between", value1, value2, "blessUsingId");
return (Criteria) this;
}
public Criteria andBlessIdIsNull() {
addCriterion("bless_id is null");
return (Criteria) this;
}
public Criteria andBlessIdIsNotNull() {
addCriterion("bless_id is not null");
return (Criteria) this;
}
public Criteria andBlessIdEqualTo(Long value) {
addCriterion("bless_id =", value, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdNotEqualTo(Long value) {
addCriterion("bless_id <>", value, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdGreaterThan(Long value) {
addCriterion("bless_id >", value, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdGreaterThanOrEqualTo(Long value) {
addCriterion("bless_id >=", value, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdLessThan(Long value) {
addCriterion("bless_id <", value, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdLessThanOrEqualTo(Long value) {
addCriterion("bless_id <=", value, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdIn(List<Long> values) {
addCriterion("bless_id in", values, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdNotIn(List<Long> values) {
addCriterion("bless_id not in", values, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdBetween(Long value1, Long value2) {
addCriterion("bless_id between", value1, value2, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdNotBetween(Long value1, Long value2) {
addCriterion("bless_id not between", value1, value2, "blessId");
return (Criteria) this;
}
public Criteria andBlessIdxIsNull() {
addCriterion("bless_idx is null");
return (Criteria) this;
}
public Criteria andBlessIdxIsNotNull() {
addCriterion("bless_idx is not null");
return (Criteria) this;
}
public Criteria andBlessIdxEqualTo(Integer value) {
addCriterion("bless_idx =", value, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxNotEqualTo(Integer value) {
addCriterion("bless_idx <>", value, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxGreaterThan(Integer value) {
addCriterion("bless_idx >", value, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxGreaterThanOrEqualTo(Integer value) {
addCriterion("bless_idx >=", value, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxLessThan(Integer value) {
addCriterion("bless_idx <", value, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxLessThanOrEqualTo(Integer value) {
addCriterion("bless_idx <=", value, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxIn(List<Integer> values) {
addCriterion("bless_idx in", values, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxNotIn(List<Integer> values) {
addCriterion("bless_idx not in", values, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxBetween(Integer value1, Integer value2) {
addCriterion("bless_idx between", value1, value2, "blessIdx");
return (Criteria) this;
}
public Criteria andBlessIdxNotBetween(Integer value1, Integer value2) {
addCriterion("bless_idx not between", value1, value2, "blessIdx");
return (Criteria) this;
}
public Criteria andOssCatalogueIsNull() {
addCriterion("oss_catalogue is null");
return (Criteria) this;
}
public Criteria andOssCatalogueIsNotNull() {
addCriterion("oss_catalogue is not null");
return (Criteria) this;
}
public Criteria andOssCatalogueEqualTo(String value) {
addCriterion("oss_catalogue =", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueNotEqualTo(String value) {
addCriterion("oss_catalogue <>", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueGreaterThan(String value) {
addCriterion("oss_catalogue >", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueGreaterThanOrEqualTo(String value) {
addCriterion("oss_catalogue >=", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueLessThan(String value) {
addCriterion("oss_catalogue <", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueLessThanOrEqualTo(String value) {
addCriterion("oss_catalogue <=", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueLike(String value) {
addCriterion("oss_catalogue like", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueNotLike(String value) {
addCriterion("oss_catalogue not like", value, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueIn(List<String> values) {
addCriterion("oss_catalogue in", values, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueNotIn(List<String> values) {
addCriterion("oss_catalogue not in", values, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueBetween(String value1, String value2) {
addCriterion("oss_catalogue between", value1, value2, "ossCatalogue");
return (Criteria) this;
}
public Criteria andOssCatalogueNotBetween(String value1, String value2) {
addCriterion("oss_catalogue not between", value1, value2, "ossCatalogue");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
...@@ -15,7 +15,8 @@ public class QueryAtlTimeMenuParam implements Serializable { ...@@ -15,7 +15,8 @@ public class QueryAtlTimeMenuParam implements Serializable {
@ApiModelProperty(value = "时光纪id") @ApiModelProperty(value = "时光纪id")
private Long timeId; private Long timeId;
@ApiModelProperty(value = "是否需要查询默认菜单 0是 1否") @ApiModelProperty(value = "是否需要查询默认菜单 0是 1否,根据条件传入,可以不传",required = false)
private Integer isQueryDefault; private Integer isQueryDefault;
@ApiModelProperty(value = "是否开启(0是|1否)",required = false)
private Integer isOpen;
} }
...@@ -168,7 +168,7 @@ public class AtlAppStoreOrderService { ...@@ -168,7 +168,7 @@ public class AtlAppStoreOrderService {
//是否支付(0是|1否) //是否支付(0是|1否)
criteria.andIsPayEqualTo(0); criteria.andIsPayEqualTo(0);
List<AtlAppstoreOrder> atlAppstoreOrders = this.atlAppstoreOrderMapper.selectByExample(example); List<AtlAppstoreOrder> atlAppstoreOrders = this.atlAppstoreOrderMapper.selectByExample(example);
if (atlAppstoreOrders != null && atlAppstoreOrders.size() >= 0) { if (atlAppstoreOrders != null && atlAppstoreOrders.size() > 0) {
return true; return true;
} }
return false; return false;
......
package com.hwstudio.antaile.service; package com.hwstudio.antaile.service;
import com.hwstudio.antaile.InsertParam.InsertAtlTimeMenuParam; import com.hwstudio.antaile.InsertParam.InsertAtlTimeMenuParam;
import com.hwstudio.antaile.dto.AtlTimeMenuDTO;
import com.hwstudio.antaile.mapper.AtlTimeMenuDao;
import com.hwstudio.antaile.mbg.mapper.AtlMenuMapper; import com.hwstudio.antaile.mbg.mapper.AtlMenuMapper;
import com.hwstudio.antaile.mbg.mapper.AtlTimeMenuMapper; import com.hwstudio.antaile.mbg.mapper.AtlTimeMenuMapper;
import com.hwstudio.antaile.mbg.po.AtlMenu; import com.hwstudio.antaile.mbg.po.AtlMenu;
...@@ -28,7 +30,8 @@ public class AtlTimeMenuService { ...@@ -28,7 +30,8 @@ public class AtlTimeMenuService {
private AtlTimeMenuMapper atlTimeMenuMapper; private AtlTimeMenuMapper atlTimeMenuMapper;
@Resource @Resource
private AtlMenuMapper atlMenuMapper; private AtlMenuMapper atlMenuMapper;
@Resource
private AtlTimeMenuDao atlTimeMenuDao;
/** /**
* 插入时光纪与菜单关系 * 插入时光纪与菜单关系
...@@ -44,22 +47,39 @@ public class AtlTimeMenuService { ...@@ -44,22 +47,39 @@ public class AtlTimeMenuService {
if (insertAtlTimeMenuParam.getMenuIds() == null || insertAtlTimeMenuParam.getMenuIds().isEmpty()) { if (insertAtlTimeMenuParam.getMenuIds() == null || insertAtlTimeMenuParam.getMenuIds().isEmpty()) {
return JsonResult.failed("传入菜单ids为空"); return JsonResult.failed("传入菜单ids为空");
} }
//插入前先将之前时光纪id 与菜单清除
AtlTimeMenuExample example = new AtlTimeMenuExample();
AtlTimeMenuExample.Criteria criteria = example.createCriteria();
criteria.andTimeIdEqualTo(insertAtlTimeMenuParam.getTimeId());
this.atlTimeMenuMapper.deleteByExample(example);
//循环插入 //循环插入
String[] menuIdList = insertAtlTimeMenuParam.getMenuIds().split(","); String[] menuIdList = insertAtlTimeMenuParam.getMenuIds().split(",");
AtlTimeMenu atlTimeMenu = new AtlTimeMenu(); AtlTimeMenu atlTimeMenu = new AtlTimeMenu();
atlTimeMenu.setTimeId(insertAtlTimeMenuParam.getTimeId()); atlTimeMenu.setTimeId(insertAtlTimeMenuParam.getTimeId());
for (String menuId : menuIdList) { for (String menuId : menuIdList) {
atlTimeMenu.setMenuId(Long.valueOf(menuId)); Long menuIdLong = Long.valueOf(menuId);
this.atlTimeMenuMapper.insertSelective(atlTimeMenu); AtlTimeMenu atm = this.queryOneByTimeIdAndMenuId(insertAtlTimeMenuParam.getTimeId(), menuIdLong);
if (atm == null) {
atlTimeMenu.setMenuId(menuIdLong);
//设置排序
atlTimeMenu.setMenuSort(this.atlTimeMenuDao.selectMaxSortByTimeId(insertAtlTimeMenuParam.getTimeId()) + 1);
this.atlTimeMenuMapper.insertSelective(atlTimeMenu);
} else {
//存在则打开
atm.setIsOpen(1);
this.atlTimeMenuMapper.updateByPrimaryKeySelective(atm);
}
} }
return JsonResult.success("操作成功"); return JsonResult.success("操作成功");
} }
public AtlTimeMenu queryOneByTimeIdAndMenuId(Long timeId, Long menuId) {
AtlTimeMenuExample example = new AtlTimeMenuExample();
AtlTimeMenuExample.Criteria criteria = example.createCriteria();
criteria.andTimeIdEqualTo(timeId);
criteria.andMenuIdEqualTo(menuId);
List<AtlTimeMenu> atlTimeMenuList = this.atlTimeMenuMapper.selectByExample(example);
if (atlTimeMenuList != null && atlTimeMenuList.size() > 0) {
return atlTimeMenuList.get(0);
}
return null;
}
/** /**
* 查询时光纪相关菜单 * 查询时光纪相关菜单
* *
...@@ -88,22 +108,80 @@ public class AtlTimeMenuService { ...@@ -88,22 +108,80 @@ public class AtlTimeMenuService {
} }
//如果需要查询默认菜单 //如果需要查询默认菜单
if (queryAtlTimeMenuParam.getIsQueryDefault().equals(0)) { if (queryAtlTimeMenuParam.getIsQueryDefault().equals(0)) {
//查询默认菜单 一起返回 List<AtlMenu> atlMenuList1 = this.getDefaultMenu();
AtlMenuExample exampleMenu = new AtlMenuExample();
AtlMenuExample.Criteria criteriaMenu = exampleMenu.createCriteria();
//是否显示 0隐藏 1显示
criteriaMenu.andIsShowEqualTo(1);
//数据标识 0无效 1有效
criteriaMenu.andDataFlagEqualTo(1);
//是否默认菜单(0是|1否)
criteriaMenu.andDefaultMenuEqualTo(0);
//删除标志(0|正常|1删除)
criteriaMenu.andIsDeleteEqualTo(0);
List<AtlMenu> atlMenuList1 = this.atlMenuMapper.selectByExample(exampleMenu);
//全部加入到上面的List去 //全部加入到上面的List去
atlMenuList.addAll(atlMenuList1); atlMenuList.addAll(atlMenuList1);
} }
return JsonResult.success("查询菜单成功", atlMenuList); return JsonResult.success("查询菜单成功", atlMenuList);
} }
/**
* 传入时光纪id 初始化菜单-恢复至默认情况
*
* @param timeId
* @return
*/
public JsonResult initDefaultMenu(Long timeId) {
//插入前先将之前时光纪id 与菜单清除
AtlTimeMenuExample example = new AtlTimeMenuExample();
AtlTimeMenuExample.Criteria criteria = example.createCriteria();
criteria.andTimeIdEqualTo(timeId);
this.atlTimeMenuMapper.deleteByExample(example);
List<AtlMenu> atlMenuList = this.getDefaultMenu();
if (atlMenuList != null && atlMenuList.size() > 0) {
AtlTimeMenu atlTimeMenu = new AtlTimeMenu();
atlTimeMenu.setTimeId(timeId);
for (int i = 0; i < atlMenuList.size(); i++) {
atlTimeMenu.setMenuId(atlMenuList.get(i).getId());
//默认从1开始排序下去
atlTimeMenu.setMenuSort(i + 1);
this.atlTimeMenuMapper.insertSelective(atlTimeMenu);
}
}
return JsonResult.success("初始化默认菜单成功");
}
/**
* 根据时光纪id 查询相关菜单数据
*
* @param queryAtlTimeMenuParam
* @return
*/
public List<AtlTimeMenuDTO> selectAtlTimeMenuListByTimeId(QueryAtlTimeMenuParam queryAtlTimeMenuParam) {
return this.atlTimeMenuDao.selectAtlTimeMenuListByTimeId(queryAtlTimeMenuParam);
}
/**
* 根据id修改一条菜单信息
* @param atlTimeMenu
* @return
*/
public JsonResult updateAtlTimeMenuById(AtlTimeMenu atlTimeMenu){
if(atlTimeMenu.getId() == null){
return JsonResult.failed("传入id为空");
}
this.atlTimeMenuMapper.updateByPrimaryKeySelective(atlTimeMenu);
return JsonResult.success("操作成功");
}
/**
* 得到默认菜单
*
* @return
*/
public List<AtlMenu> getDefaultMenu() {
//查询默认菜单 一起返回
AtlMenuExample exampleMenu = new AtlMenuExample();
AtlMenuExample.Criteria criteriaMenu = exampleMenu.createCriteria();
//是否显示 0隐藏 1显示
criteriaMenu.andIsShowEqualTo(1);
//数据标识 0无效 1有效
criteriaMenu.andDataFlagEqualTo(1);
//是否默认菜单(0是|1否)
criteriaMenu.andDefaultMenuEqualTo(0);
//删除标志(0|正常|1删除)
criteriaMenu.andIsDeleteEqualTo(0);
return this.atlMenuMapper.selectByExample(exampleMenu);
}
} }
...@@ -10,6 +10,8 @@ import com.hwstudio.antaile.dto.*; ...@@ -10,6 +10,8 @@ import com.hwstudio.antaile.dto.*;
import com.hwstudio.antaile.entity.*; import com.hwstudio.antaile.entity.*;
import com.hwstudio.antaile.exception.BusinessException; import com.hwstudio.antaile.exception.BusinessException;
import com.hwstudio.antaile.mapper.*; import com.hwstudio.antaile.mapper.*;
import com.hwstudio.antaile.mbg.mapper.SysAtlTimeMapper;
import com.hwstudio.antaile.mbg.po.SysAtlTime;
import com.hwstudio.antaile.queryparam.QueryAtlTimeByBlessIdAndIdxParam; import com.hwstudio.antaile.queryparam.QueryAtlTimeByBlessIdAndIdxParam;
import com.hwstudio.antaile.queryparam.QueryAtlTimeCountParam; import com.hwstudio.antaile.queryparam.QueryAtlTimeCountParam;
import com.hwstudio.antaile.utils.CommonPage; import com.hwstudio.antaile.utils.CommonPage;
...@@ -55,6 +57,8 @@ public class AtlTimeService { ...@@ -55,6 +57,8 @@ public class AtlTimeService {
private AtlTimeArticleFileMapper atlTimeArticleFileMapper; private AtlTimeArticleFileMapper atlTimeArticleFileMapper;
@Resource @Resource
private AtlTimeMessageMapper atlTimeMessageMapper; private AtlTimeMessageMapper atlTimeMessageMapper;
@Resource
private SysAtlTimeMapper sysAtlTimeMapper;
/** /**
* 新增时光纪 * 新增时光纪
...@@ -868,5 +872,21 @@ public class AtlTimeService { ...@@ -868,5 +872,21 @@ public class AtlTimeService {
} }
return JsonResult.success("查询成功", atlTimeDTOList); return JsonResult.success("查询成功", atlTimeDTOList);
} }
/**
* 根据时光纪id修改一条时光纪数据
*
* @param sysAtlTime
* @return
*/
public JsonResult updateByTimeId(SysAtlTime sysAtlTime) {
if(sysAtlTime.getId() == null){
return JsonResult.failed("传入时光纪id为空");
}
this.sysAtlTimeMapper.updateByPrimaryKeySelective(sysAtlTime);
return JsonResult.success("操作成功");
}
} }
...@@ -5,14 +5,15 @@ import io.swagger.annotations.ApiModel; ...@@ -5,14 +5,15 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
/** /**
* JsonResult * JsonResult
* @author whj * @author whj
* @date 2018/7/29 22:19 * @date 2018/7/29 22:19
*/ */
@Data @Data
@ApiModel public class JsonResult<T> implements Serializable {
public class JsonResult<T> {
@ApiModelProperty(name = "success", value = "是否正常通讯") @ApiModelProperty(name = "success", value = "是否正常通讯")
private Boolean success = Boolean.TRUE; private Boolean success = Boolean.TRUE;
@ApiModelProperty(name = "status", value = "状态码,200:OK,401:未登录,500:错误") @ApiModelProperty(name = "status", value = "状态码,200:OK,401:未登录,500:错误")
...@@ -21,6 +22,8 @@ public class JsonResult<T> { ...@@ -21,6 +22,8 @@ public class JsonResult<T> {
private String message; private String message;
@ApiModelProperty(name = "data", value = "返回数据") @ApiModelProperty(name = "data", value = "返回数据")
private Object data; private Object data;
@ApiModelProperty(value = "返回结果")
private T result;
public static JsonResult success() { public static JsonResult success() {
JsonResult res = new JsonResult(); JsonResult res = new JsonResult();
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<select id="selectAtlAppstoreListByOther" parameterType="com.hwstudio.antaile.queryparam.QueryAtlAppstoreParam" resultType="com.hwstudio.antaile.dto.AtlAppstoreDTO"> <select id="selectAtlAppstoreListByOther" parameterType="com.hwstudio.antaile.queryparam.QueryAtlAppstoreParam" resultType="com.hwstudio.antaile.dto.AtlAppstoreDTO">
select select
a.id,a.cats_id catsId,a.app_id appId,a.app_images appImages,a.app_developer appDeveloper,a.app_price1 appPrice1,a.app_price2 appPrice2, a.id,a.cats_id catsId,a.app_id appId,a.app_name appName,a.app_images appImages,a.app_developer appDeveloper,
a.app_introduce appIntroduce,a.app_price1 appPrice1,a.app_price2 appPrice2,
a.sale_num saleNum,a.is_sale isSale,a.is_recom isRecom,a.is_menu isMenu,a.menu_id menuId,a.create_time createTime, a.sale_num saleNum,a.is_sale isSale,a.is_recom isRecom,a.is_menu isMenu,a.menu_id menuId,a.create_time createTime,
b.name catsName b.name catsName
from atl_appstore a from atl_appstore a
......
...@@ -25,11 +25,13 @@ ...@@ -25,11 +25,13 @@
b.app_name appName,b.app_developer appDeveloper,b.app_name appName, b.app_name appName,b.app_developer appDeveloper,b.app_name appName,
b.app_introduce appIntroduce,b.app_images appImages,b.is_menu isMenu,b.menu_id menuId, b.app_introduce appIntroduce,b.app_images appImages,b.is_menu isMenu,b.menu_id menuId,
c.menu_name menuName, c.menu_name menuName,
d.name catsName,
count(a.app_id) buyNumber count(a.app_id) buyNumber
from from
atl_appstore_order a atl_appstore_order a
left join atl_appstore b ON a.app_id = b.app_id left join atl_appstore b ON a.app_id = b.app_id
left join atl_menu c ON b.menu_id = c.id left join atl_menu c ON b.menu_id = c.id
left join atl_appstore_cats d ON b.cats_id = d.id
where 1 = 1 where 1 = 1
and a.is_pay = 0 and a.is_pay = 0
<if test="userId != null"> <if test="userId != null">
......
...@@ -3,4 +3,25 @@ ...@@ -3,4 +3,25 @@
<mapper namespace="com.hwstudio.antaile.mapper.AtlTimeMenuDao" > <mapper namespace="com.hwstudio.antaile.mapper.AtlTimeMenuDao" >
<select id="selectAtlTimeMenuListByTimeId" parameterType="com.hwstudio.antaile.queryparam.QueryAtlTimeMenuParam" resultType="com.hwstudio.antaile.dto.AtlTimeMenuDTO">
select
a.id,a.time_id timeId,a.menu_id menuId,a.is_open isOpen,a.menu_sort menuSort,
b.menu_name menuName,b.menu_type menuType,b.default_menu defaultMenu
from atl_time_menu a
left join atl_menu b ON a.menu_id = b.id
where a.time_id = #{timeId}
<if test="isQueryDefault != null">
and b.default_menu =#{isQueryDefault}
</if>
<if test="isOpen != null">
and a.is_open =#{isOpen}
</if>
order by a.menu_sort asc
</select>
<select id="selectMaxSortByTimeId" parameterType="java.lang.Long" resultType="java.lang.Integer">
select IFNULL(max(menu_sort),0)
from atl_time_menu
where time_id = #{timeId}
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="time_id" jdbcType="BIGINT" property="timeId" /> <result column="time_id" jdbcType="BIGINT" property="timeId" />
<result column="menu_id" jdbcType="BIGINT" property="menuId" /> <result column="menu_id" jdbcType="BIGINT" property="menuId" />
<result column="is_open" jdbcType="TINYINT" property="isOpen" />
<result column="menu_sort" jdbcType="INTEGER" property="menuSort" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
...@@ -68,7 +70,7 @@ ...@@ -68,7 +70,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, time_id, menu_id, remark, create_time, update_time id, time_id, menu_id, is_open, menu_sort, remark, create_time, update_time
</sql> </sql>
<select id="selectByExample" parameterType="com.hwstudio.antaile.mbg.po.AtlTimeMenuExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.hwstudio.antaile.mbg.po.AtlTimeMenuExample" resultMap="BaseResultMap">
select select
...@@ -104,10 +106,12 @@ ...@@ -104,10 +106,12 @@
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into atl_time_menu (time_id, menu_id, remark, insert into atl_time_menu (time_id, menu_id, is_open,
create_time, update_time) menu_sort, remark, create_time,
values (#{timeId,jdbcType=BIGINT}, #{menuId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, update_time)
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) values (#{timeId,jdbcType=BIGINT}, #{menuId,jdbcType=BIGINT}, #{isOpen,jdbcType=TINYINT},
#{menuSort,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.hwstudio.antaile.mbg.po.AtlTimeMenu"> <insert id="insertSelective" parameterType="com.hwstudio.antaile.mbg.po.AtlTimeMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
...@@ -121,6 +125,12 @@ ...@@ -121,6 +125,12 @@
<if test="menuId != null"> <if test="menuId != null">
menu_id, menu_id,
</if> </if>
<if test="isOpen != null">
is_open,
</if>
<if test="menuSort != null">
menu_sort,
</if>
<if test="remark != null"> <if test="remark != null">
remark, remark,
</if> </if>
...@@ -138,6 +148,12 @@ ...@@ -138,6 +148,12 @@
<if test="menuId != null"> <if test="menuId != null">
#{menuId,jdbcType=BIGINT}, #{menuId,jdbcType=BIGINT},
</if> </if>
<if test="isOpen != null">
#{isOpen,jdbcType=TINYINT},
</if>
<if test="menuSort != null">
#{menuSort,jdbcType=INTEGER},
</if>
<if test="remark != null"> <if test="remark != null">
#{remark,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
</if> </if>
...@@ -167,6 +183,12 @@ ...@@ -167,6 +183,12 @@
<if test="record.menuId != null"> <if test="record.menuId != null">
menu_id = #{record.menuId,jdbcType=BIGINT}, menu_id = #{record.menuId,jdbcType=BIGINT},
</if> </if>
<if test="record.isOpen != null">
is_open = #{record.isOpen,jdbcType=TINYINT},
</if>
<if test="record.menuSort != null">
menu_sort = #{record.menuSort,jdbcType=INTEGER},
</if>
<if test="record.remark != null"> <if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
</if> </if>
...@@ -186,6 +208,8 @@ ...@@ -186,6 +208,8 @@
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
time_id = #{record.timeId,jdbcType=BIGINT}, time_id = #{record.timeId,jdbcType=BIGINT},
menu_id = #{record.menuId,jdbcType=BIGINT}, menu_id = #{record.menuId,jdbcType=BIGINT},
is_open = #{record.isOpen,jdbcType=TINYINT},
menu_sort = #{record.menuSort,jdbcType=INTEGER},
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP} update_time = #{record.updateTime,jdbcType=TIMESTAMP}
...@@ -202,6 +226,12 @@ ...@@ -202,6 +226,12 @@
<if test="menuId != null"> <if test="menuId != null">
menu_id = #{menuId,jdbcType=BIGINT}, menu_id = #{menuId,jdbcType=BIGINT},
</if> </if>
<if test="isOpen != null">
is_open = #{isOpen,jdbcType=TINYINT},
</if>
<if test="menuSort != null">
menu_sort = #{menuSort,jdbcType=INTEGER},
</if>
<if test="remark != null"> <if test="remark != null">
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
</if> </if>
...@@ -218,6 +248,8 @@ ...@@ -218,6 +248,8 @@
update atl_time_menu update atl_time_menu
set time_id = #{timeId,jdbcType=BIGINT}, set time_id = #{timeId,jdbcType=BIGINT},
menu_id = #{menuId,jdbcType=BIGINT}, menu_id = #{menuId,jdbcType=BIGINT},
is_open = #{isOpen,jdbcType=TINYINT},
menu_sort = #{menuSort,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hwstudio.antaile.mbg.mapper.SysAtlTimeMapper">
<resultMap id="BaseResultMap" type="com.hwstudio.antaile.mbg.po.SysAtlTime">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="template_id" jdbcType="BIGINT" property="templateId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="about_name" jdbcType="VARCHAR" property="aboutName" />
<result column="cover_url" jdbcType="VARCHAR" property="coverUrl" />
<result column="second_url" jdbcType="VARCHAR" property="secondUrl" />
<result column="privacy_setting" jdbcType="TINYINT" property="privacySetting" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
<result column="is_default" jdbcType="TINYINT" property="isDefault" />
<result column="code_url" jdbcType="VARCHAR" property="codeUrl" />
<result column="is_commend" jdbcType="TINYINT" property="isCommend" />
<result column="is_channel_commend" jdbcType="TINYINT" property="isChannelCommend" />
<result column="is_find_commend" jdbcType="TINYINT" property="isFindCommend" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="like_count" jdbcType="INTEGER" property="likeCount" />
<result column="autobiography_id" jdbcType="BIGINT" property="autobiographyId" />
<result column="is_quick_default" jdbcType="INTEGER" property="isQuickDefault" />
<result column="bless_using_id" jdbcType="BIGINT" property="blessUsingId" />
<result column="bless_id" jdbcType="BIGINT" property="blessId" />
<result column="bless_idx" jdbcType="INTEGER" property="blessIdx" />
<result column="oss_catalogue" jdbcType="VARCHAR" property="ossCatalogue" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, user_id, template_id, name, about_name, cover_url, second_url, privacy_setting,
status, remarks, create_date, update_date, is_default, code_url, is_commend, is_channel_commend,
is_find_commend, read_count, like_count, autobiography_id, is_quick_default, bless_using_id,
bless_id, bless_idx, oss_catalogue
</sql>
<select id="selectByExample" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTimeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from atl_time
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from atl_time
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from atl_time
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTimeExample">
delete from atl_time
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTime">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into atl_time (user_id, template_id, name,
about_name, cover_url, second_url,
privacy_setting, status, remarks,
create_date, update_date, is_default,
code_url, is_commend, is_channel_commend,
is_find_commend, read_count, like_count,
autobiography_id, is_quick_default, bless_using_id,
bless_id, bless_idx, oss_catalogue
)
values (#{userId,jdbcType=BIGINT}, #{templateId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
#{aboutName,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}, #{secondUrl,jdbcType=VARCHAR},
#{privacySetting,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{remarks,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP}, #{isDefault,jdbcType=TINYINT},
#{codeUrl,jdbcType=VARCHAR}, #{isCommend,jdbcType=TINYINT}, #{isChannelCommend,jdbcType=TINYINT},
#{isFindCommend,jdbcType=TINYINT}, #{readCount,jdbcType=INTEGER}, #{likeCount,jdbcType=INTEGER},
#{autobiographyId,jdbcType=BIGINT}, #{isQuickDefault,jdbcType=INTEGER}, #{blessUsingId,jdbcType=BIGINT},
#{blessId,jdbcType=BIGINT}, #{blessIdx,jdbcType=INTEGER}, #{ossCatalogue,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTime">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into atl_time
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">
user_id,
</if>
<if test="templateId != null">
template_id,
</if>
<if test="name != null">
name,
</if>
<if test="aboutName != null">
about_name,
</if>
<if test="coverUrl != null">
cover_url,
</if>
<if test="secondUrl != null">
second_url,
</if>
<if test="privacySetting != null">
privacy_setting,
</if>
<if test="status != null">
status,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="createDate != null">
create_date,
</if>
<if test="updateDate != null">
update_date,
</if>
<if test="isDefault != null">
is_default,
</if>
<if test="codeUrl != null">
code_url,
</if>
<if test="isCommend != null">
is_commend,
</if>
<if test="isChannelCommend != null">
is_channel_commend,
</if>
<if test="isFindCommend != null">
is_find_commend,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="likeCount != null">
like_count,
</if>
<if test="autobiographyId != null">
autobiography_id,
</if>
<if test="isQuickDefault != null">
is_quick_default,
</if>
<if test="blessUsingId != null">
bless_using_id,
</if>
<if test="blessId != null">
bless_id,
</if>
<if test="blessIdx != null">
bless_idx,
</if>
<if test="ossCatalogue != null">
oss_catalogue,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="templateId != null">
#{templateId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="aboutName != null">
#{aboutName,jdbcType=VARCHAR},
</if>
<if test="coverUrl != null">
#{coverUrl,jdbcType=VARCHAR},
</if>
<if test="secondUrl != null">
#{secondUrl,jdbcType=VARCHAR},
</if>
<if test="privacySetting != null">
#{privacySetting,jdbcType=TINYINT},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP},
</if>
<if test="updateDate != null">
#{updateDate,jdbcType=TIMESTAMP},
</if>
<if test="isDefault != null">
#{isDefault,jdbcType=TINYINT},
</if>
<if test="codeUrl != null">
#{codeUrl,jdbcType=VARCHAR},
</if>
<if test="isCommend != null">
#{isCommend,jdbcType=TINYINT},
</if>
<if test="isChannelCommend != null">
#{isChannelCommend,jdbcType=TINYINT},
</if>
<if test="isFindCommend != null">
#{isFindCommend,jdbcType=TINYINT},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="likeCount != null">
#{likeCount,jdbcType=INTEGER},
</if>
<if test="autobiographyId != null">
#{autobiographyId,jdbcType=BIGINT},
</if>
<if test="isQuickDefault != null">
#{isQuickDefault,jdbcType=INTEGER},
</if>
<if test="blessUsingId != null">
#{blessUsingId,jdbcType=BIGINT},
</if>
<if test="blessId != null">
#{blessId,jdbcType=BIGINT},
</if>
<if test="blessIdx != null">
#{blessIdx,jdbcType=INTEGER},
</if>
<if test="ossCatalogue != null">
#{ossCatalogue,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTimeExample" resultType="java.lang.Long">
select count(*) from atl_time
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update atl_time
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
<if test="record.templateId != null">
template_id = #{record.templateId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.aboutName != null">
about_name = #{record.aboutName,jdbcType=VARCHAR},
</if>
<if test="record.coverUrl != null">
cover_url = #{record.coverUrl,jdbcType=VARCHAR},
</if>
<if test="record.secondUrl != null">
second_url = #{record.secondUrl,jdbcType=VARCHAR},
</if>
<if test="record.privacySetting != null">
privacy_setting = #{record.privacySetting,jdbcType=TINYINT},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.createDate != null">
create_date = #{record.createDate,jdbcType=TIMESTAMP},
</if>
<if test="record.updateDate != null">
update_date = #{record.updateDate,jdbcType=TIMESTAMP},
</if>
<if test="record.isDefault != null">
is_default = #{record.isDefault,jdbcType=TINYINT},
</if>
<if test="record.codeUrl != null">
code_url = #{record.codeUrl,jdbcType=VARCHAR},
</if>
<if test="record.isCommend != null">
is_commend = #{record.isCommend,jdbcType=TINYINT},
</if>
<if test="record.isChannelCommend != null">
is_channel_commend = #{record.isChannelCommend,jdbcType=TINYINT},
</if>
<if test="record.isFindCommend != null">
is_find_commend = #{record.isFindCommend,jdbcType=TINYINT},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.likeCount != null">
like_count = #{record.likeCount,jdbcType=INTEGER},
</if>
<if test="record.autobiographyId != null">
autobiography_id = #{record.autobiographyId,jdbcType=BIGINT},
</if>
<if test="record.isQuickDefault != null">
is_quick_default = #{record.isQuickDefault,jdbcType=INTEGER},
</if>
<if test="record.blessUsingId != null">
bless_using_id = #{record.blessUsingId,jdbcType=BIGINT},
</if>
<if test="record.blessId != null">
bless_id = #{record.blessId,jdbcType=BIGINT},
</if>
<if test="record.blessIdx != null">
bless_idx = #{record.blessIdx,jdbcType=INTEGER},
</if>
<if test="record.ossCatalogue != null">
oss_catalogue = #{record.ossCatalogue,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update atl_time
set id = #{record.id,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
template_id = #{record.templateId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
about_name = #{record.aboutName,jdbcType=VARCHAR},
cover_url = #{record.coverUrl,jdbcType=VARCHAR},
second_url = #{record.secondUrl,jdbcType=VARCHAR},
privacy_setting = #{record.privacySetting,jdbcType=TINYINT},
status = #{record.status,jdbcType=TINYINT},
remarks = #{record.remarks,jdbcType=VARCHAR},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
update_date = #{record.updateDate,jdbcType=TIMESTAMP},
is_default = #{record.isDefault,jdbcType=TINYINT},
code_url = #{record.codeUrl,jdbcType=VARCHAR},
is_commend = #{record.isCommend,jdbcType=TINYINT},
is_channel_commend = #{record.isChannelCommend,jdbcType=TINYINT},
is_find_commend = #{record.isFindCommend,jdbcType=TINYINT},
read_count = #{record.readCount,jdbcType=INTEGER},
like_count = #{record.likeCount,jdbcType=INTEGER},
autobiography_id = #{record.autobiographyId,jdbcType=BIGINT},
is_quick_default = #{record.isQuickDefault,jdbcType=INTEGER},
bless_using_id = #{record.blessUsingId,jdbcType=BIGINT},
bless_id = #{record.blessId,jdbcType=BIGINT},
bless_idx = #{record.blessIdx,jdbcType=INTEGER},
oss_catalogue = #{record.ossCatalogue,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTime">
update atl_time
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="templateId != null">
template_id = #{templateId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="aboutName != null">
about_name = #{aboutName,jdbcType=VARCHAR},
</if>
<if test="coverUrl != null">
cover_url = #{coverUrl,jdbcType=VARCHAR},
</if>
<if test="secondUrl != null">
second_url = #{secondUrl,jdbcType=VARCHAR},
</if>
<if test="privacySetting != null">
privacy_setting = #{privacySetting,jdbcType=TINYINT},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
create_date = #{createDate,jdbcType=TIMESTAMP},
</if>
<if test="updateDate != null">
update_date = #{updateDate,jdbcType=TIMESTAMP},
</if>
<if test="isDefault != null">
is_default = #{isDefault,jdbcType=TINYINT},
</if>
<if test="codeUrl != null">
code_url = #{codeUrl,jdbcType=VARCHAR},
</if>
<if test="isCommend != null">
is_commend = #{isCommend,jdbcType=TINYINT},
</if>
<if test="isChannelCommend != null">
is_channel_commend = #{isChannelCommend,jdbcType=TINYINT},
</if>
<if test="isFindCommend != null">
is_find_commend = #{isFindCommend,jdbcType=TINYINT},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="likeCount != null">
like_count = #{likeCount,jdbcType=INTEGER},
</if>
<if test="autobiographyId != null">
autobiography_id = #{autobiographyId,jdbcType=BIGINT},
</if>
<if test="isQuickDefault != null">
is_quick_default = #{isQuickDefault,jdbcType=INTEGER},
</if>
<if test="blessUsingId != null">
bless_using_id = #{blessUsingId,jdbcType=BIGINT},
</if>
<if test="blessId != null">
bless_id = #{blessId,jdbcType=BIGINT},
</if>
<if test="blessIdx != null">
bless_idx = #{blessIdx,jdbcType=INTEGER},
</if>
<if test="ossCatalogue != null">
oss_catalogue = #{ossCatalogue,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.hwstudio.antaile.mbg.po.SysAtlTime">
update atl_time
set user_id = #{userId,jdbcType=BIGINT},
template_id = #{templateId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
about_name = #{aboutName,jdbcType=VARCHAR},
cover_url = #{coverUrl,jdbcType=VARCHAR},
second_url = #{secondUrl,jdbcType=VARCHAR},
privacy_setting = #{privacySetting,jdbcType=TINYINT},
status = #{status,jdbcType=TINYINT},
remarks = #{remarks,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP},
is_default = #{isDefault,jdbcType=TINYINT},
code_url = #{codeUrl,jdbcType=VARCHAR},
is_commend = #{isCommend,jdbcType=TINYINT},
is_channel_commend = #{isChannelCommend,jdbcType=TINYINT},
is_find_commend = #{isFindCommend,jdbcType=TINYINT},
read_count = #{readCount,jdbcType=INTEGER},
like_count = #{likeCount,jdbcType=INTEGER},
autobiography_id = #{autobiographyId,jdbcType=BIGINT},
is_quick_default = #{isQuickDefault,jdbcType=INTEGER},
bless_using_id = #{blessUsingId,jdbcType=BIGINT},
bless_id = #{blessId,jdbcType=BIGINT},
bless_idx = #{blessIdx,jdbcType=INTEGER},
oss_catalogue = #{ossCatalogue,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
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