|
@@ -18,6 +18,7 @@ import com.fjhx.customer.entity.customer.dto.CustomerDto;
|
|
|
import com.fjhx.customer.entity.customer.po.CustomerUser;
|
|
|
import com.fjhx.customer.entity.xiaoman.dto.XiaomanCustomerSelectDto;
|
|
|
import com.fjhx.customer.entity.xiaoman.po.XiaomanConfig;
|
|
|
+import com.fjhx.customer.entity.xiaoman.po.XiaomanCustomer;
|
|
|
import com.fjhx.customer.entity.xiaoman.vo.CustomerListApiVo;
|
|
|
import com.fjhx.customer.entity.xiaoman.vo.XiaomanCustomerVo;
|
|
|
import com.fjhx.customer.entity.xiaoman.vo.XiaomanUpdateInfoVO;
|
|
@@ -186,6 +187,16 @@ public class XiaomanApiServiceImpl implements XiaomanApiService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateSingle(Long companyId) {
|
|
|
+ //先更新一下数据字典
|
|
|
+ getSelectorData();
|
|
|
+ List<XiaomanCustomerVo> list = xiaomanCustomerService.getList(new XiaomanCustomerSelectDto());
|
|
|
+ XiaomanCustomerVo detail = xiaomanCustomerService.detail(companyId);
|
|
|
+ XiaomanCustomer customer = BeanUtil.copyProperties(detail, XiaomanCustomer.class);
|
|
|
+ xiaomanCustomerService.processCustomer(customer, true, false);
|
|
|
+ }
|
|
|
+
|
|
|
private static Map<String, Object> initPageParams(int page) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("start_index", page);
|