|
@@ -7,6 +7,7 @@ import com.fdkankan.sale.mapper.ICustomerAddressMapper;
|
|
import com.fdkankan.sale.service.ICustomerAddressService;
|
|
import com.fdkankan.sale.service.ICustomerAddressService;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -20,10 +21,13 @@ import org.springframework.stereotype.Service;
|
|
public class CustomerAddressServiceImpl extends ServiceImpl<ICustomerAddressMapper, CustomerAddress> implements ICustomerAddressService {
|
|
public class CustomerAddressServiceImpl extends ServiceImpl<ICustomerAddressMapper, CustomerAddress> implements ICustomerAddressService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public void setTrackingNumByRepairId(String repairId, String sendTrackingNum) {
|
|
|
|
|
|
+ public void setTrackingNumByRepairId(String repairId, Integer getType,String sendTrackingNum) {
|
|
LambdaUpdateWrapper<CustomerAddress> wrapper = new LambdaUpdateWrapper<>();
|
|
LambdaUpdateWrapper<CustomerAddress> wrapper = new LambdaUpdateWrapper<>();
|
|
wrapper.eq(CustomerAddress::getRepairId,repairId);
|
|
wrapper.eq(CustomerAddress::getRepairId,repairId);
|
|
- wrapper.set(CustomerAddress::getGetTrackingNum,sendTrackingNum);
|
|
|
|
|
|
+ wrapper.set(CustomerAddress::getGetType,getType);
|
|
|
|
+ if(!StringUtils.isEmpty(sendTrackingNum)){
|
|
|
|
+ wrapper.set(CustomerAddress::getGetTrackingNum,sendTrackingNum);
|
|
|
|
+ }
|
|
this.update(wrapper);
|
|
this.update(wrapper);
|
|
}
|
|
}
|
|
|
|
|