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. 2019-7-17 正则表达式和re模块

    一.re模块与正则表达式之间的关系 正则表达式不是python独有的,它是一门独立的技术 所有的编程语言都可以使用正则 但是如果你想在python中使用,你就必须依赖于re模块 正则的官方定义:正则表 ...

  2. 【转】Isim——基本技巧

    来源:电子产品世界: 注:本文由NingHeChuan本人多出整理所得,原文章图片不清晰,自己整理配图后重新发表 安装好ISE,系统已经自带了ISim仿真软件,相比于专业的仿真软件Modelsim,I ...

  3. NOI2019:Stay at Home

    7.16 NOI D1 从同步赛开始更起好了 先看了一圈题目,发现T1非常可做,二次函数因为对称轴在\(x < 0\)的地方所以有跟一次函数类似的单调性,搞个单调队列维护一下似乎就可以了.大力码 ...

  4. 处女篇:自用C#后端SqlHelper.cs类

    自用SqlHelper.cs类,此类来自软谋教育徐老师课程SqlHelper.cs! using System; using System.Collections; using System.Coll ...

  5. elasticsearch内存不断增长问题

    经过一段时间运行,es的索引已经达到数十G以上.es采用mmap的方式将索引文件映射到内存中,随着检索的次数增加,越来越多的数据被操作系统读入到内存中.这部分内存位于系统中,但是又不归es管理,也就是 ...

  6. 分布式缓存重建并发冲突和zookeeper分布式锁解决方案

    如果缓存服务在本地的ehcache中都读取不到数据. 这个时候就意味着,需要重新到源头的服务中去拉去数据,拉取到数据之后,赶紧先给nginx的请求返回,同时将数据写入ehcache和redis中 分布 ...

  7. Golang_小程序学golang

    1 前置条件 Golang基本情况自行baidu/google 1.1 环境与工具 IDE:liteide (windows ).mingw-w64 (gcc) DB:SQL Server 2008 ...

  8. 小程序加入echart 图表

    github上的地址 https://github.com/ecomfe/echarts-for-weixin 复制到当前项目根目录下 添加展示bar图表例子的文件夹 index.json 中配置使用 ...

  9. InheritedWidget and screen

    self: import 'package:flutter/material.dart'; class GrantScreen { static double _width, _height; sta ...

  10. 四级CET大学词汇六级备份

    Cet6六级中要考到法庭词汇的小故事  如何安排六级考试前的一个月1.每天按照我的要求去背单词2.做四套真题,词汇部分 只做词汇 3.做personal dictionary把真题中出现的所有不认识的 ...