我的限时秒杀详情
This commit is contained in:
parent
47f589a3a5
commit
5c7c3e1470
|
@ -33,4 +33,12 @@ public class AppUserPackageDetailController {
|
|||
public Result getMyPackageDetail(UserPackageDetail userPackageDetail){
|
||||
return service.getMyPackageDetail(userPackageDetail);
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("/findMyFlashDetailList")
|
||||
@ApiOperation("查询限时秒杀详情列表")
|
||||
public Result findMyFlashDetailList(Long id){
|
||||
return service.findMyFlashDetailList(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,4 +27,6 @@ public interface UserPackageDetailDao extends BaseMapper<UserPackageDetail> {
|
|||
|
||||
int deleteDetailByMain(Long mainId);
|
||||
|
||||
UserPackageDetail findMyFlashDetailList(Long id);
|
||||
|
||||
}
|
|
@ -14,4 +14,5 @@ public interface UserPackageDetailService extends IService<UserPackageDetail> {
|
|||
Result getMyPackageDetail(UserPackageDetail userPackageDetail);
|
||||
UserPackageDetail findMassagePackageDetailsUsed(Long mainId);
|
||||
int deleteDetailByMain(Long mainId);
|
||||
Result findMyFlashDetailList(Long id);
|
||||
}
|
||||
|
|
|
@ -81,5 +81,11 @@ public class UserPackageDetailServiceImpl extends ServiceImpl<UserPackageDetailD
|
|||
return baseMapper.deleteDetailByMain(mainId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result findMyFlashDetailList(Long id){
|
||||
UserPackageDetail userPackageDetail = baseMapper.findMyFlashDetailList(id);
|
||||
return Result.success().put("data",userPackageDetail);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -223,4 +223,37 @@
|
|||
WHERE main_id = #{mainId}
|
||||
</update>
|
||||
|
||||
<select id="findMyFlashDetailList" resultType="com.sqx.modules.bl.order.entity.UserPackageDetail">
|
||||
select
|
||||
a.id,
|
||||
a.main_id,
|
||||
a.package_detail_id,
|
||||
a.massage_type_id,
|
||||
a.status,
|
||||
a.package_price,
|
||||
a.interval_days,
|
||||
a.create_time,
|
||||
a.title,
|
||||
a.massage_img,
|
||||
a.content,
|
||||
a.old_price,
|
||||
a.price,
|
||||
a.duration,
|
||||
a.is_sex,
|
||||
a.city,
|
||||
a.content_img,
|
||||
a.labels,
|
||||
a.parent_id,
|
||||
a.classify_id,
|
||||
a.apply_people,
|
||||
a.jianjie,
|
||||
a.level,
|
||||
m.sales
|
||||
from bl_user_package_detail a
|
||||
inner join bl_user_package b on a.main_id = b.id
|
||||
left join massage_type m on a.massage_type_id = m.massage_type_id
|
||||
where b.id = #{id}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue