礼包优化
This commit is contained in:
@@ -43,7 +43,7 @@ public class LpkGiftBagRest {
|
||||
}
|
||||
|
||||
@ApiOperation("礼包初始化")
|
||||
@PostMapping("/giftBagInit/{sid}")
|
||||
@GetMapping("/giftBagInit/{sid}")
|
||||
public ResultBean giftBagInit(@PathVariable String sid) {
|
||||
return lpkGiftBagService.giftBagInit(sid);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.yxt.yyth.api.lpkgiftbag.LpkGiftBag;
|
||||
import com.yxt.yyth.api.lpkgiftbaggoods.LpkGiftBagGoods;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -15,7 +16,7 @@ import java.util.List;
|
||||
public interface LpkGiftBagGoodsMapper extends BaseMapper<LpkGiftBagGoods> {
|
||||
|
||||
|
||||
int deleteGoodsByBagSid(String sid);
|
||||
int deleteGoodsByBagSid(@Param("sid") String sid);
|
||||
|
||||
List<LpkGiftBagGoods> getRecordsByBagSid(String sid);
|
||||
List<LpkGiftBagGoods> getRecordsByBagSid(@Param("sid") String sid);
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<delete id="deleteGoodsByBagSid">
|
||||
DELETE
|
||||
FROM lpk_giftbag_goods
|
||||
WHERE giftbagSid = # {sid}
|
||||
WHERE giftbagSid = #{sid}
|
||||
</delete>
|
||||
<select id="getRecordsByBagSid" resultType="com.yxt.yyth.api.lpkgiftbaggoods.LpkGiftBagGoods">
|
||||
select *
|
||||
from lpk_giftbag_goods
|
||||
WHERE giftbagSid = # {sid}
|
||||
WHERE giftbagSid = #{sid}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user