Compare commits
No commits in common. "1bf6aa56879083682680b92504408d7c6a285997" and "524ebe7f2d46f99d80e5629d8ed5023ba9184155" have entirely different histories.
1bf6aa5687
...
524ebe7f2d
@ -187,14 +187,6 @@ public class PartnerOwnController extends BaseController {
|
|||||||
{
|
{
|
||||||
return success(partnerList.hotGoodsList(partnerId));
|
return success(partnerList.hotGoodsList(partnerId));
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 热销商品列表
|
|
||||||
*/
|
|
||||||
@GetMapping("/newHotGoodsList")
|
|
||||||
public CommonResult newHotGoodsList()
|
|
||||||
{
|
|
||||||
return success(partnerList.newHotGoodsList());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -20,7 +20,6 @@ import java.util.Map;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface AppInspectionPartnerMapper extends BaseMapper<ShopMallPartners> {
|
public interface AppInspectionPartnerMapper extends BaseMapper<ShopMallPartners> {
|
||||||
ShopMallPartners selectById(@Param("id") Long id);
|
ShopMallPartners selectById(@Param("id") Long id);
|
||||||
ShopMallPartners selectByIdNew();
|
|
||||||
IPage<PartnerListVo> partnerList(Page<PartnerListVo> page, @Param("vo") PartnerListQuery partnerListQuery);
|
IPage<PartnerListVo> partnerList(Page<PartnerListVo> page, @Param("vo") PartnerListQuery partnerListQuery);
|
||||||
PartnerListVo shopDetail(PartnerListQuery partnerListQuery);
|
PartnerListVo shopDetail(PartnerListQuery partnerListQuery);
|
||||||
void addSalesNum(@Param("partnerId") Long partnerId);
|
void addSalesNum(@Param("partnerId") Long partnerId);
|
||||||
@ -33,7 +32,6 @@ public interface AppInspectionPartnerMapper extends BaseMapper<ShopMallPartners>
|
|||||||
Integer allAmount(@Param("partnerId") Long partnerId);
|
Integer allAmount(@Param("partnerId") Long partnerId);
|
||||||
Integer todayAmount(@Param("partnerId") Long partnerId,@Param("timeStr") String timeStr);
|
Integer todayAmount(@Param("partnerId") Long partnerId,@Param("timeStr") String timeStr);
|
||||||
List<HotGoodsVo> hotGoodsList(@Param("partnerId") Long partnerId,@Param("dateStr")String dateStr);
|
List<HotGoodsVo> hotGoodsList(@Param("partnerId") Long partnerId,@Param("dateStr")String dateStr);
|
||||||
List<HotGoodsVo> newHotGoodsList(@Param("dateStr")String dateStr);
|
|
||||||
IPage<GoodsVo> manageGoodsList(Page<GoodsVo> page,@Param("partnerId") Long partnerId, @Param("isListing")String isListing,@Param("goodsTitle") String goodsTitle);
|
IPage<GoodsVo> manageGoodsList(Page<GoodsVo> page,@Param("partnerId") Long partnerId, @Param("isListing")String isListing,@Param("goodsTitle") String goodsTitle);
|
||||||
IPage<OrderAppDetail> orderList(Page<OrderAppDetail> page,@Param("partnerId") Long partnerId, @Param("phoneNum") String phoneNum,@Param("title") String title);
|
IPage<OrderAppDetail> orderList(Page<OrderAppDetail> page,@Param("partnerId") Long partnerId, @Param("phoneNum") String phoneNum,@Param("title") String title);
|
||||||
List<PartnerWorker> getWorkList(@Param("partnerId")Long partnerId, @Param("postId") Long postId, @Param("workName") String workName, @Param("phoneNum")String phoneNum);
|
List<PartnerWorker> getWorkList(@Param("partnerId")Long partnerId, @Param("postId") Long postId, @Param("workName") String workName, @Param("phoneNum")String phoneNum);
|
||||||
|
|||||||
@ -49,7 +49,6 @@ public interface AppInspectionPartnerService extends IService<ShopMallPartners>
|
|||||||
JSONObject newChartInfoRatio(String unit);
|
JSONObject newChartInfoRatio(String unit);
|
||||||
List<OrderInfo> orderInfo(Long partnerId);
|
List<OrderInfo> orderInfo(Long partnerId);
|
||||||
List<HotGoodsVo> hotGoodsList(Long partnerId);
|
List<HotGoodsVo> hotGoodsList(Long partnerId);
|
||||||
List<HotGoodsVo> newHotGoodsList();
|
|
||||||
void addGoods(ShopInspectionGoods goods) throws Exception;
|
void addGoods(ShopInspectionGoods goods) throws Exception;
|
||||||
IPage<GoodsVo> goodsList(Page<GoodsVo> page,Long partnerId, String isListing, String goodsTitle);
|
IPage<GoodsVo> goodsList(Page<GoodsVo> page,Long partnerId, String isListing, String goodsTitle);
|
||||||
List<JSONObject> canUseGoods(Long partnerId);
|
List<JSONObject> canUseGoods(Long partnerId);
|
||||||
|
|||||||
@ -983,11 +983,6 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl<AppInspectionPa
|
|||||||
String dateStr = DateUtil.format(new Date(), "yyyy-MM-dd");
|
String dateStr = DateUtil.format(new Date(), "yyyy-MM-dd");
|
||||||
return baseMapper.hotGoodsList(partnerId,dateStr);
|
return baseMapper.hotGoodsList(partnerId,dateStr);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public List<HotGoodsVo> newHotGoodsList() {
|
|
||||||
String dateStr = DateUtil.format(new Date(), "yyyy-MM-dd");
|
|
||||||
return baseMapper.newHotGoodsList(dateStr);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
|||||||
@ -6,9 +6,6 @@
|
|||||||
<select id="selectById" resultType="cn.iocoder.yudao.module.shop.entity.ShopMallPartners" >
|
<select id="selectById" resultType="cn.iocoder.yudao.module.shop.entity.ShopMallPartners" >
|
||||||
select * from shop_mall_partners where partner_id = #{id}
|
select * from shop_mall_partners where partner_id = #{id}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectByIdNew" resultType="cn.iocoder.yudao.module.shop.entity.ShopMallPartners" >
|
|
||||||
select * from shop_mall_partners
|
|
||||||
</select>
|
|
||||||
<select id="partnerList" parameterType="cn.iocoder.yudao.module.inspection.query.PartnerListQuery" resultType="cn.iocoder.yudao.module.inspection.vo.PartnerListVo">
|
<select id="partnerList" parameterType="cn.iocoder.yudao.module.inspection.query.PartnerListQuery" resultType="cn.iocoder.yudao.module.inspection.vo.PartnerListVo">
|
||||||
SELECT
|
SELECT
|
||||||
smp.partner_logo,
|
smp.partner_logo,
|
||||||
@ -146,20 +143,6 @@ GROUP BY
|
|||||||
goods.id
|
goods.id
|
||||||
order by salesNum desc
|
order by salesNum desc
|
||||||
</select>
|
</select>
|
||||||
<select id="newHotGoodsList" resultType="cn.iocoder.yudao.module.inspection.vo.HotGoodsVo">
|
|
||||||
SELECT
|
|
||||||
goods.title AS goodsName,
|
|
||||||
SUM( case when (ii.`status`='1' and ii.is_pass = '1') or (ii.`status`='0') then oi.goods_price else 0 end ) AS salesAmount,
|
|
||||||
SUM( case when (ii.`status`='1' and ii.is_pass = '1') or (ii.`status`='0') then 1 else 0 end ) AS salesNum
|
|
||||||
FROM
|
|
||||||
order_info oi
|
|
||||||
left join shop_inspection_goods goods on goods.id = oi.goods_id
|
|
||||||
left JOIN inspection_info ii on oi.id = ii.inspection_order_id
|
|
||||||
WHERE validation_time is not null and validation_time like concat(#{dateStr},'%')
|
|
||||||
GROUP BY
|
|
||||||
goods.id
|
|
||||||
order by salesNum desc
|
|
||||||
</select>
|
|
||||||
<select id="manageGoodsList" resultType="cn.iocoder.yudao.module.inspection.vo.GoodsVo">
|
<select id="manageGoodsList" resultType="cn.iocoder.yudao.module.inspection.vo.GoodsVo">
|
||||||
SELECT
|
SELECT
|
||||||
sig.id as goodsId,sig.title as goodsTitle,sig.image as goodsImage,sig.price,count(oi.id) as salesNum,sig.listing_status,sig.reject_reason
|
sig.id as goodsId,sig.title as goodsTitle,sig.image as goodsImage,sig.price,count(oi.id) as salesNum,sig.listing_status,sig.reject_reason
|
||||||
@ -428,7 +411,7 @@ FROM
|
|||||||
FROM
|
FROM
|
||||||
order_info oi
|
order_info oi
|
||||||
INNER JOIN inspection_info ii on oi.id = ii.inspection_order_id
|
INNER JOIN inspection_info ii on oi.id = ii.inspection_order_id
|
||||||
left join system_dict_data sdd on sdd.value = ii.customer_source
|
left join system_dict_data sdd on sdd.value = ii.customer_source and sdd.dict_type = concat('customer_source-',#{partnerId})
|
||||||
WHERE ii.create_time BETWEEN #{startTime} and #{endTime}
|
WHERE ii.create_time BETWEEN #{startTime} and #{endTime}
|
||||||
GROUP BY sdd.remark
|
GROUP BY sdd.remark
|
||||||
having count(1)>0
|
having count(1)>0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user