| | |
| | | |
| | | |
| | | <select id="lensReceiptList" resultType="com.jilongda.manage.vo.TLensGoodsVO"> |
| | | select t1.*,t2.name as series,t4.name as storeName, |
| | | select t1.seriesId, |
| | | t1.createTime, |
| | | t1.updateTime, |
| | | t1.createBy, |
| | | t1.updateBy, |
| | | t1.isDelete, |
| | | t1.storeId, |
| | | t1.ballMirror, |
| | | t1.columnMirror, |
| | | t1.refractiveIndex, |
| | | t1.`status`, |
| | | t1.lensType,t2.name as series,t4.name as storeName, |
| | | t2.sphere as sphere,t2.asphericSurface as asphericSurface,t2.type as type |
| | | ,t2.doubleNon as doubleNon |
| | | ,t6.name as brand,t7.frameThreshold |
| | | ,t6.name as brand,t7.frameThreshold, |
| | | sum(t1.total) as total |
| | | from |
| | | t_lens_goods t1 |
| | | left join t_lens_series t2 on t1.seriesId=t2.id |
| | |
| | | <if test="query.isWarning !=null and query.isWarning ==2"> |
| | | and t1.total >= t7.lensThreshold |
| | | </if> |
| | | |
| | | and t1.isDelete = 0 |
| | | </where> |
| | | group by |
| | | seriesId, |
| | | refractiveIndex, |
| | | lensType |
| | | order by t1.id |
| | | </select> |
| | | </mapper> |