| | |
| | | List<MallGoods> selectMallGoodsListQueryByRuleId(@Param("id")Long id); |
| | | |
| | | List<MallGoods> selectMallGoodsListQueryByRuleIdAndIsSale(@Param("id")Long id, @Param("isSale")Integer ishotStateYes); |
| | | |
| | | void updateCarriageRuleId(@Param("id")Long id); |
| | | |
| | | void updateCarriageAmount(@Param("id")Long id); |
| | | } |
| | |
| | | Integer carriageType = addMallGoodsDto.getCarriageType(); |
| | | if(1 == carriageType){ |
| | | if(ObjectUtil.isEmpty(addMallGoodsDto.getCarriageAmount()) |
| | | || BigDecimal.ZERO.compareTo(addMallGoodsDto.getCarriageAmount()) >= 0){ |
| | | || BigDecimal.ZERO.compareTo(addMallGoodsDto.getCarriageAmount()) > 0){ |
| | | return new FebsResponse().fail().message("固定邮费不能小于零"); |
| | | } |
| | | }else{ |
| | |
| | | |
| | | mallGoodsMapper.updateById(mallGoods); |
| | | |
| | | if( 1 == mallGoods.getCarriageType()){ |
| | | mallGoodsMapper.updateCarriageRuleId(mallGoods.getId()); |
| | | }else{ |
| | | mallGoodsMapper.updateCarriageAmount(mallGoods.getId()); |
| | | } |
| | | |
| | | mallGoodsImagesMapper.deleteByGoodsId(mallGoodsUpdateDto.getId()); |
| | | String thumbs = mallGoodsUpdateDto.getThumbs(); |
| | | if (StrUtil.isNotEmpty(thumbs)) { |
| | |
| | | where id=#{id} and volume - #{cnt} <![CDATA[ >= ]]> 0 |
| | | </update> |
| | | |
| | | <update id="updateCarriageRuleId"> |
| | | update mall_goods |
| | | set carriage_rule_id = null |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | <update id="updateCarriageAmount"> |
| | | update mall_goods |
| | | set carriage_amount = null |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | <select id="selectMallGoodsListQueryNoPage" resultType="cc.mrbird.febs.mall.vo.MallGoodsListVo"> |
| | | select * from ( |
| | | select |
| | |
| | | <div class="layui-input-block"> |
| | | <select name="isNormal" class="goods-type" lay-filter="goods-type-select"> |
| | | <option value="1">普通商品区</option> |
| | | <option value="2">套餐区</option> |
| | | <!-- <option value="2">套餐区</option>--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <select name="isNormal" class="goods-type" |
| | | lay-filter="goods-type-select"> |
| | | <option value="1">普通商品区</option> |
| | | <option value="2">套餐区</option> |
| | | <!-- <option value="2">套餐区</option>--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </form> |
| | | <table lay-filter="commetTable" lay-data="{id: 'commetTable'}"></table> |
| | | <style type="text/css"> |
| | | .layui-table-cell{ |
| | | text-align:center; |
| | | height: auto; |
| | | white-space: nowrap; /*文本不会换行,在同一行显示*/ |
| | | overflow: hidden; /*超出隐藏*/ |
| | | text-overflow: ellipsis; /*省略号显示*/ |
| | | } |
| | | .layui-table img{ |
| | | max-width:100px |
| | | } |
| | | </style> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | elem: $view.find('table'), |
| | | id: 'commetTable', |
| | | url: ctx + 'admin/order/commentList', |
| | | defaultToolbar: [], |
| | | toolbar: '#tableToolBar', |
| | | // toolbar: '#tableToolBar', |
| | | cols: [[ |
| | | {field: 'memberName', title: '昵称', minWidth: 100,align:'left'}, |
| | | {field: 'orderNo', title: '订单编号', minWidth: 80,align:'left'}, |
| | |
| | | elem: $view.find('table'), |
| | | id: 'orderTable', |
| | | url: ctx + 'admin/order/orderList?orderType=1', |
| | | defaultToolbar: [], |
| | | // defaultToolbar: [], |
| | | //系统自带打印导出 |
| | | toolbar: '#tableToolBar', |
| | | cols: [[ |
| | | {type: 'checkbox', fixed: 'left'}, |