Stringsql="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";
Stringsql="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";
Sessionsession=this.getSession();
Queryquery=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 ");