Authored by mali

目录调整

Showing 17 changed files with 35 additions and 46 deletions
1 -package com.yohobuy.ufo.constants; 1 +package com.yoho.ufo.constants;
2 2
3 /** 3 /**
4 * Created by li.ma on 2018/9/8. 4 * Created by li.ma on 2018/9/8.
1 -package com.yohobuy.ufo.exception; 1 +package com.yoho.ufo.exception;
2 2
3 import com.yoho.error.exception.ServiceException; 3 import com.yoho.error.exception.ServiceException;
4 4
1 -package com.yohobuy.ufo.login.controller; 1 +package com.yoho.ufo.login.controller;
2 2
3 -import com.yohobuy.ufo.constants.PlatformConstant;  
4 -import com.yohobuy.ufo.login.model.MenuInfoResponseBO;  
5 -import com.yohobuy.ufo.login.model.Response;  
6 -import com.yohobuy.ufo.login.model.UserInfoResponseBO;  
7 -import com.yohobuy.ufo.login.service.LoginService; 3 +import com.yoho.ufo.constants.PlatformConstant;
  4 +import com.yoho.ufo.login.model.MenuInfoResponseBO;
  5 +import com.yoho.ufo.login.model.Response;
  6 +import com.yoho.ufo.login.model.UserInfoResponseBO;
  7 +import com.yoho.ufo.login.service.LoginService;
8 import org.slf4j.Logger; 8 import org.slf4j.Logger;
9 import org.slf4j.LoggerFactory; 9 import org.slf4j.LoggerFactory;
10 import org.springframework.stereotype.Controller; 10 import org.springframework.stereotype.Controller;
1 -package com.yohobuy.ufo.login.model; 1 +package com.yoho.ufo.login.model;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 4
1 -package com.yohobuy.ufo.login.model; 1 +package com.yoho.ufo.login.model;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 4
1 -package com.yohobuy.ufo.login.model; 1 +package com.yoho.ufo.login.model;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 import lombok.ToString; 4 import lombok.ToString;
1 -package com.yohobuy.ufo.login.service; 1 +package com.yoho.ufo.login.service;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 -import com.yohobuy.ufo.constants.PlatformConstant;  
5 -import com.yohobuy.ufo.login.model.MenuInfoResponseBO;  
6 -import com.yohobuy.ufo.login.model.Response;  
7 -import com.yohobuy.ufo.login.model.UserInfoResponseBO;  
8 -import org.apache.commons.collections.CollectionUtils; 4 +import com.yoho.ufo.constants.PlatformConstant;
  5 +import com.yoho.ufo.login.model.Response;
  6 +import com.yoho.ufo.login.model.UserInfoResponseBO;
  7 +import com.yoho.ufo.login.model.MenuInfoResponseBO;
9 import org.apache.commons.collections.MapUtils; 8 import org.apache.commons.collections.MapUtils;
10 import org.apache.commons.lang3.StringUtils; 9 import org.apache.commons.lang3.StringUtils;
11 import org.slf4j.Logger; 10 import org.slf4j.Logger;
@@ -16,11 +15,8 @@ import org.springframework.http.HttpHeaders; @@ -16,11 +15,8 @@ import org.springframework.http.HttpHeaders;
16 import org.springframework.http.MediaType; 15 import org.springframework.http.MediaType;
17 import org.springframework.http.ResponseEntity; 16 import org.springframework.http.ResponseEntity;
18 import org.springframework.stereotype.Service; 17 import org.springframework.stereotype.Service;
19 -import org.springframework.util.LinkedMultiValueMap;  
20 -import org.springframework.util.MultiValueMap;  
21 import org.springframework.web.client.RestTemplate; 18 import org.springframework.web.client.RestTemplate;
22 import javax.annotation.Resource; 19 import javax.annotation.Resource;
23 -import java.util.ArrayList;  
24 import java.util.LinkedHashMap; 20 import java.util.LinkedHashMap;
25 import java.util.List; 21 import java.util.List;
26 import java.util.Map; 22 import java.util.Map;
1 -package com.yohobuy.ufo.util; 1 +package com.yoho.ufo.util;
2 2
3 import ma.glasnost.orika.MapperFacade; 3 import ma.glasnost.orika.MapperFacade;
4 import ma.glasnost.orika.MapperFactory; 4 import ma.glasnost.orika.MapperFactory;
1 -package com.yohobuy.ufo.util; 1 +package com.yoho.ufo.util;
2 2
3 -import com.yohobuy.ufo.exception.CommonException; 3 +import com.yoho.ufo.exception.CommonException;
4 import net.sf.oval.ConstraintViolation; 4 import net.sf.oval.ConstraintViolation;
5 import net.sf.oval.Validator; 5 import net.sf.oval.Validator;
6 import org.apache.commons.collections.CollectionUtils; 6 import org.apache.commons.collections.CollectionUtils;
1 -package com.yohobuy.ufo.dal.brand; 1 +package com.yoho.ufo.dal.brand;
2 2
3 -import com.yohobuy.ufo.model.brand.Brand; 3 +import com.yoho.ufo.model.brand.Brand;
4 import com.yohobuy.ufo.model.common.PageModel; 4 import com.yohobuy.ufo.model.common.PageModel;
5 import org.apache.ibatis.annotations.Param; 5 import org.apache.ibatis.annotations.Param;
6 6
1 -package com.yohobuy.ufo.model.brand; 1 +package com.yoho.ufo.model.brand;
2 2
3 import java.io.Serializable; 3 import java.io.Serializable;
4 4
1 <?xml version="1.0" encoding="UTF-8" ?> 1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3 -<mapper namespace="com.yohobuy.ufo.dal.brand.BrandMapper"> 3 +<mapper namespace="com.yoho.ufo.dal.brand.BrandMapper">
4 4
5 - <resultMap id="brandMap" type="com.yohobuy.ufo.model.brand.Brand"> 5 + <resultMap id="brandMap" type="com.yoho.ufo.model.brand.Brand">
6 </resultMap> 6 </resultMap>
7 7
8 <sql id="queryColumns"> 8 <sql id="queryColumns">
9 id, brand_name, brand_name_en, brand_log, brand_search, status, create_time 9 id, brand_name, brand_name_en, brand_log, brand_search, status, create_time
10 </sql> 10 </sql>
11 11
12 - <insert id="insertBrand" parameterType="com.yohobuy.ufo.model.brand.Brand"> 12 + <insert id="insertBrand" parameterType="com.yoho.ufo.model.brand.Brand">
13 insert into brand(id, brand_name, brand_name_en, brand_log, brand_search, status, create_time, edit_time, edit_pid) 13 insert into brand(id, brand_name, brand_name_en, brand_log, brand_search, status, create_time, edit_time, edit_pid)
14 values (#{id}, #{brandName}, #{brandNameEn}, #{brandLogo}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid}) 14 values (#{id}, #{brandName}, #{brandNameEn}, #{brandLogo}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid})
15 </insert> 15 </insert>
16 16
17 - <update id="updateBrandStatus" parameterType="com.yohobuy.ufo.model.brand.Brand"> 17 + <update id="updateBrandStatus" parameterType="com.yoho.ufo.model.brand.Brand">
18 update brand set status = #{status}, edit_time = #{editTime}, edit_pid = #{editPid} where id = #{id} 18 update brand set status = #{status}, edit_time = #{editTime}, edit_pid = #{editPid} where id = #{id}
19 </update> 19 </update>
20 20
1 -package com.yohobuy.ufo; 1 +package com.yoho.ufo.order;
2 2
3 /** 3 /**
4 * Created by li.ma on 2018/9/7. 4 * Created by li.ma on 2018/9/7.
1 -package com.yohobuy.ufo.controller.brand; 1 +package com.yoho.ufo.controller.brand;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 import com.yohobuy.ufo.model.common.ApiResponse; 4 import com.yohobuy.ufo.model.common.ApiResponse;
5 import com.yohobuy.ufo.model.common.PageResponseBO; 5 import com.yohobuy.ufo.model.common.PageResponseBO;
6 import com.yohobuy.ufo.model.request.brand.BrandRequestBo; 6 import com.yohobuy.ufo.model.request.brand.BrandRequestBo;
7 import com.yohobuy.ufo.model.request.brand.BrandResponseBo; 7 import com.yohobuy.ufo.model.request.brand.BrandResponseBo;
8 -import com.yohobuy.ufo.service.IBrandService; 8 +import com.yoho.ufo.service.IBrandService;
9 import org.slf4j.Logger; 9 import org.slf4j.Logger;
10 import org.slf4j.LoggerFactory; 10 import org.slf4j.LoggerFactory;
11 import org.springframework.web.bind.annotation.RequestBody; 11 import org.springframework.web.bind.annotation.RequestBody;
1 -package com.yohobuy.ufo.service; 1 +package com.yoho.ufo.service;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 import com.yohobuy.ufo.model.common.PageResponseBO; 4 import com.yohobuy.ufo.model.common.PageResponseBO;
1 -package com.yohobuy.ufo.service.impl; 1 +package com.yoho.ufo.service.impl;
2 2
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 import com.yoho.core.common.utils.DateUtil; 4 import com.yoho.core.common.utils.DateUtil;
5 -import com.yohobuy.ufo.dal.brand.BrandMapper;  
6 -import com.yohobuy.ufo.model.brand.Brand; 5 +import com.yoho.ufo.dal.brand.BrandMapper;
  6 +import com.yoho.ufo.model.brand.Brand;
7 import com.yohobuy.ufo.model.common.PageModel; 7 import com.yohobuy.ufo.model.common.PageModel;
8 import com.yohobuy.ufo.model.common.PageResponseBO; 8 import com.yohobuy.ufo.model.common.PageResponseBO;
9 import com.yohobuy.ufo.model.request.brand.BrandRequestBo; 9 import com.yohobuy.ufo.model.request.brand.BrandRequestBo;
10 import com.yohobuy.ufo.model.request.brand.BrandResponseBo; 10 import com.yohobuy.ufo.model.request.brand.BrandResponseBo;
11 -import com.yohobuy.ufo.service.IBrandService;  
12 -import com.yohobuy.ufo.util.OrikaUtils; 11 +import com.yoho.ufo.service.IBrandService;
  12 +import com.yoho.ufo.util.OrikaUtils;
13 import org.slf4j.Logger; 13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory; 14 import org.slf4j.LoggerFactory;
15 import org.springframework.stereotype.Service; 15 import org.springframework.stereotype.Service;
1 -package com.yohobuy.ufo;  
2 -  
3 -/**  
4 - * Created by li.ma on 2018/9/7.  
5 - */  
6 -public class Test {  
7 -}