Commit c590f04c by Huang Linyu

add vipPrice

parent eea832cf
......@@ -189,7 +189,7 @@ public class AsmCourseResourceDao extends GenericHibernateDao<AsmCourseresource,
private void updateResourcePriceInfo(Date date, Date now) {
String sql = "update asm_courseresource t inner join prd_resourceprice p on t.priceId = p.id and p.dataChange_LastTime>=:dataChangeLastTime set t.cashRebate=p.cashRebate,t.salePrice=p.salePrice,t.floorPrice=p.floorPrice,t.marketPrice=p.marketPrice,t.commission=p.commission,t.prepaidPrice=p.prepaidPrice,t.currency=p.currency,t.priceStatus=p.Status,t.priceDate=p.priceDate,t.Update_LastTime=:updateLastTime";
String sql = "update asm_courseresource t inner join prd_resourceprice p on t.priceId = p.id and p.dataChange_LastTime>=:dataChangeLastTime set t.cashRebate=p.cashRebate,t.salePrice=p.salePrice,t.floorPrice=p.floorPrice,t.marketPrice=p.marketPrice,t.commission=p.commission,t.prepaidPrice=p.prepaidPrice,t.currency=p.currency,t.priceStatus=p.Status,t.priceDate=p.priceDate,t.Update_LastTime=:updateLastTime,t.vipPrice=p.vipPrice";
Session session = this.getSession();
Query query = session.createSQLQuery(sql);
query.setParameter("dataChangeLastTime", date);
......@@ -1373,6 +1373,7 @@ public class AsmCourseResourceDao extends GenericHibernateDao<AsmCourseresource,
sb.append("fairwayLength,");
sb.append("teeTime,");
sb.append("salePrice,");
sb.append("vipPrice,");
sb.append("marketPrice,");
sb.append("service,");
......@@ -1482,6 +1483,7 @@ public class AsmCourseResourceDao extends GenericHibernateDao<AsmCourseresource,
.append("lng,")
.append("feature,")
.append("salePrice,")
.append("vipPrice,")
.append("IFNULL((Select CONCAT(a.path,'/',a.`hash`,'.',a.ext) From bsc_entityimage a where a.EntityType='course' and a.EntityID=b.CourseID and CONCAT(a.path,'/',a.`hash`,'.',a.ext)!=b.ImagePath limit 0 , 1) , '') as imagePath,")
.append("inventoryType").append(" from asm_courseresource b where minPrice = true ");
......
......@@ -65,6 +65,7 @@ public class AsmCourseresource implements java.io.Serializable {
private Double floorPrice;
private Double marketPrice;
private Double prepaidPrice;
private Double vipPrice;
private Integer currency;
private Integer priceStatus;
......@@ -754,6 +755,15 @@ public class AsmCourseresource implements java.io.Serializable {
public void setCommission(Double commission) {
this.commission = commission;
}
@Column(name="vipPrice")
public Double getVipPrice() {
return vipPrice;
}
public void setVipPrice(Double vipPrice) {
this.vipPrice = vipPrice;
}
......
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 sign in to comment