swagger
							parent
							
								
									e0165d6fe2
								
							
						
					
					
						commit
						9d1c4c5641
					
				| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.annotation; | package com.ils.oms.annotation; | ||||||
| 
 | 
 | ||||||
| import java.lang.annotation.*; | import java.lang.annotation.*; | ||||||
| 
 | 
 | ||||||
| @ -0,0 +1,4 @@ | |||||||
|  | package com.ils.oms.api; | ||||||
|  | 
 | ||||||
|  | public interface SomeApi { | ||||||
|  | } | ||||||
| @ -0,0 +1,4 @@ | |||||||
|  | package com.ils.oms.appservice; | ||||||
|  | 
 | ||||||
|  | public class SomeAppService { | ||||||
|  | } | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.common; | package com.ils.oms.common; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * 通用常量 |  * 通用常量 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,7 +1,7 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.ils.order.service.IIlsOrderService; | import com.ils.oms.service.IIlsOrderService; | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| 
 | 
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||||
| @ -1,11 +1,11 @@ | |||||||
| package org.ils.order.controller; | package com.ils.oms.controller; | ||||||
| 
 | 
 | ||||||
| import io.swagger.annotations.Api; | import io.swagger.annotations.Api; | ||||||
| import io.swagger.annotations.ApiOperation; | import io.swagger.annotations.ApiOperation; | ||||||
| import lombok.extern.slf4j.Slf4j; | import lombok.extern.slf4j.Slf4j; | ||||||
| import org.ils.order.dto.dto.MainLinePageDto; | import com.ils.oms.dto.MainLinePageDto; | ||||||
| import org.ils.order.result.Result; | import com.ils.oms.result.Result; | ||||||
| import org.ils.order.service.impl.MainLineServiceImpl; | import com.ils.oms.service.impl.MainLineServiceImpl; | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||||
| import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||||
| 
 | 
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.dto.dto; | package com.ils.oms.dto; | ||||||
| 
 | 
 | ||||||
| import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.ApiModelProperty; | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.dto.dto; | package com.ils.oms.dto; | ||||||
| 
 | 
 | ||||||
| import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.ApiModelProperty; | ||||||
| import lombok.Builder; | import lombok.Builder; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.dto.dto; | package com.ils.oms.dto; | ||||||
| 
 | 
 | ||||||
| import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.ApiModelProperty; | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.dto.dto; | package com.ils.oms.dto; | ||||||
| 
 | 
 | ||||||
| import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.ApiModelProperty; | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.annotation.FieldFill; | import com.baomidou.mybatisplus.annotation.FieldFill; | ||||||
| import com.baomidou.mybatisplus.annotation.TableField; | import com.baomidou.mybatisplus.annotation.TableField; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| import com.baomidou.mybatisplus.annotation.IdType; | import com.baomidou.mybatisplus.annotation.IdType; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import com.fasterxml.jackson.annotation.JsonFormat; | import com.fasterxml.jackson.annotation.JsonFormat; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| import com.baomidou.mybatisplus.annotation.IdType; | import com.baomidou.mybatisplus.annotation.IdType; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| import com.baomidou.mybatisplus.annotation.IdType; | import com.baomidou.mybatisplus.annotation.IdType; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| import com.baomidou.mybatisplus.annotation.IdType; | import com.baomidou.mybatisplus.annotation.IdType; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.entity; | package com.ils.oms.entity; | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| import com.baomidou.mybatisplus.annotation.IdType; | import com.baomidou.mybatisplus.annotation.IdType; | ||||||
| @ -0,0 +1,27 @@ | |||||||
|  | //package com.ils.oms.exceptions;
 | ||||||
|  | //
 | ||||||
|  | //import lombok.extern.slf4j.Slf4j;
 | ||||||
|  | //import com.ils.oms.result.Result;
 | ||||||
|  | //import org.springframework.web.bind.annotation.ControllerAdvice;
 | ||||||
|  | //import org.springframework.web.bind.annotation.ExceptionHandler;
 | ||||||
|  | //import org.springframework.web.bind.annotation.ResponseBody;
 | ||||||
|  | //
 | ||||||
|  | ///**
 | ||||||
|  | // * 全局异常捕获
 | ||||||
|  | // * @author chenjf
 | ||||||
|  | // */
 | ||||||
|  | //@Slf4j
 | ||||||
|  | //@ControllerAdvice
 | ||||||
|  | //public class GlobalExceptionHandler {
 | ||||||
|  | //    /**
 | ||||||
|  | //     * 处理除0异常捕获
 | ||||||
|  | //     * @param exception
 | ||||||
|  | //     * @return
 | ||||||
|  | //     */
 | ||||||
|  | //    @ExceptionHandler(value = Exception.class)
 | ||||||
|  | //    @ResponseBody
 | ||||||
|  | //    public Result exceptionHandler(Exception exception){
 | ||||||
|  | //        log.error("exceptionHandler: {}", exception.getMessage());
 | ||||||
|  | //        return Result.error(exception.getMessage());
 | ||||||
|  | //    }
 | ||||||
|  | //}
 | ||||||
| @ -0,0 +1,41 @@ | |||||||
|  | //package com.ils.oms.listener.rabbitmq;
 | ||||||
|  | //
 | ||||||
|  | //import com.ils.oms.properties.BaseConfigProperties;
 | ||||||
|  | //import org.springframework.amqp.core.*;
 | ||||||
|  | //import org.springframework.beans.factory.annotation.Autowired;
 | ||||||
|  | //import org.springframework.context.annotation.Bean;
 | ||||||
|  | //import org.springframework.context.annotation.Configuration;
 | ||||||
|  | //
 | ||||||
|  | ///**
 | ||||||
|  | // * rabbitmq 绑定队列
 | ||||||
|  | // * @author chenjf
 | ||||||
|  | // * @datetime 2023/08/09
 | ||||||
|  | // */
 | ||||||
|  | //@Configuration
 | ||||||
|  | //public class RabbitQueueConfig {
 | ||||||
|  | //
 | ||||||
|  | //    @Autowired
 | ||||||
|  | //    private BaseConfigProperties baseConfig;
 | ||||||
|  | //
 | ||||||
|  | //    private  final static String EVENT = "events.";
 | ||||||
|  | //
 | ||||||
|  | //    @Bean
 | ||||||
|  | //    public FanoutExchange OrderExchange() {
 | ||||||
|  | //        return new FanoutExchange ( EVENT + baseConfig.getOrderQueue(), true, false);
 | ||||||
|  | //    }
 | ||||||
|  | //
 | ||||||
|  | //
 | ||||||
|  | //    /**
 | ||||||
|  | //     * 订单队列
 | ||||||
|  | //     */
 | ||||||
|  | //    @Bean
 | ||||||
|  | //    public Queue IlsOrderQueue() {
 | ||||||
|  | //        return new Queue(baseConfig.getOrderQueue());
 | ||||||
|  | //    }
 | ||||||
|  | //
 | ||||||
|  | //
 | ||||||
|  | //    @Bean
 | ||||||
|  | //    public Binding OrderBinding() {
 | ||||||
|  | //        return BindingBuilder.bind(IlsOrderQueue()).to(OrderExchange());
 | ||||||
|  | //    }
 | ||||||
|  | //}
 | ||||||
| @ -0,0 +1,23 @@ | |||||||
|  | //package com.ils.oms.listener.rabbitmq;
 | ||||||
|  | //
 | ||||||
|  | //
 | ||||||
|  | //import com.z.common.mq.EventMessage;
 | ||||||
|  | //import lombok.extern.slf4j.Slf4j;
 | ||||||
|  | //import org.springframework.amqp.rabbit.annotation.RabbitHandler;
 | ||||||
|  | //import org.springframework.amqp.rabbit.annotation.RabbitListener;
 | ||||||
|  | //import org.springframework.stereotype.Component;
 | ||||||
|  | //
 | ||||||
|  | ///**
 | ||||||
|  | // * 订单队列接收消息
 | ||||||
|  | // * @author chenjf
 | ||||||
|  | // * @datetime 2023/08/09
 | ||||||
|  | // */
 | ||||||
|  | //@Slf4j
 | ||||||
|  | //@Component
 | ||||||
|  | //@RabbitListener(queues = "${spring.rabbitmq.queues.orderQueue}")
 | ||||||
|  | //public class RabbitReceiver {
 | ||||||
|  | //    @RabbitHandler
 | ||||||
|  | //    public void process(EventMessage message) {
 | ||||||
|  | //        log.info("Receiver: {}", message.getPayload());
 | ||||||
|  | //    }
 | ||||||
|  | //}
 | ||||||
| @ -0,0 +1,28 @@ | |||||||
|  | //package com.ils.oms.listener.rabbitmq;
 | ||||||
|  | //
 | ||||||
|  | //import com.ils.oms.properties.BaseConfigProperties;
 | ||||||
|  | //import com.z.common.mq.EventPublisher;
 | ||||||
|  | //import org.springframework.beans.factory.annotation.Autowired;
 | ||||||
|  | //import org.springframework.stereotype.Component;
 | ||||||
|  | //
 | ||||||
|  | //
 | ||||||
|  | ///**
 | ||||||
|  | // * rabbitmq 发送消息
 | ||||||
|  | // * @author chenjf
 | ||||||
|  | // * @datetime 2023/08/09
 | ||||||
|  | // */
 | ||||||
|  | //@Component
 | ||||||
|  | //public class RabbitSender {
 | ||||||
|  | //    @Autowired
 | ||||||
|  | //    private EventPublisher eventPublisher;
 | ||||||
|  | //    @Autowired
 | ||||||
|  | //    private BaseConfigProperties baseConfig ;
 | ||||||
|  | //    /**
 | ||||||
|  | //     *  队列发送消息
 | ||||||
|  | //     * @param exChangeName 交换机名称
 | ||||||
|  | //     * @param json json字符串
 | ||||||
|  | //     */
 | ||||||
|  | //    public void sendOrderQueue(String exChangeName,String json) {
 | ||||||
|  | //        this.eventPublisher.publish( exChangeName, json);
 | ||||||
|  | //    }
 | ||||||
|  | //}
 | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsCustomerDO; | import com.ils.oms.entity.IlsCustomerDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,9 +1,9 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| import org.apache.ibatis.annotations.Mapper; | import org.apache.ibatis.annotations.Mapper; | ||||||
| import org.ils.order.entity.IlsMainLine; | import com.ils.oms.entity.IlsMainLine; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @Mapper | @Mapper | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderAddressDO; | import com.ils.oms.entity.IlsOrderAddressDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderFeeDO; | import com.ils.oms.entity.IlsOrderFeeDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderItemDO; | import com.ils.oms.entity.IlsOrderItemDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderLabelDO; | import com.ils.oms.entity.IlsOrderLabelDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderDO; | import com.ils.oms.entity.IlsOrderDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderParcelDO; | import com.ils.oms.entity.IlsOrderParcelDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderUploadDO; | import com.ils.oms.entity.IlsOrderUploadDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsProductDO; | import com.ils.oms.entity.IlsProductDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.mapper; | package com.ils.oms.mapper; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsProductValidationDO; | import com.ils.oms.entity.IlsProductValidationDO; | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -0,0 +1,21 @@ | |||||||
|  | //package com.ils.oms.properties;
 | ||||||
|  | //
 | ||||||
|  | //import lombok.Data;
 | ||||||
|  | //import org.springframework.beans.factory.annotation.Value;
 | ||||||
|  | //import org.springframework.stereotype.Component;
 | ||||||
|  | //
 | ||||||
|  | ///**
 | ||||||
|  | // * 系统获取yml基本参数
 | ||||||
|  | // * @author chenjf
 | ||||||
|  | // * @datetime 2023/08/09
 | ||||||
|  | // */
 | ||||||
|  | //@Component
 | ||||||
|  | //@Data
 | ||||||
|  | //public class BaseConfigProperties {
 | ||||||
|  | //
 | ||||||
|  | //    @Value("${spring.rabbitmq.queues.orderQueue}")
 | ||||||
|  | //    private String orderQueue;
 | ||||||
|  | //
 | ||||||
|  | //    @Value("${ils.other.host.baiduUrl}")
 | ||||||
|  | //    private String baiduUrl;
 | ||||||
|  | //}
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.result; | package com.ils.oms.result; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * |  * | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.result; | package com.ils.oms.result; | ||||||
| 
 | 
 | ||||||
| import java.util.Map; | import java.util.Map; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.result; | package com.ils.oms.result; | ||||||
| 
 | 
 | ||||||
| import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.ApiModelProperty; | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
| import org.ils.order.common.CommonConstant; | import com.ils.oms.common.CommonConstant; | ||||||
| 
 | 
 | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
| 
 | 
 | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsCustomerDO; | import com.ils.oms.entity.IlsCustomerDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderAddressDO; | import com.ils.oms.entity.IlsOrderAddressDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderFeeDO; | import com.ils.oms.entity.IlsOrderFeeDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderItemDO; | import com.ils.oms.entity.IlsOrderItemDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderLabelDO; | import com.ils.oms.entity.IlsOrderLabelDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderParcelDO; | import com.ils.oms.entity.IlsOrderParcelDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderDO; | import com.ils.oms.entity.IlsOrderDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderUploadDO; | import com.ils.oms.entity.IlsOrderUploadDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsProductDO; | import com.ils.oms.entity.IlsProductDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,6 +1,6 @@ | |||||||
| package org.ils.order.service; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsProductValidationDO; | import com.ils.oms.entity.IlsProductValidationDO; | ||||||
| import com.baomidou.mybatisplus.extension.service.IService; | import com.baomidou.mybatisplus.extension.service.IService; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import org.ils.order.dto.dto.MainLineDto; | import com.ils.oms.dto.MainLineDto; | ||||||
| import org.ils.order.dto.dto.MainLinePageDto; | import com.ils.oms.dto.MainLinePageDto; | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  * 计费引擎主线计费主线模型接口 |  * 计费引擎主线计费主线模型接口 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import lombok.extern.slf4j.Slf4j; | import lombok.extern.slf4j.Slf4j; | ||||||
| import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsCustomerDO; | import com.ils.oms.service.IIlsCustomerService; | ||||||
| import org.ils.order.mapper.IlsCustomerMapper; | import com.ils.oms.entity.IlsCustomerDO; | ||||||
| import org.ils.order.service.IIlsCustomerService; | import com.ils.oms.mapper.IlsCustomerMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderAddressDO; | import com.ils.oms.service.IIlsOrderAddressService; | ||||||
| import org.ils.order.mapper.IlsOrderAddressMapper; | import com.ils.oms.entity.IlsOrderAddressDO; | ||||||
| import org.ils.order.service.IIlsOrderAddressService; | import com.ils.oms.mapper.IlsOrderAddressMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderFeeDO; | import com.ils.oms.service.IIlsOrderFeeService; | ||||||
| import org.ils.order.mapper.IlsOrderFeeMapper; | import com.ils.oms.entity.IlsOrderFeeDO; | ||||||
| import org.ils.order.service.IIlsOrderFeeService; | import com.ils.oms.mapper.IlsOrderFeeMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderItemDO; | import com.ils.oms.service.IIlsOrderItemService; | ||||||
| import org.ils.order.mapper.IlsOrderItemMapper; | import com.ils.oms.entity.IlsOrderItemDO; | ||||||
| import org.ils.order.service.IIlsOrderItemService; | import com.ils.oms.mapper.IlsOrderItemMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderLabelDO; | import com.ils.oms.service.IIlsOrderLabelService; | ||||||
| import org.ils.order.mapper.IlsOrderLabelMapper; | import com.ils.oms.entity.IlsOrderLabelDO; | ||||||
| import org.ils.order.service.IIlsOrderLabelService; | import com.ils.oms.mapper.IlsOrderLabelMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderParcelDO; | import com.ils.oms.service.IIlsOrderParcelService; | ||||||
| import org.ils.order.mapper.IlsOrderParcelMapper; | import com.ils.oms.entity.IlsOrderParcelDO; | ||||||
| import org.ils.order.service.IIlsOrderParcelService; | import com.ils.oms.mapper.IlsOrderParcelMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderDO; | import com.ils.oms.service.IIlsOrderService; | ||||||
| import org.ils.order.mapper.IlsOrderMapper; | import com.ils.oms.entity.IlsOrderDO; | ||||||
| import org.ils.order.service.IIlsOrderService; | import com.ils.oms.mapper.IlsOrderMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsOrderUploadDO; | import com.ils.oms.service.IIlsOrderUploadService; | ||||||
| import org.ils.order.mapper.IlsOrderUploadMapper; | import com.ils.oms.entity.IlsOrderUploadDO; | ||||||
| import org.ils.order.service.IIlsOrderUploadService; | import com.ils.oms.mapper.IlsOrderUploadMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsProductDO; | import com.ils.oms.service.IIlsProductService; | ||||||
| import org.ils.order.mapper.IlsProductMapper; | import com.ils.oms.entity.IlsProductDO; | ||||||
| import org.ils.order.service.IIlsProductService; | import com.ils.oms.mapper.IlsProductMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,8 +1,8 @@ | |||||||
| package org.ils.order.service.impl; | package com.ils.oms.service.impl; | ||||||
| 
 | 
 | ||||||
| import org.ils.order.entity.IlsProductValidationDO; | import com.ils.oms.service.IIlsProductValidationService; | ||||||
| import org.ils.order.mapper.IlsProductValidationMapper; | import com.ils.oms.entity.IlsProductValidationDO; | ||||||
| import org.ils.order.service.IIlsProductValidationService; | import com.ils.oms.mapper.IlsProductValidationMapper; | ||||||
| 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; | ||||||
| 
 | 
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.utils; | package com.ils.oms.utils; | ||||||
| 
 | 
 | ||||||
| import cn.hutool.core.date.DatePattern; | import cn.hutool.core.date.DatePattern; | ||||||
| import cn.hutool.core.date.DateTime; | import cn.hutool.core.date.DateTime; | ||||||
| @ -1,4 +1,4 @@ | |||||||
| package org.ils.order.utils; | package com.ils.oms.utils; | ||||||
| 
 | 
 | ||||||
| import org.springframework.beans.BeansException; | import org.springframework.beans.BeansException; | ||||||
| import org.springframework.context.ApplicationContext; | import org.springframework.context.ApplicationContext; | ||||||
| @ -1,24 +0,0 @@ | |||||||
| package org.ils.order.config; |  | ||||||
| 
 |  | ||||||
| import org.springframework.context.annotation.Configuration; |  | ||||||
| import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; |  | ||||||
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * @author chenjf |  | ||||||
|  */ |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| @Configuration |  | ||||||
| public class WebMvcConfig implements WebMvcConfigurer { |  | ||||||
|     @Override |  | ||||||
|     public void addResourceHandlers(ResourceHandlerRegistry registry) { |  | ||||||
|         registry.addResourceHandler("/**").addResourceLocations("classpath:/static/"); |  | ||||||
|         registry.addResourceHandler("swagger-ui.html") |  | ||||||
|                 .addResourceLocations("classpath:/META-INF/resources/"); |  | ||||||
|         registry.addResourceHandler("/webjars/**") |  | ||||||
|                 .addResourceLocations("classpath:/META-INF/resources/webjars/"); |  | ||||||
|         registry.addResourceHandler("doc.html") |  | ||||||
|                 .addResourceLocations("classpath:/META-INF/resources/"); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,27 +0,0 @@ | |||||||
| package org.ils.order.exceptions; |  | ||||||
| 
 |  | ||||||
| import lombok.extern.slf4j.Slf4j; |  | ||||||
| import org.ils.order.result.Result; |  | ||||||
| import org.springframework.web.bind.annotation.ControllerAdvice; |  | ||||||
| import org.springframework.web.bind.annotation.ExceptionHandler; |  | ||||||
| import org.springframework.web.bind.annotation.ResponseBody; |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * 全局异常捕获 |  | ||||||
|  * @author chenjf |  | ||||||
|  */ |  | ||||||
| @Slf4j |  | ||||||
| @ControllerAdvice |  | ||||||
| public class GlobalExceptionHandler { |  | ||||||
|     /** |  | ||||||
|      * 处理除0异常捕获 |  | ||||||
|      * @param exception |  | ||||||
|      * @return |  | ||||||
|      */ |  | ||||||
|     @ExceptionHandler(value = Exception.class) |  | ||||||
|     @ResponseBody |  | ||||||
|     public Result exceptionHandler(Exception exception){ |  | ||||||
|         log.error("exceptionHandler: {}", exception.getMessage()); |  | ||||||
|         return Result.error(exception.getMessage()); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,41 +0,0 @@ | |||||||
| package org.ils.order.listener.rabbitmq; |  | ||||||
| 
 |  | ||||||
| import org.ils.order.properties.BaseConfigProperties; |  | ||||||
| import org.springframework.amqp.core.*; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.context.annotation.Bean; |  | ||||||
| import org.springframework.context.annotation.Configuration; |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * rabbitmq 绑定队列 |  | ||||||
|  * @author chenjf |  | ||||||
|  * @datetime 2023/08/09 |  | ||||||
|  */ |  | ||||||
| @Configuration |  | ||||||
| public class RabbitQueueConfig { |  | ||||||
| 
 |  | ||||||
|     @Autowired |  | ||||||
|     private BaseConfigProperties baseConfig; |  | ||||||
| 
 |  | ||||||
|     private  final static String EVENT = "events."; |  | ||||||
| 
 |  | ||||||
|     @Bean |  | ||||||
|     public FanoutExchange OrderExchange() { |  | ||||||
|         return new FanoutExchange ( EVENT + baseConfig.getOrderQueue(), true, false); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|     /** |  | ||||||
|      * 订单队列 |  | ||||||
|      */ |  | ||||||
|     @Bean |  | ||||||
|     public Queue IlsOrderQueue() { |  | ||||||
|         return new Queue(baseConfig.getOrderQueue()); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|     @Bean |  | ||||||
|     public Binding OrderBinding() { |  | ||||||
|         return BindingBuilder.bind(IlsOrderQueue()).to(OrderExchange()); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,23 +0,0 @@ | |||||||
| package org.ils.order.listener.rabbitmq; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| import com.z.common.mq.EventMessage; |  | ||||||
| import lombok.extern.slf4j.Slf4j; |  | ||||||
| import org.springframework.amqp.rabbit.annotation.RabbitHandler; |  | ||||||
| import org.springframework.amqp.rabbit.annotation.RabbitListener; |  | ||||||
| import org.springframework.stereotype.Component; |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * 订单队列接收消息 |  | ||||||
|  * @author chenjf |  | ||||||
|  * @datetime 2023/08/09 |  | ||||||
|  */ |  | ||||||
| @Slf4j |  | ||||||
| @Component |  | ||||||
| @RabbitListener(queues = "${spring.rabbitmq.queues.orderQueue}") |  | ||||||
| public class RabbitReceiver { |  | ||||||
|     @RabbitHandler |  | ||||||
|     public void process(EventMessage message) { |  | ||||||
|         log.info("Receiver: {}", message.getPayload()); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,29 +0,0 @@ | |||||||
| package org.ils.order.listener.rabbitmq; |  | ||||||
| 
 |  | ||||||
| import com.z.common.mq.EventPublisher; |  | ||||||
| import org.ils.order.properties.BaseConfigProperties; |  | ||||||
| import org.springframework.amqp.core.AmqpTemplate; |  | ||||||
| import org.springframework.beans.factory.annotation.Autowired; |  | ||||||
| import org.springframework.stereotype.Component; |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * rabbitmq 发送消息 |  | ||||||
|  * @author chenjf |  | ||||||
|  * @datetime 2023/08/09 |  | ||||||
|  */ |  | ||||||
| @Component |  | ||||||
| public class RabbitSender { |  | ||||||
|     @Autowired |  | ||||||
|     private EventPublisher eventPublisher; |  | ||||||
|     @Autowired |  | ||||||
|     private BaseConfigProperties baseConfig ; |  | ||||||
|     /** |  | ||||||
|      *  队列发送消息 |  | ||||||
|      * @param exChangeName 交换机名称 |  | ||||||
|      * @param json json字符串 |  | ||||||
|      */ |  | ||||||
|     public void sendOrderQueue(String exChangeName,String json) { |  | ||||||
|         this.eventPublisher.publish( exChangeName, json); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,21 +0,0 @@ | |||||||
| package org.ils.order.properties; |  | ||||||
| 
 |  | ||||||
| import lombok.Data; |  | ||||||
| import org.springframework.beans.factory.annotation.Value; |  | ||||||
| import org.springframework.stereotype.Component; |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * 系统获取yml基本参数 |  | ||||||
|  * @author chenjf |  | ||||||
|  * @datetime 2023/08/09 |  | ||||||
|  */ |  | ||||||
| @Component |  | ||||||
| @Data |  | ||||||
| public class BaseConfigProperties { |  | ||||||
| 
 |  | ||||||
|     @Value("${spring.rabbitmq.queues.orderQueue}") |  | ||||||
|     private String orderQueue; |  | ||||||
| 
 |  | ||||||
|     @Value("${ils.other.host.baiduUrl}") |  | ||||||
|     private String baiduUrl; |  | ||||||
| } |  | ||||||
| @ -1,5 +1,5 @@ | |||||||
| spring: | spring: | ||||||
|   application: |   application: | ||||||
|     name: ils-order-service |     name: oms | ||||||
|   profiles: |   profiles: | ||||||
|     active: 'dev' |     active: 'dev' | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsCustomerMapper"> | <mapper namespace="com.ils.oms.mapper.IlsCustomerMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsCustomerDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsCustomerDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="customer_id" property="customerId" /> |         <result column="customer_id" property="customerId" /> | ||||||
|         <result column="customer_name" property="customerName" /> |         <result column="customer_name" property="customerName" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderAddressMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderAddressMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderAddressDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderAddressDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="order_id" property="orderId" /> |         <result column="order_id" property="orderId" /> | ||||||
|         <result column="con_code" property="conCode" /> |         <result column="con_code" property="conCode" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderFeeMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderFeeMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderFeeDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderFeeDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="order_id" property="orderId" /> |         <result column="order_id" property="orderId" /> | ||||||
|         <result column="con_code" property="conCode" /> |         <result column="con_code" property="conCode" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderItemMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderItemMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderItemDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderItemDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="order_id" property="orderId" /> |         <result column="order_id" property="orderId" /> | ||||||
|         <result column="con_code" property="conCode" /> |         <result column="con_code" property="conCode" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderLabelMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderLabelMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderLabelDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderLabelDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="order_id" property="orderId" /> |         <result column="order_id" property="orderId" /> | ||||||
|         <result column="con_code" property="conCode" /> |         <result column="con_code" property="conCode" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="order_id" property="orderId" /> |         <result column="order_id" property="orderId" /> | ||||||
|         <result column="con_code" property="conCode" /> |         <result column="con_code" property="conCode" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderParcelMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderParcelMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderParcelDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderParcelDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="order_id" property="orderId" /> |         <result column="order_id" property="orderId" /> | ||||||
|         <result column="parcel_code" property="parcelCode" /> |         <result column="parcel_code" property="parcelCode" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsOrderUploadMapper"> | <mapper namespace="com.ils.oms.mapper.IlsOrderUploadMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsOrderUploadDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsOrderUploadDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="customer_id" property="customerId" /> |         <result column="customer_id" property="customerId" /> | ||||||
|         <result column="customer_name" property="customerName" /> |         <result column="customer_name" property="customerName" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsProductMapper"> | <mapper namespace="com.ils.oms.mapper.IlsProductMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsProductDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsProductDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="product_code" property="productCode" /> |         <result column="product_code" property="productCode" /> | ||||||
|         <result column="product_name_cn" property="productNameCn" /> |         <result column="product_name_cn" property="productNameCn" /> | ||||||
| @ -1,9 +1,9 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
| <mapper namespace="org.ils.order.mapper.IlsProductValidationMapper"> | <mapper namespace="com.ils.oms.mapper.IlsProductValidationMapper"> | ||||||
| 
 | 
 | ||||||
|     <!-- 通用查询映射结果 --> |     <!-- 通用查询映射结果 --> | ||||||
|     <resultMap id="BaseResultMap" type="org.ils.order.entity.IlsProductValidationDO"> |     <resultMap id="BaseResultMap" type="com.ils.oms.entity.IlsProductValidationDO"> | ||||||
|         <id column="id" property="id" /> |         <id column="id" property="id" /> | ||||||
|         <result column="product_code" property="productCode" /> |         <result column="product_code" property="productCode" /> | ||||||
|         <result column="rule_entity" property="ruleEntity" /> |         <result column="rule_entity" property="ruleEntity" /> | ||||||
| @ -1,10 +1,10 @@ | |||||||
| package org.ils.order; | package com.ils.oms; | ||||||
| 
 | 
 | ||||||
| import cn.hutool.json.JSONObject; | import cn.hutool.json.JSONObject; | ||||||
| import com.alibaba.fastjson.JSON; | import com.alibaba.fastjson.JSON; | ||||||
| import lombok.extern.slf4j.Slf4j; | import lombok.extern.slf4j.Slf4j; | ||||||
| import org.ils.order.properties.BaseConfigProperties; | import com.ils.oms.properties.BaseConfigProperties; | ||||||
| import org.ils.order.listener.rabbitmq.RabbitSender; | import com.ils.oms.listener.rabbitmq.RabbitSender; | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
| import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||||
| @ -1,19 +1,16 @@ | |||||||
| package org.ils.order; | package com.ils.oms; | ||||||
| 
 | 
 | ||||||
| import com.z.common.util.RedisUtils; |  | ||||||
| import lombok.extern.slf4j.Slf4j; | import lombok.extern.slf4j.Slf4j; | ||||||
| import org.ils.order.dto.dto.MainLinePageDto; | import com.ils.oms.dto.MainLinePageDto; | ||||||
| import org.ils.order.properties.BaseConfigProperties; | import com.ils.oms.properties.BaseConfigProperties; | ||||||
| import org.ils.order.result.Result; | import com.ils.oms.result.Result; | ||||||
| import org.ils.order.service.impl.MainLineServiceImpl; | import com.ils.oms.service.impl.MainLineServiceImpl; | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
| import org.junit.runner.RunWith; | import org.junit.runner.RunWith; | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||||
| import org.springframework.boot.test.context.SpringBootTest; | import org.springframework.boot.test.context.SpringBootTest; | ||||||
| import org.springframework.test.context.junit4.SpringRunner; | import org.springframework.test.context.junit4.SpringRunner; | ||||||
| 
 | 
 | ||||||
| import javax.annotation.Resource; |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| @Slf4j | @Slf4j | ||||||
| @RunWith(SpringRunner.class) | @RunWith(SpringRunner.class) | ||||||
					Loading…
					
					
				
		Reference in New Issue