mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-25 01:29:47 +08:00
新增 批量推送第三方平台订单接口
This commit is contained in:
@@ -25,6 +25,7 @@ import com.jsowell.pile.vo.uniapp.customer.MemberBalanceVO;
|
||||
import com.jsowell.pile.vo.web.PileStationVO;
|
||||
import com.jsowell.service.OrderService;
|
||||
import com.jsowell.service.TempService;
|
||||
import com.jsowell.thirdparty.platform.dto.PushOrderDTO;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -890,4 +891,22 @@ public class TempController extends BaseController {
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据时间区间批量推送订单
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/pushOrderInfoBatch")
|
||||
public RestApiResponse<?> pushOrderInfoBatch(@RequestBody PushOrderDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
tempService.pushOrderInfoBatch(dto);
|
||||
response = new RestApiResponse<>();
|
||||
} catch (Exception e) {
|
||||
logger.error("青海平台推送订单信息 error", e);
|
||||
}
|
||||
logger.info("青海平台推送订单信息 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user