feat:门店人员更新
This commit is contained in:
@@ -5,6 +5,8 @@ import com.cool.store.constants.CommonConstants;
|
||||
import com.cool.store.dao.*;
|
||||
import com.cool.store.dto.OpenCityDTO;
|
||||
import com.cool.store.dto.ocr.InvoiceDTO;
|
||||
import com.cool.store.dto.store.StoreUserPositionDTO;
|
||||
import com.cool.store.dto.store.StoreUserUpdateDTO;
|
||||
import com.cool.store.entity.*;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.IDCardSideEnum;
|
||||
@@ -20,6 +22,7 @@ import com.cool.store.request.ShopListSuccessOpenRequest;
|
||||
import com.cool.store.request.xfsgFirstOrderListRequest;
|
||||
import com.cool.store.response.MiniShopsResponse;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.response.caipin.StoreUserResponse;
|
||||
import com.cool.store.response.xfsgFirstOderListResponse;
|
||||
import com.cool.store.service.*;
|
||||
import com.cool.store.utils.poi.ExcelUtil;
|
||||
@@ -29,6 +32,7 @@ import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@@ -77,6 +81,10 @@ public class TestController {
|
||||
|
||||
@Resource
|
||||
ShopStageInfoDAO shopStageInfoDAO;
|
||||
@Resource
|
||||
ThirdFoodService thirdFoodService;
|
||||
@Autowired
|
||||
StoreService storeService;
|
||||
|
||||
@PostMapping("/getFirstOrders")
|
||||
public ResponseResult<xfsgFirstOderListResponse> getFirstOrders(@RequestBody xfsgFirstOrderListRequest storeCodeList) {
|
||||
@@ -354,4 +362,11 @@ public class TestController {
|
||||
public void initTallyBook() {
|
||||
xxlJobHandler.initTallyBook();
|
||||
}
|
||||
|
||||
@GetMapping("/pushStoreUser")
|
||||
public void pushStoreUser(String storeCode){
|
||||
List<StoreUserPositionDTO> storeUser = storeService.getStoreUser(Arrays.asList(storeCode));
|
||||
List<StoreUserUpdateDTO> storeUserUpdateDTOS = JSONObject.parseArray(JSONObject.toJSONString(storeUser), StoreUserUpdateDTO.class);
|
||||
StoreUserResponse storeUserResponse = thirdFoodService.pushStoreUser(storeUserUpdateDTOS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ yls.api.auth.secret=3b56198f096d4009072c927c96fbc8b6
|
||||
#新掌柜账号
|
||||
xzg.api.auth.url=http://webapi.zhengxinfood.com
|
||||
|
||||
zx.food.url=https://datacenter.zhengxinfood.com
|
||||
zx.food.url=https://datacenter.zhengxinfood.com/interface
|
||||
|
||||
cool.api.appKey=k8J7fG2qR5tY9vX3
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
|
||||
@@ -123,7 +123,7 @@ yls.api.auth.secret=3b56198f096d4009072c927c96fbc8b6
|
||||
#新掌柜账号
|
||||
xzg.api.auth.url=http://webapi.zhengxinfood.com
|
||||
|
||||
zx.food.url=https://datacenter.zhengxinfood.com
|
||||
zx.food.url=https://datacenter.zhengxinfood.com/interface
|
||||
|
||||
cool.api.appKey=k8J7fG2qR5tY9vX3
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
|
||||
@@ -121,7 +121,7 @@ zx.big.data.appSecret=35b8b9a400b4430fa022190be0913cd6
|
||||
xzg.api.auth.url=http://webapi.zhengxinfood.com
|
||||
|
||||
|
||||
zx.food.url=https://datacenter.zhengxinshipin.com
|
||||
zx.food.url=https://datacenter.zhengxinshipin.com/interface
|
||||
|
||||
cool.api.appKey=k8J7fG2qR5tY9vX3
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
|
||||
@@ -124,7 +124,7 @@ yls.api.auth.secret=3b56198f096d4009072c927c96fbc8b6
|
||||
#新掌柜账号
|
||||
xzg.api.auth.url=http://webapi.zhengxinfood.com
|
||||
|
||||
zx.food.url=https://datacenter.zhengxinfood.com
|
||||
zx.food.url=https://datacenter.zhengxinfood.com/interface
|
||||
|
||||
cool.api.appKey=k8J7fG2qR5tY9vX3
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
|
||||
Reference in New Issue
Block a user