1/19
This commit is contained in:
@@ -11,5 +11,6 @@ import lombok.Data;
|
||||
public class ShoppingCartQuery implements Query {
|
||||
private String customerSid; //客户
|
||||
private String affiliation; //类型
|
||||
private String brandId;
|
||||
|
||||
}
|
||||
|
||||
@@ -19,5 +19,5 @@ import java.util.List;
|
||||
*/
|
||||
@Mapper
|
||||
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
|
||||
List<ShoppingCartVo> ShoppingCartList(@Param("customerSid")String customerSid,@Param("affiliation")String affiliation);
|
||||
List<ShoppingCartVo> ShoppingCartList(@Param("customerSid")String customerSid,@Param("brandId")String brandId);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
from shopping_cart as r
|
||||
left join lpk_goods s on s.sid=r.goodsSid
|
||||
<where>
|
||||
r.customerSid =#{customerSid} and r.affiliation=#{affiliation}
|
||||
r.customerSid =#{customerSid} and r.affiliation=#{brandId}
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -92,7 +92,7 @@ public class ShoppingCartService extends MybatisBaseService<ShoppingCartMapper,
|
||||
}
|
||||
public ResultBean getGoodsWeight(ShoppingCartQuery query) {
|
||||
ResultBean rb=new ResultBean().fail();
|
||||
List<ShoppingCartVo> list= baseMapper.ShoppingCartList(query.getCustomerSid(),query.getAffiliation());
|
||||
List<ShoppingCartVo> list= baseMapper.ShoppingCartList(query.getCustomerSid(),query.getBrandId());
|
||||
double price =0;
|
||||
double weight =0;
|
||||
for(ShoppingCartVo vo:list){
|
||||
|
||||
Reference in New Issue
Block a user