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. 新安装jenkins要记录的点。

    突然很早之前部署的jenkins 由于版本低存在漏洞,被人搞了,在docker中新安装jenkins出现了各种问题,避免跳坑. 不能正确安装插件, Jenkins -> Plugin Manag ...

  2. Java核心技术梳理-类加载机制与反射

    一.引言 反射机制是一个非常好用的机制,C#和Java中都有反射,反射机制简单来说就是在程序运行状态时,对于任意一个类,能够知道这个类的所有属性和方法,对于任意一个对象,能够调用它的任意属性和方法,其 ...

  3. VMware 网络介绍

       3.1 网卡介绍 如图所示,你的机器有两块网卡,一个是有线,一个是无线. 装完VM之后,会出现两块虚拟网卡,如图 VM有四种连接方式,我们着重介绍前三种    3.2 桥接 选择桥接模式,说明V ...

  4. NEST dynamic 和 alias

    /// <summary> /// Dynamic = false无法搜索 /// </summary> public void Dynamicmapping() { var ...

  5. Django模板语言的学习

    1.模板系统 1.语法 1.变量相关 {{ name}} ,{{ name|length}}, {{ name |default:"默认值"}} 2.逻辑相关 1.if判断 {% ...

  6. 仿EXCEL插件,智表ZCELL产品V1.7 版本发布,增加自定义右键菜单功能

    详细请移步 智表(ZCELL)官网www.zcell.net 更新说明  这次更新主要应用户要求,主要解决了自定义右键菜单事件的支持,并新增了公式中自定义函数传参.快捷键剪切等功能,欢迎大家体验使用. ...

  7. springboot feign too many bytes written executing POST

    解決办法: pom添加: <dependency><groupId>io.github.openfeign</groupId><artifactId>f ...

  8. Windows10简单启动项目添加方法

    1,cmd输入 shell:startup 打卡启动项文件夹 2,将需要启动执行的项目的快捷方式放入此文件夹 3,重新启动系统就可以知道效果了

  9. css 三角形空心三角形的简单实现

    <style> #talkbubble { width: 120px; height: 80px; position: relative; -moz-border-radius: 10px ...

  10. python 中json和字符串互相转换

      string =" {  "status": "error",  "messages": ["Could not f ...