Merge remote-tracking branch 'origin/master'
| | |
| | | SELECT * FROM yeshi_ec_share_goods_record |
| | | WHERE sgr_uid = #{uid} |
| | | <if test="source != null and source != '' "> |
| | | sgr_source = = #{source} |
| | | AND sgr_source = #{source} |
| | | </if> |
| | | ORDER BY sgr_updatetime DESC |
| | | LIMIT #{start},#{count} |
| | |
| | | SELECT IFNULL(count(sgr_id),0) FROM yeshi_ec_share_goods_record |
| | | WHERE sgr_uid = #{uid} |
| | | <if test="source != null and source != '' "> |
| | | sgr_source = = #{source} |
| | | AND sgr_source = #{source} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | SELECT * FROM yeshi_ec_user_goods_storage tg |
| | | LEFT JOIN `yeshi_ec_common_goods` cg ON tg.`guc_common_id` = cg.`cg_id` |
| | | WHERE tg.`guc_uid` = #{uid} |
| | | ORDER BY tg.guc_state,tg.`guc_updatetime` DESC |
| | | ORDER BY cg.cg_state, tg.guc_state, tg.`guc_updatetime` DESC |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | |
| | | @Override
|
| | | public FileUploadResult save(Long uid, ShareSourceTypeEnum source, String title, List<TaoBaoGoodsBrief> listGoods) throws UserShareGoodsRecordException {
|
| | |
|
| | | if (listGoods == null || listGoods.size() <= 1) {
|
| | | if (listGoods == null || listGoods.size() < 0) {
|
| | | throw new UserShareGoodsRecordException(1, "分享商品数量不足");
|
| | | }
|
| | |
|