Commit 79d07d59 by guojuxing

情报站修改

parent 09d48dc6
package com.gic.operation.web.controller;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.dto.ProductMarketDTO;
import com.gic.enterprise.qo.ProductMarketQO;
......@@ -26,21 +27,23 @@ public class ProductMarketController {
/**
* 新增情报
* @param productMarketDTO
* @param param
* @return
*/
@RequestMapping("save-product-market")
public RestResponse saveProductMarket(ProductMarketDTO productMarketDTO) {
public RestResponse saveProductMarket(ProductMarketQO param) {
ProductMarketDTO productMarketDTO = EntityUtil.changeEntityNew(ProductMarketDTO.class, param);
return ResultControllerUtils.commonResult(productMarketApiService.saveProductMarket(productMarketDTO));
}
/**
* 编辑情报
* @param productMarketDTO
* @param param
* @return
*/
@RequestMapping("update-product-market")
public RestResponse updateProductMarket(ProductMarketDTO productMarketDTO) {
public RestResponse updateProductMarket(ProductMarketQO param) {
ProductMarketDTO productMarketDTO = EntityUtil.changeEntityNew(ProductMarketDTO.class, param);
return ResultControllerUtils.commonResult(productMarketApiService.updateProductMarket(productMarketDTO));
}
......
package com.gic.operation.web.qo;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
/**
* 情报
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/6/1 11:40 AM

*/
public class ProductMarketQO implements Serializable{
private static final long serialVersionUID = -6693359417336191988L;
/**
*
*/
private Integer productMarketId;
/**
* 标题
*/
private String title;
/**
* 类型(1 功能更新、2 产品推广、3 成功案例)
*/
private Integer infoType;
/**
* 超链接
*/
private String hyperLink;
/**
* 发布时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-mm-dd HH:mm:ss")
private Date releaseTime;
public Integer getProductMarketId() {
return productMarketId;
}
public ProductMarketQO setProductMarketId(Integer productMarketId) {
this.productMarketId = productMarketId;
return this;
}
public String getTitle() {
return title;
}
public ProductMarketQO setTitle(String title) {
this.title = title;
return this;
}
public Integer getInfoType() {
return infoType;
}
public ProductMarketQO setInfoType(Integer infoType) {
this.infoType = infoType;
return this;
}
public String getHyperLink() {
return hyperLink;
}
public ProductMarketQO setHyperLink(String hyperLink) {
this.hyperLink = hyperLink;
return this;
}
public Date getReleaseTime() {
return releaseTime;
}
public ProductMarketQO setReleaseTime(Date releaseTime) {
this.releaseTime = releaseTime;
return this;
}
@Override
public String toString() {
return "ProductMarketQO{" +
"productMarketId=" + productMarketId +
", title='" + title + '\'' +
", infoType=" + infoType +
", hyperLink='" + hyperLink + '\'' +
", releaseTime=" + releaseTime +
'}';
}
}
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