Commit f2523c9d authored by alex yao's avatar alex yao

feat:应用分类

parent 76fdc087
...@@ -28,6 +28,7 @@ public class BizAgentApplicationMallConvert { ...@@ -28,6 +28,7 @@ public class BizAgentApplicationMallConvert {
entity.setId(model.getId()); entity.setId(model.getId());
entity.setAgentPublishId(model.getAgentPublishId()); entity.setAgentPublishId(model.getAgentPublishId());
entity.setAgentType(model.getAgentType()); entity.setAgentType(model.getAgentType());
entity.setCategoryId(model.getCategoryId());
entity.setCollectNumber(model.getCollectNumber()); entity.setCollectNumber(model.getCollectNumber());
entity.setClickNumber(model.getClickNumber()); entity.setClickNumber(model.getClickNumber());
entity.setIsCopy(model.getIsCopy()); entity.setIsCopy(model.getIsCopy());
...@@ -40,6 +41,7 @@ public class BizAgentApplicationMallConvert { ...@@ -40,6 +41,7 @@ public class BizAgentApplicationMallConvert {
BizAgentApplicationMallModel model = new BizAgentApplicationMallModel(); BizAgentApplicationMallModel model = new BizAgentApplicationMallModel();
model.setId(entity.getId()); model.setId(entity.getId());
model.setAgentPublishId(entity.getAgentPublishId()); model.setAgentPublishId(entity.getAgentPublishId());
model.setCategoryId(entity.getCategoryId());
model.setAgentType(entity.getAgentType()); model.setAgentType(entity.getAgentType());
model.setCollectNumber(entity.getCollectNumber()); model.setCollectNumber(entity.getCollectNumber());
model.setClickNumber(entity.getClickNumber()); model.setClickNumber(entity.getClickNumber());
...@@ -175,6 +177,7 @@ public class BizAgentApplicationMallConvert { ...@@ -175,6 +177,7 @@ public class BizAgentApplicationMallConvert {
entity.setId(dto.getId()); entity.setId(dto.getId());
entity.setAgentPublishId(dto.getAgentPublishId()); entity.setAgentPublishId(dto.getAgentPublishId());
entity.setAgentType(dto.getAgentType()); entity.setAgentType(dto.getAgentType());
entity.setCategoryId(dto.getCategoryId());
entity.setCollectNumber(dto.getCollectNumber()); entity.setCollectNumber(dto.getCollectNumber());
entity.setClickNumber(dto.getClickNumber()); entity.setClickNumber(dto.getClickNumber());
entity.setIsCopy(dto.getIsCopy()); entity.setIsCopy(dto.getIsCopy());
......
package cn.com.poc.agent_application.dto;
public class AgentApplicationMallCategoryDto {
private Integer id;
private String categoryName;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCategoryName() {
return categoryName;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
}
...@@ -6,8 +6,18 @@ public class AgentApplicationMallQueryDto implements Serializable { ...@@ -6,8 +6,18 @@ public class AgentApplicationMallQueryDto implements Serializable {
private String agentType; private String agentType;
private Integer categoryId;
private String search; private String search;
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
public String getAgentType() { public String getAgentType() {
return agentType; return agentType;
} }
......
package cn.com.poc.agent_application.dto; package cn.com.poc.agent_application.dto;
public class BizAgentApplicationMallDto extends AgentApplicationInfoDto{ public class BizAgentApplicationMallDto extends AgentApplicationInfoDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** id /**
*自增ID * id
*/ * 自增ID
*/
private java.lang.Integer id; private java.lang.Integer id;
public java.lang.Integer getId(){ public java.lang.Integer getId() {
return this.id; return this.id;
} }
public void setId(java.lang.Integer id){ public void setId(java.lang.Integer id) {
this.id = id; this.id = id;
} }
/** agent_publish_id
*发布应用的ID /**
*/ * agent_publish_id
* 发布应用的ID
*/
private java.lang.Integer agentPublishId; private java.lang.Integer agentPublishId;
public java.lang.Integer getAgentPublishId(){ public java.lang.Integer getAgentPublishId() {
return this.agentPublishId; return this.agentPublishId;
} }
public void setAgentPublishId(java.lang.Integer agentPublishId){ public void setAgentPublishId(java.lang.Integer agentPublishId) {
this.agentPublishId = agentPublishId; this.agentPublishId = agentPublishId;
} }
/** agent_type
*应用类型 /**
*/ * agent_type
* 应用类型
*/
private java.lang.String agentType; private java.lang.String agentType;
public java.lang.String getAgentType(){ public java.lang.String getAgentType() {
return this.agentType; return this.agentType;
} }
public void setAgentType(java.lang.String agentType){ public void setAgentType(java.lang.String agentType) {
this.agentType = agentType; this.agentType = agentType;
} }
/** collect_number
*收藏人数 /**
*/ * category_id
* 应用分类ID
*/
private Integer categoryId;
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
/**
* collect_number
* 收藏人数
*/
private java.lang.Integer collectNumber; private java.lang.Integer collectNumber;
public java.lang.Integer getCollectNumber(){ public java.lang.Integer getCollectNumber() {
return this.collectNumber; return this.collectNumber;
} }
public void setCollectNumber(java.lang.Integer collectNumber){ public void setCollectNumber(java.lang.Integer collectNumber) {
this.collectNumber = collectNumber; this.collectNumber = collectNumber;
} }
/** click_number /**
*点击次数 * click_number
* 点击次数
*/ */
private java.lang.Integer clickNumber; private java.lang.Integer clickNumber;
public java.lang.Integer getClickNumber(){ public java.lang.Integer getClickNumber() {
return this.clickNumber; return this.clickNumber;
} }
public void setClickNumber(java.lang.Integer clickNumber){ public void setClickNumber(java.lang.Integer clickNumber) {
this.clickNumber = clickNumber; this.clickNumber = clickNumber;
} }
/** is_copy /**
*是否允许被复制 1、Y 是 2、N 否 * is_copy
*/ * 是否允许被复制 1、Y 是 2、N 否
*/
private java.lang.String isCopy; private java.lang.String isCopy;
public java.lang.String getIsCopy(){ public java.lang.String getIsCopy() {
return this.isCopy; return this.isCopy;
} }
public void setIsCopy(java.lang.String isCopy){ public void setIsCopy(java.lang.String isCopy) {
this.isCopy = isCopy; this.isCopy = isCopy;
} }
/** is_sale /**
*是否上架应用 1、Y 是 2、N 否 * is_sale
* 是否上架应用 1、Y 是 2、N 否
*/ */
private java.lang.String isSale; private java.lang.String isSale;
public java.lang.String getIsSale(){ public java.lang.String getIsSale() {
return this.isSale; return this.isSale;
} }
public void setIsSale(java.lang.String isSale){ public void setIsSale(java.lang.String isSale) {
this.isSale = isSale; this.isSale = isSale;
} }
/** popularity /**
*应用热度 * popularity
* 应用热度
*/ */
private java.lang.Double popularity; private java.lang.Double popularity;
public java.lang.Double getPopularity(){ public java.lang.Double getPopularity() {
return this.popularity; return this.popularity;
} }
public void setPopularity(java.lang.Double popularity){ public void setPopularity(java.lang.Double popularity) {
this.popularity = popularity; this.popularity = popularity;
} }
/** /**
* isCollect * isCollect
* 当前用户是否收藏 1、Y 是 2、N 否 * 当前用户是否收藏 1、Y 是 2、N 否
* */ */
private String isCollect; private String isCollect;
public String getIsCollect() { public String getIsCollect() {
......
package cn.com.poc.agent_application.entity; package cn.com.poc.agent_application.entity;
public class BizAgentApplicationMallEntity { public class BizAgentApplicationMallEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** id /**
*自增ID * id
*/ * 自增ID
*/
private java.lang.Integer id; private java.lang.Integer id;
public java.lang.Integer getId(){ public java.lang.Integer getId() {
return this.id; return this.id;
} }
public void setId(java.lang.Integer id){ public void setId(java.lang.Integer id) {
this.id = id; this.id = id;
} }
/** agent_publish_id
*发布应用的ID /**
*/ * agent_publish_id
* 发布应用的ID
*/
private java.lang.Integer agentPublishId; private java.lang.Integer agentPublishId;
public java.lang.Integer getAgentPublishId(){ public java.lang.Integer getAgentPublishId() {
return this.agentPublishId; return this.agentPublishId;
} }
public void setAgentPublishId(java.lang.Integer agentPublishId){ public void setAgentPublishId(java.lang.Integer agentPublishId) {
this.agentPublishId = agentPublishId; this.agentPublishId = agentPublishId;
} }
/** agent_type
*应用类型 /**
*/ * agent_type
* 应用类型
*/
private java.lang.String agentType; private java.lang.String agentType;
public java.lang.String getAgentType(){ public java.lang.String getAgentType() {
return this.agentType; return this.agentType;
} }
public void setAgentType(java.lang.String agentType){ public void setAgentType(java.lang.String agentType) {
this.agentType = agentType; this.agentType = agentType;
} }
/** collect_number
*收藏人数 /**
*/ * category_id
* 应用分类ID
*/
private Integer categoryId;
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
/**
* collect_number
* 收藏人数
*/
private java.lang.Integer collectNumber; private java.lang.Integer collectNumber;
public java.lang.Integer getCollectNumber(){ public java.lang.Integer getCollectNumber() {
return this.collectNumber; return this.collectNumber;
} }
public void setCollectNumber(java.lang.Integer collectNumber){ public void setCollectNumber(java.lang.Integer collectNumber) {
this.collectNumber = collectNumber; this.collectNumber = collectNumber;
} }
/** click_number /**
*点击次数 * click_number
* 点击次数
*/ */
private java.lang.Integer clickNumber; private java.lang.Integer clickNumber;
public java.lang.Integer getClickNumber(){ public java.lang.Integer getClickNumber() {
return this.clickNumber; return this.clickNumber;
} }
public void setClickNumber(java.lang.Integer clickNumber){ public void setClickNumber(java.lang.Integer clickNumber) {
this.clickNumber = clickNumber; this.clickNumber = clickNumber;
} }
/** is_copy /**
*是否允许被复制 1、Y 是 2、N 否 * is_copy
*/ * 是否允许被复制 1、Y 是 2、N 否
*/
private java.lang.String isCopy; private java.lang.String isCopy;
public java.lang.String getIsCopy(){ public java.lang.String getIsCopy() {
return this.isCopy; return this.isCopy;
} }
public void setIsCopy(java.lang.String isCopy){ public void setIsCopy(java.lang.String isCopy) {
this.isCopy = isCopy; this.isCopy = isCopy;
} }
/** is_sale /**
*是否上架应用 1、Y 是 2、N 否 * is_sale
* 是否上架应用 1、Y 是 2、N 否
*/ */
private java.lang.String isSale; private java.lang.String isSale;
public java.lang.String getIsSale(){ public java.lang.String getIsSale() {
return this.isSale; return this.isSale;
} }
public void setIsSale(java.lang.String isSale){ public void setIsSale(java.lang.String isSale) {
this.isSale = isSale; this.isSale = isSale;
} }
/** popularity /**
*应用热度 * popularity
* 应用热度
*/ */
private java.lang.Double popularity; private java.lang.Double popularity;
public java.lang.Double getPopularity(){ public java.lang.Double getPopularity() {
return this.popularity; return this.popularity;
} }
public void setPopularity(java.lang.Double popularity){ public void setPopularity(java.lang.Double popularity) {
this.popularity = popularity; this.popularity = popularity;
} }
/** is_deleted /**
*是否删除 1、Y 是 2、N 否 * is_deleted
*/ * 是否删除 1、Y 是 2、N 否
*/
private java.lang.String isDeleted; private java.lang.String isDeleted;
public java.lang.String getIsDeleted(){ public java.lang.String getIsDeleted() {
return this.isDeleted; return this.isDeleted;
} }
public void setIsDeleted(java.lang.String isDeleted){ public void setIsDeleted(java.lang.String isDeleted) {
this.isDeleted = isDeleted; this.isDeleted = isDeleted;
} }
/** CREATOR
*创建人 /**
*/ * CREATOR
* 创建人
*/
private java.lang.String creator; private java.lang.String creator;
public java.lang.String getCreator(){ public java.lang.String getCreator() {
return this.creator; return this.creator;
} }
public void setCreator(java.lang.String creator){ public void setCreator(java.lang.String creator) {
this.creator = creator; this.creator = creator;
} }
/** CREATED_TIME
*创建时间 /**
*/ * CREATED_TIME
* 创建时间
*/
private java.util.Date createdTime; private java.util.Date createdTime;
public java.util.Date getCreatedTime(){ public java.util.Date getCreatedTime() {
return this.createdTime; return this.createdTime;
} }
public void setCreatedTime(java.util.Date createdTime){ public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime; this.createdTime = createdTime;
} }
/** MODIFIER
*修改人 /**
*/ * MODIFIER
* 修改人
*/
private java.lang.String modifier; private java.lang.String modifier;
public java.lang.String getModifier(){ public java.lang.String getModifier() {
return this.modifier; return this.modifier;
} }
public void setModifier(java.lang.String modifier){ public void setModifier(java.lang.String modifier) {
this.modifier = modifier; this.modifier = modifier;
} }
/** MODIFIED_TIME
*修改时间 /**
*/ * MODIFIED_TIME
* 修改时间
*/
private java.util.Date modifiedTime; private java.util.Date modifiedTime;
public java.util.Date getModifiedTime(){ public java.util.Date getModifiedTime() {
return this.modifiedTime; return this.modifiedTime;
} }
public void setModifiedTime(java.util.Date modifiedTime){ public void setModifiedTime(java.util.Date modifiedTime) {
this.modifiedTime = modifiedTime; this.modifiedTime = modifiedTime;
} }
/** SYS_VERSION
*版本号 /**
*/ * SYS_VERSION
* 版本号
*/
private java.lang.Integer sysVersion; private java.lang.Integer sysVersion;
public java.lang.Integer getSysVersion(){ public java.lang.Integer getSysVersion() {
return this.sysVersion; return this.sysVersion;
} }
public void setSysVersion(java.lang.Integer sysVersion){ public void setSysVersion(java.lang.Integer sysVersion) {
this.sysVersion = sysVersion; this.sysVersion = sysVersion;
} }
} }
\ No newline at end of file
package cn.com.poc.agent_application.model; package cn.com.poc.agent_application.model;
import java.io.Serializable; import java.io.Serializable;
import cn.com.yict.framemax.data.model.BaseModelClass; import cn.com.yict.framemax.data.model.BaseModelClass;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Id; import javax.persistence.Id;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Version; import javax.persistence.Version;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType; import javax.persistence.GenerationType;
...@@ -23,228 +27,259 @@ import javax.persistence.GenerationType; ...@@ -23,228 +27,259 @@ import javax.persistence.GenerationType;
public class BizAgentApplicationMallModel extends BaseModelClass implements Serializable { public class BizAgentApplicationMallModel extends BaseModelClass implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** id /**
*自增ID * id
*/ * 自增ID
*/
private java.lang.Integer id; private java.lang.Integer id;
@Column(name = "id",length = 10) @Column(name = "id", length = 10)
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Id
public java.lang.Integer getId(){ @GeneratedValue(strategy = GenerationType.AUTO)
public java.lang.Integer getId() {
return this.id; return this.id;
} }
public void setId(java.lang.Integer id){ public void setId(java.lang.Integer id) {
this.id = id; this.id = id;
super.addValidField("id"); super.addValidField("id");
} }
/** agent_publish_id /**
*发布应用的ID * agent_publish_id
*/ * 发布应用的ID
*/
private java.lang.Integer agentPublishId; private java.lang.Integer agentPublishId;
@Column(name = "agent_publish_id",length = 10) @Column(name = "agent_publish_id", length = 10)
public java.lang.Integer getAgentPublishId(){ public java.lang.Integer getAgentPublishId() {
return this.agentPublishId; return this.agentPublishId;
} }
public void setAgentPublishId(java.lang.Integer agentPublishId){ public void setAgentPublishId(java.lang.Integer agentPublishId) {
this.agentPublishId = agentPublishId; this.agentPublishId = agentPublishId;
super.addValidField("agentPublishId"); super.addValidField("agentPublishId");
} }
/** agent_type /**
*应用类型 * agent_type
*/ * 应用类型
*/
private java.lang.String agentType; private java.lang.String agentType;
@Column(name = "agent_type",length = 200) @Column(name = "agent_type", length = 200)
public java.lang.String getAgentType(){ public java.lang.String getAgentType() {
return this.agentType; return this.agentType;
} }
public void setAgentType(java.lang.String agentType){ public void setAgentType(java.lang.String agentType) {
this.agentType = agentType; this.agentType = agentType;
super.addValidField("agentType"); super.addValidField("agentType");
} }
/**
/** collect_number * category_id
*收藏人数 * 应用分类ID
*/ */
private java.lang.Integer categoryId;
@Column(name = "category_id", length = 10)
public java.lang.Integer getCategoryId() {
return this.categoryId;
}
public void setCategoryId(java.lang.Integer categoryId) {
this.categoryId = categoryId;
super.addValidField("categoryId");
}
/**
* collect_number
* 收藏人数
*/
private java.lang.Integer collectNumber; private java.lang.Integer collectNumber;
@Column(name = "collect_number",length = 10) @Column(name = "collect_number", length = 10)
public java.lang.Integer getCollectNumber(){ public java.lang.Integer getCollectNumber() {
return this.collectNumber; return this.collectNumber;
} }
public void setCollectNumber(java.lang.Integer collectNumber){ public void setCollectNumber(java.lang.Integer collectNumber) {
this.collectNumber = collectNumber; this.collectNumber = collectNumber;
super.addValidField("collectNumber"); super.addValidField("collectNumber");
} }
/** click_number /**
*点击次数 * click_number
* 点击次数
*/ */
private java.lang.Integer clickNumber; private java.lang.Integer clickNumber;
@Column(name = "click_number",length = 10) @Column(name = "click_number", length = 10)
public java.lang.Integer getClickNumber(){ public java.lang.Integer getClickNumber() {
return this.clickNumber; return this.clickNumber;
} }
public void setClickNumber(java.lang.Integer clickNumber){ public void setClickNumber(java.lang.Integer clickNumber) {
this.clickNumber = clickNumber; this.clickNumber = clickNumber;
super.addValidField("clickNumber"); super.addValidField("clickNumber");
} }
/** is_copy /**
*是否允许被复制 1、Y 是 2、N 否 * is_copy
*/ * 是否允许被复制 1、Y 是 2、N 否
*/
private java.lang.String isCopy; private java.lang.String isCopy;
@Column(name = "is_copy",length = 1) @Column(name = "is_copy", length = 1)
public java.lang.String getIsCopy(){ public java.lang.String getIsCopy() {
return this.isCopy; return this.isCopy;
} }
public void setIsCopy(java.lang.String isCopy){ public void setIsCopy(java.lang.String isCopy) {
this.isCopy = isCopy; this.isCopy = isCopy;
super.addValidField("isCopy"); super.addValidField("isCopy");
} }
/** is_sale /**
*是否上架应用 1、Y 是 2、N 否 * is_sale
* 是否上架应用 1、Y 是 2、N 否
*/ */
private java.lang.String isSale; private java.lang.String isSale;
@Column(name = "is_sale",length = 1) @Column(name = "is_sale", length = 1)
public java.lang.String getIsSale(){ public java.lang.String getIsSale() {
return this.isSale; return this.isSale;
} }
public void setIsSale(java.lang.String isSale){ public void setIsSale(java.lang.String isSale) {
this.isSale = isSale; this.isSale = isSale;
super.addValidField("isSale"); super.addValidField("isSale");
} }
/** popularity /**
*应用热度 * popularity
* 应用热度
*/ */
private java.lang.Double popularity; private java.lang.Double popularity;
@Column(name = "popularity",length = 10) @Column(name = "popularity", length = 10)
public java.lang.Double getPopularity(){ public java.lang.Double getPopularity() {
return this.popularity; return this.popularity;
} }
public void setPopularity(java.lang.Double popularity){ public void setPopularity(java.lang.Double popularity) {
this.popularity = popularity; this.popularity = popularity;
super.addValidField("popularity"); super.addValidField("popularity");
} }
/** is_deleted /**
*是否删除 1、Y 是 2、N 否 * is_deleted
*/ * 是否删除 1、Y 是 2、N 否
*/
private java.lang.String isDeleted; private java.lang.String isDeleted;
@Column(name = "is_deleted",length = 1) @Column(name = "is_deleted", length = 1)
public java.lang.String getIsDeleted(){ public java.lang.String getIsDeleted() {
return this.isDeleted; return this.isDeleted;
} }
public void setIsDeleted(java.lang.String isDeleted){ public void setIsDeleted(java.lang.String isDeleted) {
this.isDeleted = isDeleted; this.isDeleted = isDeleted;
super.addValidField("isDeleted"); super.addValidField("isDeleted");
} }
/** CREATOR /**
*创建人 * CREATOR
*/ * 创建人
*/
private java.lang.String creator; private java.lang.String creator;
@Column(name = "CREATOR",length = 50) @Column(name = "CREATOR", length = 50)
public java.lang.String getCreator(){ public java.lang.String getCreator() {
return this.creator; return this.creator;
} }
public void setCreator(java.lang.String creator){ public void setCreator(java.lang.String creator) {
this.creator = creator; this.creator = creator;
super.addValidField("creator"); super.addValidField("creator");
} }
/** CREATED_TIME /**
*创建时间 * CREATED_TIME
*/ * 创建时间
*/
private java.util.Date createdTime; private java.util.Date createdTime;
@Column(name = "CREATED_TIME",length = 19) @Column(name = "CREATED_TIME", length = 19)
public java.util.Date getCreatedTime(){ public java.util.Date getCreatedTime() {
return this.createdTime; return this.createdTime;
} }
public void setCreatedTime(java.util.Date createdTime){ public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime; this.createdTime = createdTime;
super.addValidField("createdTime"); super.addValidField("createdTime");
} }
/** MODIFIER /**
*修改人 * MODIFIER
*/ * 修改人
*/
private java.lang.String modifier; private java.lang.String modifier;
@Column(name = "MODIFIER",length = 50) @Column(name = "MODIFIER", length = 50)
public java.lang.String getModifier(){ public java.lang.String getModifier() {
return this.modifier; return this.modifier;
} }
public void setModifier(java.lang.String modifier){ public void setModifier(java.lang.String modifier) {
this.modifier = modifier; this.modifier = modifier;
super.addValidField("modifier"); super.addValidField("modifier");
} }
/** MODIFIED_TIME /**
*修改时间 * MODIFIED_TIME
*/ * 修改时间
*/
private java.util.Date modifiedTime; private java.util.Date modifiedTime;
@Column(name = "MODIFIED_TIME",length = 19) @Column(name = "MODIFIED_TIME", length = 19)
public java.util.Date getModifiedTime(){ public java.util.Date getModifiedTime() {
return this.modifiedTime; return this.modifiedTime;
} }
public void setModifiedTime(java.util.Date modifiedTime){ public void setModifiedTime(java.util.Date modifiedTime) {
this.modifiedTime = modifiedTime; this.modifiedTime = modifiedTime;
super.addValidField("modifiedTime"); super.addValidField("modifiedTime");
} }
/** SYS_VERSION /**
*版本号 * SYS_VERSION
*/ * 版本号
*/
private java.lang.Integer sysVersion; private java.lang.Integer sysVersion;
@Column(name = "SYS_VERSION",length = 10) @Column(name = "SYS_VERSION", length = 10)
@Version @Version
public java.lang.Integer getSysVersion(){ public java.lang.Integer getSysVersion() {
return this.sysVersion; return this.sysVersion;
} }
public void setSysVersion(java.lang.Integer sysVersion){ public void setSysVersion(java.lang.Integer sysVersion) {
this.sysVersion = sysVersion; this.sysVersion = sysVersion;
super.addValidField("sysVersion"); super.addValidField("sysVersion");
} }
} }
\ No newline at end of file
...@@ -2,6 +2,7 @@ select ...@@ -2,6 +2,7 @@ select
baam.id, baam.id,
baam.agent_publish_id, baam.agent_publish_id,
baam.agent_type, baam.agent_type,
baam.category_id,
baam.collect_number, baam.collect_number,
baam.is_sale, baam.is_sale,
baam.click_number, baam.click_number,
...@@ -14,5 +15,6 @@ left join biz_agent_application_publish baap on baap.id = baam.agent_publish_id ...@@ -14,5 +15,6 @@ left join biz_agent_application_publish baap on baap.id = baam.agent_publish_id
where baam.is_deleted ='N' where baam.is_deleted ='N'
and baam.is_sale = 'Y' and baam.is_sale = 'Y'
<<and baam.agent_type = :agentType>> <<and baam.agent_type = :agentType>>
<<and baam.category_id = :categoryId>>
<<and LOCATE(:query, baap.agent_title)>> <<and LOCATE(:query, baap.agent_title)>>
order by baam.CREATED_TIME desc order by baam.CREATED_TIME desc
\ No newline at end of file
...@@ -20,6 +20,15 @@ public class MallAgentApplicationQueryCondition implements Serializable{ ...@@ -20,6 +20,15 @@ public class MallAgentApplicationQueryCondition implements Serializable{
this.agentType = agentType; this.agentType = agentType;
} }
private java.lang.Integer categoryId;
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
private java.lang.String query; private java.lang.String query;
......
package cn.com.poc.agent_application.query; package cn.com.poc.agent_application.query;
import java.io.Serializable; import java.io.Serializable;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import cn.com.yict.framemax.data.model.BaseItemClass; import cn.com.yict.framemax.data.model.BaseItemClass;
/** /**
* Query Item class for MallAgentApplicationQuery * Query Item class for MallAgentApplicationQuery
*/ */
@Entity @Entity
public class MallAgentApplicationQueryItem extends BaseItemClass implements Serializable{ public class MallAgentApplicationQueryItem extends BaseItemClass implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** id /**
*id * id
*/ * id
*/
private java.lang.Integer id; private java.lang.Integer id;
@Column(name = "id") @Column(name = "id")
public java.lang.Integer getId(){ public java.lang.Integer getId() {
return this.id; return this.id;
} }
public void setId(java.lang.Integer id){ public void setId(java.lang.Integer id) {
this.id = id; this.id = id;
} }
/** agent_publish_id /**
*agent_publish_id * agent_publish_id
*/ * agent_publish_id
*/
private java.lang.Integer agentPublishId; private java.lang.Integer agentPublishId;
@Column(name = "agent_publish_id") @Column(name = "agent_publish_id")
public java.lang.Integer getAgentPublishId(){ public java.lang.Integer getAgentPublishId() {
return this.agentPublishId; return this.agentPublishId;
} }
public void setAgentPublishId(java.lang.Integer agentPublishId){ public void setAgentPublishId(java.lang.Integer agentPublishId) {
this.agentPublishId = agentPublishId; this.agentPublishId = agentPublishId;
} }
/** agent_type /**
*agent_type * agent_type
*/ * agent_type
*/
private java.lang.String agentType; private java.lang.String agentType;
@Column(name = "agent_type") @Column(name = "agent_type")
public java.lang.String getAgentType(){ public java.lang.String getAgentType() {
return this.agentType; return this.agentType;
} }
public void setAgentType(java.lang.String agentType){ public void setAgentType(java.lang.String agentType) {
this.agentType = agentType; this.agentType = agentType;
} }
/** collect_number /**
*collect_number * category_id
*/ */
private java.lang.Integer categoryId;
@Column(name = "category_id")
public java.lang.Integer getCategoryId() {
return this.categoryId;
}
public void setCategoryId(java.lang.Integer categoryId) {
this.categoryId = categoryId;
}
/**
* collect_number
* collect_number
*/
private java.lang.Integer collectNumber; private java.lang.Integer collectNumber;
@Column(name = "collect_number") @Column(name = "collect_number")
public java.lang.Integer getCollectNumber(){ public java.lang.Integer getCollectNumber() {
return this.collectNumber; return this.collectNumber;
} }
public void setCollectNumber(java.lang.Integer collectNumber){ public void setCollectNumber(java.lang.Integer collectNumber) {
this.collectNumber = collectNumber; this.collectNumber = collectNumber;
} }
/** baam.is_sale = 'Y' /**
*baam.is_sale = 'Y' * baam.is_sale = 'Y'
*/ * baam.is_sale = 'Y'
*/
private java.lang.String isSale; private java.lang.String isSale;
@Column(name = "is_sale") @Column(name = "is_sale")
public java.lang.String getIsSale(){ public java.lang.String getIsSale() {
return this.isSale; return this.isSale;
} }
...@@ -83,60 +103,64 @@ public class MallAgentApplicationQueryItem extends BaseItemClass implements Seri ...@@ -83,60 +103,64 @@ public class MallAgentApplicationQueryItem extends BaseItemClass implements Seri
this.isSale = isSale; this.isSale = isSale;
} }
/** click_number /**
*click_number * click_number
*/ * click_number
*/
private java.lang.Integer clickNumber; private java.lang.Integer clickNumber;
@Column(name = "click_number") @Column(name = "click_number")
public java.lang.Integer getClickNumber(){ public java.lang.Integer getClickNumber() {
return this.clickNumber; return this.clickNumber;
} }
public void setClickNumber(java.lang.Integer clickNumber){ public void setClickNumber(java.lang.Integer clickNumber) {
this.clickNumber = clickNumber; this.clickNumber = clickNumber;
} }
/** is_copy /**
*is_copy * is_copy
*/ * is_copy
*/
private java.lang.String isCopy; private java.lang.String isCopy;
@Column(name = "is_copy") @Column(name = "is_copy")
public java.lang.String getIsCopy(){ public java.lang.String getIsCopy() {
return this.isCopy; return this.isCopy;
} }
public void setIsCopy(java.lang.String isCopy){ public void setIsCopy(java.lang.String isCopy) {
this.isCopy = isCopy; this.isCopy = isCopy;
} }
/** popularity /**
*popularity * popularity
*/ * popularity
*/
private java.lang.Double popularity; private java.lang.Double popularity;
@Column(name = "popularity") @Column(name = "popularity")
public java.lang.Double getPopularity(){ public java.lang.Double getPopularity() {
return this.popularity; return this.popularity;
} }
public void setPopularity(java.lang.Double popularity){ public void setPopularity(java.lang.Double popularity) {
this.popularity = popularity; this.popularity = popularity;
} }
/** agent_id /**
*agent_id * agent_id
*/ * agent_id
*/
private java.lang.String agentId; private java.lang.String agentId;
@Column(name = "agent_id") @Column(name = "agent_id")
public java.lang.String getAgentId(){ public java.lang.String getAgentId() {
return this.agentId; return this.agentId;
} }
public void setAgentId(java.lang.String agentId){ public void setAgentId(java.lang.String agentId) {
this.agentId = agentId; this.agentId = agentId;
} }
} }
\ No newline at end of file
package cn.com.poc.agent_application.rest; package cn.com.poc.agent_application.rest;
import cn.com.poc.agent_application.dto.AgentApplicationMallCategoryDto;
import cn.com.poc.agent_application.dto.AgentApplicationMallQueryDto; import cn.com.poc.agent_application.dto.AgentApplicationMallQueryDto;
import cn.com.yict.framemax.core.rest.BaseRest; import cn.com.yict.framemax.core.rest.BaseRest;
import cn.com.poc.agent_application.dto.BizAgentApplicationMallDto; import cn.com.poc.agent_application.dto.BizAgentApplicationMallDto;
...@@ -55,6 +56,6 @@ public interface BizAgentApplicationMallRest extends BaseRest { ...@@ -55,6 +56,6 @@ public interface BizAgentApplicationMallRest extends BaseRest {
/** /**
* 获取应用广场分类列表 * 获取应用广场分类列表
*/ */
List<String> getMallCategoryList(HttpServletRequest httpServletRequest) throws Exception; List<AgentApplicationMallCategoryDto> getMallCategoryList(HttpServletRequest httpServletRequest) throws Exception;
} }
\ No newline at end of file
...@@ -2,6 +2,7 @@ package cn.com.poc.agent_application.rest.impl; ...@@ -2,6 +2,7 @@ package cn.com.poc.agent_application.rest.impl;
import cn.com.poc.agent_application.aggregate.AgentApplicationMallService; import cn.com.poc.agent_application.aggregate.AgentApplicationMallService;
import cn.com.poc.agent_application.convert.BizAgentApplicationMallConvert; import cn.com.poc.agent_application.convert.BizAgentApplicationMallConvert;
import cn.com.poc.agent_application.dto.AgentApplicationMallCategoryDto;
import cn.com.poc.agent_application.dto.AgentApplicationMallQueryDto; import cn.com.poc.agent_application.dto.AgentApplicationMallQueryDto;
import cn.com.poc.agent_application.dto.BizAgentApplicationMallDto; import cn.com.poc.agent_application.dto.BizAgentApplicationMallDto;
import cn.com.poc.agent_application.entity.BizAgentApplicationCategoryEntity; import cn.com.poc.agent_application.entity.BizAgentApplicationCategoryEntity;
...@@ -52,7 +53,7 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR ...@@ -52,7 +53,7 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR
public void publishAgentToMall(BizAgentApplicationMallDto dto) throws Exception { public void publishAgentToMall(BizAgentApplicationMallDto dto) throws Exception {
Assert.notNull(dto); Assert.notNull(dto);
Assert.notNull(dto.getAgentPublishId()); Assert.notNull(dto.getAgentPublishId());
Assert.notNull(dto.getAgentType()); Assert.notNull(dto.getCategoryId());
Assert.notNull(dto.getIsCopy()); Assert.notNull(dto.getIsCopy());
BizAgentApplicationPublishEntity publishEntity = bizAgentApplicationPublishService.get(dto.getAgentPublishId()); BizAgentApplicationPublishEntity publishEntity = bizAgentApplicationPublishService.get(dto.getAgentPublishId());
if (publishEntity == null) { if (publishEntity == null) {
...@@ -72,7 +73,7 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR ...@@ -72,7 +73,7 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR
if (mallEntity != null) { if (mallEntity != null) {
mallEntity.setIsSale(CommonConstant.IsDeleted.Y); mallEntity.setIsSale(CommonConstant.IsDeleted.Y);
mallEntity.setAgentType(dto.getAgentType()); mallEntity.setCategoryId(dto.getCategoryId());
mallEntity.setIsCopy(dto.getIsCopy()); mallEntity.setIsCopy(dto.getIsCopy());
mallEntity.setCollectNumber(collectEntities.size()); mallEntity.setCollectNumber(collectEntities.size());
// 如果上架过,则update操作 // 如果上架过,则update操作
...@@ -105,6 +106,9 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR ...@@ -105,6 +106,9 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR
if (StringUtils.isNotBlank(dto.getAgentType())) { if (StringUtils.isNotBlank(dto.getAgentType())) {
mallAgentApplicationQueryCondition.setAgentType(dto.getAgentType()); mallAgentApplicationQueryCondition.setAgentType(dto.getAgentType());
} }
if (dto.getCategoryId() != null) {
mallAgentApplicationQueryCondition.setCategoryId(dto.getCategoryId());
}
} }
List<MallAgentApplicationQueryItem> items = bizAgentApplicationMallService.mallAgentApplicationQuery(mallAgentApplicationQueryCondition, pagingInfo); List<MallAgentApplicationQueryItem> items = bizAgentApplicationMallService.mallAgentApplicationQuery(mallAgentApplicationQueryCondition, pagingInfo);
...@@ -153,23 +157,30 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR ...@@ -153,23 +157,30 @@ public class BizAgentApplicationMallRestImpl implements BizAgentApplicationMallR
} }
@Override @Override
public List<String> getMallCategoryList(HttpServletRequest httpServletRequest) throws Exception { public List<AgentApplicationMallCategoryDto> getMallCategoryList(HttpServletRequest httpServletRequest) throws Exception {
List<String> result = new ArrayList<>(); List<AgentApplicationMallCategoryDto> result = new ArrayList<>();
String lang = httpServletRequest.getHeader("x-lang"); String lang = httpServletRequest.getHeader("x-lang");
if (StringUtils.isEmpty(lang)) { if (StringUtils.isEmpty(lang)) {
lang = XLangConstant.ZH_CN; lang = XLangConstant.ZH_CN;
} }
List<BizAgentApplicationCategoryEntity> bizAgentApplicationCategoryEntities = bizAgentApplicationCategoryService.findByExample(new BizAgentApplicationCategoryEntity(), null); List<BizAgentApplicationCategoryEntity> bizAgentApplicationCategoryEntities = bizAgentApplicationCategoryService.findByExample(new BizAgentApplicationCategoryEntity(), null);
for (BizAgentApplicationCategoryEntity entity : bizAgentApplicationCategoryEntities) { for (BizAgentApplicationCategoryEntity entity : bizAgentApplicationCategoryEntities) {
AgentApplicationMallCategoryDto dto = new AgentApplicationMallCategoryDto();
switch (lang) { switch (lang) {
case XLangConstant.EN: case XLangConstant.EN:
result.add(entity.getCategoryEn()); dto.setId(entity.getId());
dto.setCategoryName(entity.getCategoryEn());
result.add(dto);
break; break;
case XLangConstant.ZH_CN: case XLangConstant.ZH_CN:
result.add(entity.getCategory()); dto.setId(entity.getId());
dto.setCategoryName(entity.getCategory());
result.add(dto);
break; break;
case XLangConstant.ZH_TW: case XLangConstant.ZH_TW:
result.add(entity.getCategoryTw()); dto.setId(entity.getId());
dto.setCategoryName(entity.getCategoryTw());
result.add(dto);
break; break;
default: default:
throw new I18nMessageException("not support lang"); throw new I18nMessageException("not support lang");
......
...@@ -5,8 +5,8 @@ package cn.com.poc.common.constant; ...@@ -5,8 +5,8 @@ package cn.com.poc.common.constant;
*/ */
public interface XLangConstant { public interface XLangConstant {
String ZH_CN = "zh_cn"; String ZH_CN = "zh-cn";
String ZH_TW = "zh_tw"; String ZH_TW = "zh-tw";
String EN = "en"; String EN = "en";
......
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