wangpengfei 5 months ago
parent
commit
e650235b82
  1. 4
      src/main/java/com/yxt/yythmall/api/appletgiftbag/GiftBagGoodss.java
  2. 6
      src/main/java/com/yxt/yythmall/biz/customerinvoice/CustomerInvoiceService.java
  3. 5
      src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java

4
src/main/java/com/yxt/yythmall/api/appletgiftbag/GiftBagGoodss.java

@ -47,10 +47,10 @@ public class GiftBagGoodss {
e.printStackTrace(); e.printStackTrace();
} }
} }
int js = 1; double js = 1;
if (StrUtil.isNotBlank(weight)) { if (StrUtil.isNotBlank(weight)) {
try { try {
js = Integer.parseInt(weight); js = Double.parseDouble(weight);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }

6
src/main/java/com/yxt/yythmall/biz/customerinvoice/CustomerInvoiceService.java

@ -51,8 +51,10 @@ public class CustomerInvoiceService extends MybatisBaseService<CustomerInvoiceMa
if(dto.getIsDefault().equals("1")){ if(dto.getIsDefault().equals("1")){
CustomerInvoice customerInvoice = baseMapper.selectOne(new QueryWrapper<CustomerInvoice>().eq("customerSid",dto.getCustomerSid()) CustomerInvoice customerInvoice = baseMapper.selectOne(new QueryWrapper<CustomerInvoice>().eq("customerSid",dto.getCustomerSid())
.eq("isDefault","1")); .eq("isDefault","1"));
customerInvoice.setIsDefault("0"); if(customerInvoice!=null){
baseMapper.updateById(customerInvoice); customerInvoice.setIsDefault("0");
baseMapper.updateById(customerInvoice);
}
} }
if (StringUtils.isNotBlank(dto.getSid())) { if (StringUtils.isNotBlank(dto.getSid())) {
String dtoSid = dto.getSid(); String dtoSid = dto.getSid();

5
src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java

@ -90,7 +90,7 @@ public class SaTokenConfigure implements WebMvcConfigurer {
.excludePathPatterns("/shoppingcart/shoppingCartList") .excludePathPatterns("/shoppingcart/shoppingCartList")
.excludePathPatterns("/shoppingcart/delShoppingCart/**") .excludePathPatterns("/shoppingcart/delShoppingCart/**")
.excludePathPatterns("/lpkgoods/vegeCellarTypeList") .excludePathPatterns("/lpkgoods/vegeCellarTypeList")
.excludePathPatterns("/vegetablecellar/addGoods/**") // .excludePathPatterns("/vegetablecellar/addGoods/**")
.excludePathPatterns("/lpkgoods/vegeCellarList") .excludePathPatterns("/lpkgoods/vegeCellarList")
.excludePathPatterns("/customerstore/getStoreBySid/**") .excludePathPatterns("/customerstore/getStoreBySid/**")
.excludePathPatterns("/lpkgiftcard/bindAllCard") .excludePathPatterns("/lpkgiftcard/bindAllCard")
@ -116,7 +116,6 @@ public class SaTokenConfigure implements WebMvcConfigurer {
.excludePathPatterns("/invoicetype/listAll") .excludePathPatterns("/invoicetype/listAll")
.excludePathPatterns("/invoicerecords/save") .excludePathPatterns("/invoicerecords/save")
.excludePathPatterns("/lpkgoods/vegeCellarInvalidList") .excludePathPatterns("/lpkgoods/vegeCellarInvalidList")
.excludePathPatterns("//wxapi/**") .excludePathPatterns("//wxapi/**");
;
} }
} }

Loading…
Cancel
Save