JSON.parse(data.parameter)  存的字符串

   <select id="getGoodsBaseInfoById" resultType="com.zjdfwl.mall.modular.goods.model.GoodsBaseInfo">
SELECT
t1.id,
t1.goods_sn AS goodsSn,
t1.name,
t1.unit,
t1.preview,
t1.collection_count AS collectionCount,
t1.volume,
t1.is_show_volume AS isShowVolume,
t1.pv,
t1.is_privilege AS isPrivilege,
t1.is_hot AS isHot,
t1.is_new AS isNew,
t1.status,
t1.label,
t1.intro,
t1.parameter,
t1.sale_percentage1 AS salePercentage1,
t1.sale_percentage2 AS salePercentage2,
t1.sale_money1 AS saleMoney1,
t1.sale_money2 AS saleMoney2,
t1.common_money AS commonMoney,
t1.consumer_sale_percentage1 AS consumerSalePercentage1,
t1.consumer_sale_percentage2 AS consumerSalePercentage2,
t1.consumer_sale_money1 AS consumerSaleMoney1,
t1.consumer_sale_money2 AS consumerSaleMoney2,
if(t100.max_pay_integrate_rate is null,t1.max_pay_integrate_rate,t100.max_pay_integrate_rate) AS maxPayIntegrateRate,
if(t100.receivable_integrate_rate is null,t1.receivable_integrate_rate,t100.receivable_integrate_rate) AS receivableIntegrateRate,
t1.image_src AS imageSrc,
t1.goods_desc AS goodsDesc,
t1.service_details AS serviceDetails,
t1.is_deleted AS isDeleted,
t1.second_cate_json AS secondCateJson,
t1.base_volume AS baseVolume,
t1.shopping_methods AS shoppingMethods,
t1.is_universal AS isUniversal,
t1.good_label_json AS goodLabelJson,
if(t100.price_rate is null,format(t1.price,2),(t1.price-ROUND(t1.price*(t100.price_rate/100),2))) as price,
if(t100.max_pay_integrate_rate is null,
if(t100.price_rate is null,ROUND(t1.price*(t1.max_pay_integrate_rate/100),2),ROUND((t1.price-ROUND(t1.price*(t100.price_rate/100),2))*(t1.max_pay_integrate_rate/100),2)),
if(t100.price_rate is null,ROUND(t1.price*(t100.max_pay_integrate_rate/100),2),ROUND((t1.price-ROUND(t1.price*(t100.price_rate/100),2))*(t100.max_pay_integrate_rate/100),2))
) as pateMoney
FROM
m_goods_base_info t1
left join
(
select
t99.price_rate,
t99.max_pay_integrate_rate,
t99.receivable_integrate_rate,
t99.goods_id
from
m_price_singleset_info t99
where t99.is_deleted=0 and t99.is_enable=1
and t99.area=#{area}
and t99.id=(select max(id) from m_price_singleset_info where goods_id=t99.goods_id)
) t100
on t1.id=t100.goods_id
WHERE
t1.is_deleted = 0
AND t1.is_enable = 1
AND t1. STATUS = 1
and id=#{goodId}
</select>

自用 goodsdetail的更多相关文章

  1. 如约而至:微信自用的移动端IM网络层跨平台组件库Mars已正式开源

    1.前言 关于微信内部正在使用的网络层封装库Mars开源的消息,1个多月前就已满天飞(参见<微信Mars:微信内部正在使用的网络层封装库,即将开源>),不过微信团队没有失约,微信Mars ...

  2. idea快捷键(自用)

    idea快捷键(自用) 1.比如输入eclipse下面的main,sysout等,在idea里面同样可以实现,如下: sysout(sout 按tab),main(psvm按tab),具体可按照ctr ...

  3. 自用debug单元

    将之前的内存查看单元小幅修改,加上文件操作和计时,组成了一个自用debug单元,使用方法如示例. 此单元便捷之处在于直接将#define DEBUG注释掉而无需改动源码,即可取消debug模式. #d ...

  4. MTNET 自用ios网络库开源

    短短两天就在https://git.oschina.net/gangwang/MTNET这里收获15个星 github 5星, 值得收藏! MTNET 自用ios网络库开源, 自用很久了,在数歀上架的 ...

  5. android studio 自用快捷键方案

    自用改建方案,一切为了更加顺手 以windows平台为例,为了清晰明了,字母键盘都以大写注明 代码篇 格式化代码            ctl+alt+L 快速修复               alt ...

  6. 自用类库整理之SqlHelper和MySqlHelper

    自用类库整理之SqlHelper和MySqlHelper 自用的SQLHelper和MySqlHelper,除一些通用方法外,封装了一些很实用的批量操作方法,简单介绍下 SqlHelper Execu ...

  7. OpenSSL中的大数接口与基于其的自用RSA加密接口设计

    本文记录了初次接触OpenSSL中的大数模块,重温了RSA加密流程,使用OpenSSL的接口包装成自用RSA加密接口,并且利用自己的接口演示了Alice与Bob通过RSA加密进行通讯的一个示例. 概览 ...

  8. HBuilder ,及自用主题

    字体:Consolas http://bbs.csdn.net/topics/390858585  让代码更美:你最爱的编程字体 http://www.dcloud.io HBuilder下载 htt ...

  9. 【自用】bat ftp下载前一天备份

    @echo off rem 指定FTP用户名 set ftpUser=app rem 指定FTP密码 set ftpPass=app rem 指定FTP服务器地址 set ftpIP=192.168. ...

随机推荐

  1. checkbox之全选和反选

    先导入jquery组件 <input type="checkbox" id="checkall">全选<input type="ch ...

  2. URL不变的情况下,最实用的vue刷新当前页面,provide / inject 组合 方式实现vue页面刷新

    原文:https://blog.csdn.net/Dream_xun/article/details/83024487 其他参考:https://blog.csdn.net/liyunkun888/a ...

  3. Windows查看端口使用状况(转)

    转:https://www.cnblogs.com/lixuwu/p/5898354.html 阅读目录 1 查看windows所有端口进程 2 查询指定端口 使用端口是我们在进行远程或者打印机等都会 ...

  4. 浏览器提示:源映射错误:request failed with status 404 源 URL:http://xxx.js 源映射 URL:jquery.min.map

    浏览器 jquery1.9.1min.js 报脚本错误 无jquery.min.map 文件 最近在浏览个人网站的时候就遇到了这个问题 我先说一下什么是source map文件. source map ...

  5. Exception和RuntimeException区别

    Exception:强制性要求用户必须进行处理: RuntimeException:是Exception的子类,由用户选择是否进行处理:

  6. JAVA项目之增删改查

    public class ProductDao { // 查询所有商品 // BeanListHandler查询所有商品 public List<Product> getAll() thr ...

  7. old english diamaund钻石

    Diamond Di"a*mond (?; 277), n. [OE. diamaund, the hardest iron, steel, diamond, Gr. . Perh. the ...

  8. Java 格式化日期、时间

    有三种方法可以格式化日期.时间. 1.使用DateFormat类 获取DateFormat实例: DateFormat.getDateInstance()    只能格式化日期      2019年5 ...

  9. easyui datagrid treegrid 取消行选中、取消高亮

    .datagrid-row-selected{ background: #FFFFFF !important; color: #404040; } 一.思路来源:https://www.cnblogs ...

  10. js 获取 对象 属性名称(转载)

    来源:https://www.cnblogs.com/YuyuanNo1/p/9257634.html dataObj = {name : su,age : 26,height : 18cm }; f ...