Преглед изворни кода

科技服务首页数据,新增实体

liliang4869 пре 7 година
родитељ
комит
e0ba4b90be
20 измењених фајлова са 4422 додато и 10 уклоњено
  1. 6 5
      GeneratorConfig.xml
  2. 8 0
      src/main/java/com/goafanti/app/bo/consultantListBo.java
  3. 12 0
      src/main/java/com/goafanti/business/service/JtBusinessService.java
  4. 38 0
      src/main/java/com/goafanti/business/service/impl/JtBusinessServiceImpl.java
  5. 71 3
      src/main/java/com/goafanti/common/controller/WebpageController.java
  6. 3 0
      src/main/java/com/goafanti/common/dao/BusinessProjectMapper.java
  7. 103 0
      src/main/java/com/goafanti/common/dao/JtBusinessCategoryMapper.java
  8. 98 0
      src/main/java/com/goafanti/common/dao/JtBusinessProjectMapper.java
  9. 2 0
      src/main/java/com/goafanti/common/dao/UserIdentityMapper.java
  10. 7 1
      src/main/java/com/goafanti/common/mapper/BusinessProjectMapper.xml
  11. 377 0
      src/main/java/com/goafanti/common/mapper/JtBusinessCategoryMapper.xml
  12. 487 0
      src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml
  13. 13 0
      src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml
  14. 302 0
      src/main/java/com/goafanti/common/model/JtBusinessCategory.java
  15. 903 0
      src/main/java/com/goafanti/common/model/JtBusinessCategoryExample.java
  16. 567 0
      src/main/java/com/goafanti/common/model/JtBusinessProject.java
  17. 1414 0
      src/main/java/com/goafanti/common/model/JtBusinessProjectExample.java
  18. 2 0
      src/main/java/com/goafanti/user/service/UserIdentityService.java
  19. 8 0
      src/main/java/com/goafanti/user/service/impl/UserIdentityServiceImpl.java
  20. 1 1
      src/main/webapp/WEB-INF/views/portal/service/serviceIndex.html

+ 6 - 5
GeneratorConfig.xml

@@ -2,14 +2,15 @@
 <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 <generatorConfiguration>
   <!-- <classPathEntry location="C:/Users/Administrator/.dbeaver-drivers/maven/maven-central/mysql/mysql-connector-java-5.1.44.jar" /> -->
-  <classPathEntry location="E:/mysql-connector-java-5.1.40.jar" />
+  <classPathEntry location="E:/mysql-connector-java-5.1.46.jar" />
   <context id="context1">	
  	<property name="javaFileEncoding" value="UTF-8"/>
     <jdbcConnection connectionURL="jdbc:mysql://192.168.1.213:3306/aft" 
     	driverClass="com.mysql.jdbc.Driver" password="123456" userId="dev" />
-   <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="jitao-server" />
-  <!--  <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="jitao-server" />
-   <javaClientGenerator targetPackage="com.goafanti.common.dao" targetProject="jitao-server" type="XMLMAPPER" /> -->
-    <table schema="aft" tableName="achievement"/> 
+   <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="jitao_server" />
+   <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="jitao_server" />
+   <javaClientGenerator targetPackage="com.goafanti.common.dao" targetProject="jitao_server" type="XMLMAPPER" />
+   <table schema="aft" tableName="jt_business_category"/>
+   <table schema="aft" tableName="jt_business_project"/>
   </context>
 </generatorConfiguration>

+ 8 - 0
src/main/java/com/goafanti/app/bo/consultantListBo.java

@@ -9,6 +9,14 @@ public class consultantListBo {
 	private String interest;
 	private String reservationCount;
 	private String easemobName;
+	private String workUnit;
+	
+	public String getWorkUnit() {
+		return workUnit;
+	}
+	public void setWorkUnit(String workUnit) {
+		this.workUnit = workUnit;
+	}
 	public String getId() {
 		return id;
 	}

+ 12 - 0
src/main/java/com/goafanti/business/service/JtBusinessService.java

@@ -0,0 +1,12 @@
+package com.goafanti.business.service;
+
+import java.util.List;
+
+import com.goafanti.common.model.JtBusinessCategory;
+import com.goafanti.common.model.JtBusinessProject;
+
+public interface JtBusinessService {
+JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer,String name);
+List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size);
+List<JtBusinessProject>getBusinessProjectByCategoryId(String id,Integer size);
+}

+ 38 - 0
src/main/java/com/goafanti/business/service/impl/JtBusinessServiceImpl.java

@@ -0,0 +1,38 @@
+package com.goafanti.business.service.impl;
+
+import java.util.List;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.goafanti.business.service.JtBusinessService;
+import com.goafanti.common.dao.JtBusinessCategoryMapper;
+import com.goafanti.common.dao.JtBusinessProjectMapper;
+import com.goafanti.common.model.JtBusinessCategory;
+import com.goafanti.common.model.JtBusinessProject;
+
+@Service
+public class JtBusinessServiceImpl implements JtBusinessService{
+	@Autowired
+	JtBusinessCategoryMapper jtBusinessCategoryMapper;
+	@Autowired
+	JtBusinessProjectMapper jtBusinessProjectMapper;
+	@Override
+	public JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer, String name) {
+		// TODO Auto-generated method stub
+		return jtBusinessCategoryMapper.getBusinessCategoryByLayerAndName(layer, name);
+	}
+
+	@Override
+	public List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size) {
+		// TODO Auto-generated method stub
+		return jtBusinessCategoryMapper.getBusinessCategoryBySuperId(id,size);
+	}
+
+	@Override
+	public List<JtBusinessProject> getBusinessProjectByCategoryId(String id,Integer size) {
+		// TODO Auto-generated method stub
+		return jtBusinessProjectMapper.getBusinessProjectByCategoryId(id,size);
+	}
+
+}

+ 71 - 3
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -11,16 +11,22 @@ import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.servlet.ModelAndView;
 
 import com.goafanti.achievement.service.AchievementService;
+import com.goafanti.app.bo.consultantListBo;
 import com.goafanti.banners.enums.BannersType;
 import com.goafanti.banners.service.BannersService;
+import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.bo.fieldGlossoryBo;
 import com.goafanti.common.model.Banners;
+import com.goafanti.common.model.JtBusinessCategory;
+import com.goafanti.common.model.JtBusinessProject;
+import com.goafanti.common.model.News;
 import com.goafanti.common.utils.LimitLengthUtil;
 import com.goafanti.common.utils.StringUtils;
 import com.goafanti.core.shiro.token.TokenManager;
 import com.goafanti.demand.bo.DemandListBo;
 import com.goafanti.demand.service.DemandService;
+import com.goafanti.user.bo.UserIdentityBo;
 import com.goafanti.user.service.OrganizationIdentityService;
 import com.goafanti.user.service.UserIdentityService;
 
@@ -51,6 +57,9 @@ public class WebpageController extends BaseController {
 
 	@Resource
 	private NewsService newsService; 
+	
+	@Resource 
+	private JtBusinessService jtBusinessService;
 
 	@RequestMapping(value = "/user/account/index", method = RequestMethod.GET)
 	public ModelAndView index(HttpServletRequest request, ModelAndView modelview) {
@@ -248,14 +257,51 @@ public class WebpageController extends BaseController {
 		return modelview;
 	}
 
-	/**
+	/** 
 	 * 服务汇
 	 */
 	@RequestMapping(value = "/portal/service/serviceIndex", method = RequestMethod.GET)
 	public ModelAndView portalServiceServiceIndex(HttpServletRequest request, ModelAndView modelview) {
 		modelview.setViewName("/portal/service/serviceIndex");
-		handleBanners(modelview, BannersType.FU_WU_HUI);
-		return modelview;
+		//政策
+		List<PolicyEntity>policyEntities=achievementService.getIntellectualProperty(8);
+		modelview.addObject("policyList",policyEntities); 
+		//新闻
+		List<News>news=newsService.getNewsList(5);
+		modelview.addObject("newsList",news);
+		//高企服务
+		JtBusinessCategory gaoqi=jtBusinessService.getBusinessCategoryByLayerAndName(1, "高企服务");
+		JtBusinessCategory gaoqi2=jtBusinessService.getBusinessCategoryByLayerAndName(2, "高企服务");
+		List<JtBusinessProject>gaoqiList=jtBusinessService.getBusinessProjectByCategoryId(gaoqi2.getId(),6);
+		modelview.addObject("gaoqiList",gaoqiList); 
+		//知识产权贯标
+		JtBusinessCategory zscqgb=jtBusinessService.getBusinessCategoryByLayerAndName(1, "知识产权贯标");
+		List<JtBusinessCategory> zscqgbCategories=jtBusinessService.getBusinessCategoryBySuperId(zscqgb.getId(), 4);
+		int[]zscqsizes= {1,2,4,10};
+		businessHelper(modelview, "zscqgb", zscqgbCategories, zscqsizes);
+		
+		//企业认证
+		JtBusinessCategory qiyerenzheng=jtBusinessService.getBusinessCategoryByLayerAndName(1, "企业认证");
+		List<JtBusinessCategory>qyrzCategories=jtBusinessService.getBusinessCategoryBySuperId(qiyerenzheng.getId(), 2);
+		int []qyrzsizes= {8,8};
+		businessHelper(modelview, "qyrz", qyrzCategories, qyrzsizes);
+		
+		//管理体系
+		JtBusinessCategory manageSys=jtBusinessService.getBusinessCategoryByLayerAndName(1, "管理体系");
+		JtBusinessCategory manageSys2=jtBusinessService.getBusinessCategoryByLayerAndName(2, "管理体系");
+		List<JtBusinessProject>manageSysPro=jtBusinessService.getBusinessProjectByCategoryId(manageSys2.getId(), 18);
+		modelview.addObject("manageSystemList",manageSysPro);
+		
+		//科技项目
+				JtBusinessCategory scienceProject=jtBusinessService.getBusinessCategoryByLayerAndName(1, "科技项目");
+				JtBusinessCategory scienceProject2=jtBusinessService.getBusinessCategoryByLayerAndName(2, "科技项目");
+				List<JtBusinessProject>scienceProjects=jtBusinessService.getBusinessProjectByCategoryId(scienceProject2.getId(), 12);
+				modelview.addObject("scienceProjectList",scienceProjects);
+				
+		//咨询师
+			List<consultantListBo>userIdentityBos=userIdentityService.getConsultantList(8);
+			modelview.addObject("consultants",userIdentityBos);
+		return modelview;  
 	}
 
 	/**
@@ -401,6 +447,19 @@ public class WebpageController extends BaseController {
 	}
 
 	/*
+	 * 首页
+	 * 
+	 * */
+	
+	@RequestMapping(value = "/portal/index")
+	public ModelAndView mainIndex(HttpServletRequest request, ModelAndView modelview) {
+		modelview.setViewName("/portal/index");
+		return modelview;
+	}
+	
+	/*
+	 
+	 
 	 * 技淘3.0-科技需求页
 	 * @param request
 	 * @param modelview
@@ -560,5 +619,14 @@ public class WebpageController extends BaseController {
 		modelAndView.setViewName("/portal/technologyTrading/achievementDetail");
 		return modelAndView;
 	}
+	
+	private void businessHelper(ModelAndView modelAndView,String categoryName,List<JtBusinessCategory> jtBusinessCategories,int[] sizes) {
+		for(int i=0;i<jtBusinessCategories.size();i++) {
+			List<JtBusinessProject>projects=jtBusinessService.getBusinessProjectByCategoryId(jtBusinessCategories.get(i).getId(), sizes[i]);
+			modelAndView.addObject(categoryName+i,jtBusinessCategories.get(i)); 
+			modelAndView.addObject(categoryName+"List"+i,projects);
+		}
+		
+	}
 
 }

+ 3 - 0
src/main/java/com/goafanti/common/dao/BusinessProjectMapper.java

@@ -2,6 +2,7 @@ package com.goafanti.common.dao;
 
 import com.goafanti.app.bo.ProjectBo;
 import com.goafanti.app.bo.ProjectDetailBo;
+import com.goafanti.business.bo.BusinessProjectBo;
 import com.goafanti.common.model.BusinessProject;
 import com.goafanti.common.model.BusinessProjectExample;
 import com.goafanti.common.model.BusinessVarieties;
@@ -95,6 +96,8 @@ public interface BusinessProjectMapper {
 	List<ProjectBo> selectServiceProjectDetail();
 
 	 List<BusinessVarieties> selectBusinessProjectCatalog();
+	 
+	 List<BusinessProjectBo> getServicePageProjects(int size);
 
 	
 }

+ 103 - 0
src/main/java/com/goafanti/common/dao/JtBusinessCategoryMapper.java

@@ -0,0 +1,103 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.JtBusinessCategory;
+import com.goafanti.common.model.JtBusinessCategoryExample;
+import com.goafanti.common.model.JtBusinessProject;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface JtBusinessCategoryMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    long countByExample(JtBusinessCategoryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int deleteByExample(JtBusinessCategoryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int insert(JtBusinessCategory record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int insertSelective(JtBusinessCategory record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    List<JtBusinessCategory> selectByExample(JtBusinessCategoryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    JtBusinessCategory selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByExampleSelective(@Param("record") JtBusinessCategory record, @Param("example") JtBusinessCategoryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByExample(@Param("record") JtBusinessCategory record, @Param("example") JtBusinessCategoryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByPrimaryKeySelective(JtBusinessCategory record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByPrimaryKey(JtBusinessCategory record);
+    
+    JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer, String name);
+    
+    List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size);
+    
+}

+ 98 - 0
src/main/java/com/goafanti/common/dao/JtBusinessProjectMapper.java

@@ -0,0 +1,98 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.JtBusinessProject;
+import com.goafanti.common.model.JtBusinessProjectExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface JtBusinessProjectMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    long countByExample(JtBusinessProjectExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int deleteByExample(JtBusinessProjectExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int insert(JtBusinessProject record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int insertSelective(JtBusinessProject record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    List<JtBusinessProject> selectByExample(JtBusinessProjectExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    JtBusinessProject selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByExampleSelective(@Param("record") JtBusinessProject record, @Param("example") JtBusinessProjectExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByExample(@Param("record") JtBusinessProject record, @Param("example") JtBusinessProjectExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByPrimaryKeySelective(JtBusinessProject record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_project
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    int updateByPrimaryKey(JtBusinessProject record);
+    
+     List<JtBusinessProject> getBusinessProjectByCategoryId(String id,Integer size);
+}

+ 2 - 0
src/main/java/com/goafanti/common/dao/UserIdentityMapper.java

@@ -101,5 +101,7 @@ public interface UserIdentityMapper {
 	consultantListBo selectconsultantByUid(String id);
 
 	List<UserIdentityRecommended> getAppHomeRecommended();
+	
+	List<consultantListBo> getConsultantList(Integer size);
     
 }

+ 7 - 1
src/main/java/com/goafanti/common/mapper/BusinessProjectMapper.xml

@@ -811,6 +811,12 @@
   <select id="selectBusinessProjectCatalog" resultType="com.goafanti.common.model.BusinessVarieties">
   	select id,cname from business_varieties where delete_sign = 0
   </select>
-  
+  <select id="getServicePageProjects" resultType="com.goafanti.business.bo.BusinessProjectBo">
+select
+	id,
+	bname as name
+from
+	business_project limit #{0}
+  </select>
 
 </mapper>

+ 377 - 0
src/main/java/com/goafanti/common/mapper/JtBusinessCategoryMapper.xml

@@ -0,0 +1,377 @@
+<?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">
+<mapper namespace="com.goafanti.common.dao.JtBusinessCategoryMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtBusinessCategory">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="summary" jdbcType="VARCHAR" property="summary" />
+    <result column="number" jdbcType="VARCHAR" property="number" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="super_id" jdbcType="VARCHAR" property="superId" />
+    <result column="img_url" jdbcType="VARCHAR" property="imgUrl" />
+    <result column="layer" jdbcType="INTEGER" property="layer" />
+    <result column="sort" jdbcType="INTEGER" property="sort" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    id, name, summary, number, create_time, super_id, img_url, layer, sort
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.JtBusinessCategoryExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from jt_business_category
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from jt_business_category
+    where id = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    delete from jt_business_category
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtBusinessCategoryExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    delete from jt_business_category
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.JtBusinessCategory">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    insert into jt_business_category (id, name, summary, 
+      number, create_time, super_id, 
+      img_url, layer, sort
+      )
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{summary,jdbcType=VARCHAR}, 
+      #{number,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{superId,jdbcType=VARCHAR}, 
+      #{imgUrl,jdbcType=VARCHAR}, #{layer,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.JtBusinessCategory">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    insert into jt_business_category
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="name != null">
+        name,
+      </if>
+      <if test="summary != null">
+        summary,
+      </if>
+      <if test="number != null">
+        number,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="superId != null">
+        super_id,
+      </if>
+      <if test="imgUrl != null">
+        img_url,
+      </if>
+      <if test="layer != null">
+        layer,
+      </if>
+      <if test="sort != null">
+        sort,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="summary != null">
+        #{summary,jdbcType=VARCHAR},
+      </if>
+      <if test="number != null">
+        #{number,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="superId != null">
+        #{superId,jdbcType=VARCHAR},
+      </if>
+      <if test="imgUrl != null">
+        #{imgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="layer != null">
+        #{layer,jdbcType=INTEGER},
+      </if>
+      <if test="sort != null">
+        #{sort,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.JtBusinessCategoryExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    select count(*) from jt_business_category
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_category
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null">
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.summary != null">
+        summary = #{record.summary,jdbcType=VARCHAR},
+      </if>
+      <if test="record.number != null">
+        number = #{record.number,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.superId != null">
+        super_id = #{record.superId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.imgUrl != null">
+        img_url = #{record.imgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.layer != null">
+        layer = #{record.layer,jdbcType=INTEGER},
+      </if>
+      <if test="record.sort != null">
+        sort = #{record.sort,jdbcType=INTEGER},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_category
+    set id = #{record.id,jdbcType=VARCHAR},
+      name = #{record.name,jdbcType=VARCHAR},
+      summary = #{record.summary,jdbcType=VARCHAR},
+      number = #{record.number,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      super_id = #{record.superId,jdbcType=VARCHAR},
+      img_url = #{record.imgUrl,jdbcType=VARCHAR},
+      layer = #{record.layer,jdbcType=INTEGER},
+      sort = #{record.sort,jdbcType=INTEGER}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtBusinessCategory">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_category
+    <set>
+      <if test="name != null">
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="summary != null">
+        summary = #{summary,jdbcType=VARCHAR},
+      </if>
+      <if test="number != null">
+        number = #{number,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="superId != null">
+        super_id = #{superId,jdbcType=VARCHAR},
+      </if>
+      <if test="imgUrl != null">
+        img_url = #{imgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="layer != null">
+        layer = #{layer,jdbcType=INTEGER},
+      </if>
+      <if test="sort != null">
+        sort = #{sort,jdbcType=INTEGER},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtBusinessCategory">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_category
+    set name = #{name,jdbcType=VARCHAR},
+      summary = #{summary,jdbcType=VARCHAR},
+      number = #{number,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      super_id = #{superId,jdbcType=VARCHAR},
+      img_url = #{imgUrl,jdbcType=VARCHAR},
+      layer = #{layer,jdbcType=INTEGER},
+      sort = #{sort,jdbcType=INTEGER}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  
+  <select id="getBusinessCategoryByLayerAndName" resultType="com.goafanti.common.model.JtBusinessCategory">
+select
+	id,
+	name,
+	super_id as superId
+from
+	jt_business_category
+where
+	name = #{1}
+	and layer = #{0}
+  </select>
+  
+  <select id="getBusinessCategoryBySuperId" resultType="com.goafanti.common.model.JtBusinessCategory">
+  select
+	id,
+	name,
+	super_id as superId
+from
+	jt_business_category
+where
+	super_id = #{0}
+	order by create_time
+	limit #{1}
+  </select>
+  
+ 
+</mapper>

+ 487 - 0
src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml

@@ -0,0 +1,487 @@
+<?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">
+<mapper namespace="com.goafanti.common.dao.JtBusinessProjectMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtBusinessProject">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="category_id" jdbcType="VARCHAR" property="categoryId" />
+    <result column="number" jdbcType="VARCHAR" property="number" />
+    <result column="price" jdbcType="DECIMAL" property="price" />
+    <result column="activity_price" jdbcType="DECIMAL" property="activityPrice" />
+    <result column="member_price" jdbcType="DECIMAL" property="memberPrice" />
+    <result column="offset" jdbcType="REAL" property="offset" />
+    <result column="activity_flag" jdbcType="INTEGER" property="activityFlag" />
+    <result column="introduce" jdbcType="VARCHAR" property="introduce" />
+    <result column="province" jdbcType="INTEGER" property="province" />
+    <result column="city" jdbcType="INTEGER" property="city" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="min_img_url" jdbcType="VARCHAR" property="minImgUrl" />
+    <result column="max_img_url" jdbcType="VARCHAR" property="maxImgUrl" />
+    <result column="value" jdbcType="VARCHAR" property="value" />
+    <result column="apply_conditions" jdbcType="VARCHAR" property="applyConditions" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    id, name, category_id, number, price, activity_price, member_price, offset, activity_flag, 
+    introduce, province, city, create_time, min_img_url, max_img_url, value, apply_conditions
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from jt_business_project
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from jt_business_project
+    where id = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    delete from jt_business_project
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    delete from jt_business_project
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.JtBusinessProject">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    insert into jt_business_project (id, name, category_id, 
+      number, price, activity_price, 
+      member_price, offset, activity_flag, 
+      introduce, province, city, 
+      create_time, min_img_url, max_img_url, 
+      value, apply_conditions)
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR}, 
+      #{number,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{activityPrice,jdbcType=DECIMAL}, 
+      #{memberPrice,jdbcType=DECIMAL}, #{offset,jdbcType=REAL}, #{activityFlag,jdbcType=INTEGER}, 
+      #{introduce,jdbcType=VARCHAR}, #{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{minImgUrl,jdbcType=VARCHAR}, #{maxImgUrl,jdbcType=VARCHAR}, 
+      #{value,jdbcType=VARCHAR}, #{applyConditions,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.JtBusinessProject">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    insert into jt_business_project
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="name != null">
+        name,
+      </if>
+      <if test="categoryId != null">
+        category_id,
+      </if>
+      <if test="number != null">
+        number,
+      </if>
+      <if test="price != null">
+        price,
+      </if>
+      <if test="activityPrice != null">
+        activity_price,
+      </if>
+      <if test="memberPrice != null">
+        member_price,
+      </if>
+      <if test="offset != null">
+        offset,
+      </if>
+      <if test="activityFlag != null">
+        activity_flag,
+      </if>
+      <if test="introduce != null">
+        introduce,
+      </if>
+      <if test="province != null">
+        province,
+      </if>
+      <if test="city != null">
+        city,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="minImgUrl != null">
+        min_img_url,
+      </if>
+      <if test="maxImgUrl != null">
+        max_img_url,
+      </if>
+      <if test="value != null">
+        value,
+      </if>
+      <if test="applyConditions != null">
+        apply_conditions,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="categoryId != null">
+        #{categoryId,jdbcType=VARCHAR},
+      </if>
+      <if test="number != null">
+        #{number,jdbcType=VARCHAR},
+      </if>
+      <if test="price != null">
+        #{price,jdbcType=DECIMAL},
+      </if>
+      <if test="activityPrice != null">
+        #{activityPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="memberPrice != null">
+        #{memberPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="offset != null">
+        #{offset,jdbcType=REAL},
+      </if>
+      <if test="activityFlag != null">
+        #{activityFlag,jdbcType=INTEGER},
+      </if>
+      <if test="introduce != null">
+        #{introduce,jdbcType=VARCHAR},
+      </if>
+      <if test="province != null">
+        #{province,jdbcType=INTEGER},
+      </if>
+      <if test="city != null">
+        #{city,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="minImgUrl != null">
+        #{minImgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="maxImgUrl != null">
+        #{maxImgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="value != null">
+        #{value,jdbcType=VARCHAR},
+      </if>
+      <if test="applyConditions != null">
+        #{applyConditions,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    select count(*) from jt_business_project
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_project
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null">
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.categoryId != null">
+        category_id = #{record.categoryId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.number != null">
+        number = #{record.number,jdbcType=VARCHAR},
+      </if>
+      <if test="record.price != null">
+        price = #{record.price,jdbcType=DECIMAL},
+      </if>
+      <if test="record.activityPrice != null">
+        activity_price = #{record.activityPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="record.memberPrice != null">
+        member_price = #{record.memberPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="record.offset != null">
+        offset = #{record.offset,jdbcType=REAL},
+      </if>
+      <if test="record.activityFlag != null">
+        activity_flag = #{record.activityFlag,jdbcType=INTEGER},
+      </if>
+      <if test="record.introduce != null">
+        introduce = #{record.introduce,jdbcType=VARCHAR},
+      </if>
+      <if test="record.province != null">
+        province = #{record.province,jdbcType=INTEGER},
+      </if>
+      <if test="record.city != null">
+        city = #{record.city,jdbcType=INTEGER},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.minImgUrl != null">
+        min_img_url = #{record.minImgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.maxImgUrl != null">
+        max_img_url = #{record.maxImgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.value != null">
+        value = #{record.value,jdbcType=VARCHAR},
+      </if>
+      <if test="record.applyConditions != null">
+        apply_conditions = #{record.applyConditions,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_project
+    set id = #{record.id,jdbcType=VARCHAR},
+      name = #{record.name,jdbcType=VARCHAR},
+      category_id = #{record.categoryId,jdbcType=VARCHAR},
+      number = #{record.number,jdbcType=VARCHAR},
+      price = #{record.price,jdbcType=DECIMAL},
+      activity_price = #{record.activityPrice,jdbcType=DECIMAL},
+      member_price = #{record.memberPrice,jdbcType=DECIMAL},
+      offset = #{record.offset,jdbcType=REAL},
+      activity_flag = #{record.activityFlag,jdbcType=INTEGER},
+      introduce = #{record.introduce,jdbcType=VARCHAR},
+      province = #{record.province,jdbcType=INTEGER},
+      city = #{record.city,jdbcType=INTEGER},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      min_img_url = #{record.minImgUrl,jdbcType=VARCHAR},
+      max_img_url = #{record.maxImgUrl,jdbcType=VARCHAR},
+      value = #{record.value,jdbcType=VARCHAR},
+      apply_conditions = #{record.applyConditions,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtBusinessProject">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_project
+    <set>
+      <if test="name != null">
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="categoryId != null">
+        category_id = #{categoryId,jdbcType=VARCHAR},
+      </if>
+      <if test="number != null">
+        number = #{number,jdbcType=VARCHAR},
+      </if>
+      <if test="price != null">
+        price = #{price,jdbcType=DECIMAL},
+      </if>
+      <if test="activityPrice != null">
+        activity_price = #{activityPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="memberPrice != null">
+        member_price = #{memberPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="offset != null">
+        offset = #{offset,jdbcType=REAL},
+      </if>
+      <if test="activityFlag != null">
+        activity_flag = #{activityFlag,jdbcType=INTEGER},
+      </if>
+      <if test="introduce != null">
+        introduce = #{introduce,jdbcType=VARCHAR},
+      </if>
+      <if test="province != null">
+        province = #{province,jdbcType=INTEGER},
+      </if>
+      <if test="city != null">
+        city = #{city,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="minImgUrl != null">
+        min_img_url = #{minImgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="maxImgUrl != null">
+        max_img_url = #{maxImgUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="value != null">
+        value = #{value,jdbcType=VARCHAR},
+      </if>
+      <if test="applyConditions != null">
+        apply_conditions = #{applyConditions,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtBusinessProject">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed Jun 20 11:08:54 CST 2018.
+    -->
+    update jt_business_project
+    set name = #{name,jdbcType=VARCHAR},
+      category_id = #{categoryId,jdbcType=VARCHAR},
+      number = #{number,jdbcType=VARCHAR},
+      price = #{price,jdbcType=DECIMAL},
+      activity_price = #{activityPrice,jdbcType=DECIMAL},
+      member_price = #{memberPrice,jdbcType=DECIMAL},
+      offset = #{offset,jdbcType=REAL},
+      activity_flag = #{activityFlag,jdbcType=INTEGER},
+      introduce = #{introduce,jdbcType=VARCHAR},
+      province = #{province,jdbcType=INTEGER},
+      city = #{city,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      min_img_url = #{minImgUrl,jdbcType=VARCHAR},
+      max_img_url = #{maxImgUrl,jdbcType=VARCHAR},
+      value = #{value,jdbcType=VARCHAR},
+      apply_conditions = #{applyConditions,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  
+   <select id="getBusinessProjectByCategoryId" resultType="com.goafanti.common.model.JtBusinessProject">
+  select 
+  	id,
+  	name,
+  	introduce
+  	from 
+  	jt_business_project
+  	where 
+  	category_id=#{0}
+  	limit #{1}
+  </select>
+</mapper>

+ 13 - 0
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -1150,4 +1150,17 @@ order by
 	ep.if_top, ep.top_number, ep.show_number asc 
 	limit 0,6
   </select>
+  
+    <select id="getConsultantList" resultType="com.goafanti.app.bo.consultantListBo">
+	 	select t.uid as id,t.username as username ,u.head_portrait_url as headPortraitUrl,u.introduction ,
+	  t.expert as consultant,ifnull(x.n,0) as reservationCount,work_unit as workUnit
+	  from user_identity t
+	  left join `user` u on t.uid=u.id
+	  left join ( select y.x  as n, y.seller_id
+	from (select count( 0 ) as x,seller_id from t_order
+			where order_status != 4
+			group by seller_id)y)x on t.uid=x.seller_id 
+  where t.expert=2
+  limit #{0}
+  </select>
 </mapper>

+ 302 - 0
src/main/java/com/goafanti/common/model/JtBusinessCategory.java

@@ -0,0 +1,302 @@
+package com.goafanti.common.model;
+
+import java.util.Date;
+
+public class JtBusinessCategory {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.name
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String name;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.summary
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String summary;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.number
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String number;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.create_time
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Date createTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.super_id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String superId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String imgUrl;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.layer
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Integer layer;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_category.sort
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Integer sort;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.id
+     *
+     * @return the value of jt_business_category.id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.id
+     *
+     * @param id the value for jt_business_category.id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.name
+     *
+     * @return the value of jt_business_category.name
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.name
+     *
+     * @param name the value for jt_business_category.name
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.summary
+     *
+     * @return the value of jt_business_category.summary
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getSummary() {
+        return summary;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.summary
+     *
+     * @param summary the value for jt_business_category.summary
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setSummary(String summary) {
+        this.summary = summary;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.number
+     *
+     * @return the value of jt_business_category.number
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getNumber() {
+        return number;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.number
+     *
+     * @param number the value for jt_business_category.number
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setNumber(String number) {
+        this.number = number;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.create_time
+     *
+     * @return the value of jt_business_category.create_time
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.create_time
+     *
+     * @param createTime the value for jt_business_category.create_time
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.super_id
+     *
+     * @return the value of jt_business_category.super_id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getSuperId() {
+        return superId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.super_id
+     *
+     * @param superId the value for jt_business_category.super_id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setSuperId(String superId) {
+        this.superId = superId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.img_url
+     *
+     * @return the value of jt_business_category.img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getImgUrl() {
+        return imgUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.img_url
+     *
+     * @param imgUrl the value for jt_business_category.img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setImgUrl(String imgUrl) {
+        this.imgUrl = imgUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.layer
+     *
+     * @return the value of jt_business_category.layer
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Integer getLayer() {
+        return layer;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.layer
+     *
+     * @param layer the value for jt_business_category.layer
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setLayer(Integer layer) {
+        this.layer = layer;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_category.sort
+     *
+     * @return the value of jt_business_category.sort
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Integer getSort() {
+        return sort;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_category.sort
+     *
+     * @param sort the value for jt_business_category.sort
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setSort(Integer sort) {
+        this.sort = sort;
+    }
+}

+ 903 - 0
src/main/java/com/goafanti/common/model/JtBusinessCategoryExample.java

@@ -0,0 +1,903 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class JtBusinessCategoryExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public JtBusinessCategoryExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(String value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("id like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("id not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNull() {
+            addCriterion("name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIsNotNull() {
+            addCriterion("name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameEqualTo(String value) {
+            addCriterion("name =", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotEqualTo(String value) {
+            addCriterion("name <>", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThan(String value) {
+            addCriterion("name >", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameGreaterThanOrEqualTo(String value) {
+            addCriterion("name >=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThan(String value) {
+            addCriterion("name <", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLessThanOrEqualTo(String value) {
+            addCriterion("name <=", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameLike(String value) {
+            addCriterion("name like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotLike(String value) {
+            addCriterion("name not like", value, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameIn(List<String> values) {
+            addCriterion("name in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotIn(List<String> values) {
+            addCriterion("name not in", values, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameBetween(String value1, String value2) {
+            addCriterion("name between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andNameNotBetween(String value1, String value2) {
+            addCriterion("name not between", value1, value2, "name");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryIsNull() {
+            addCriterion("summary is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryIsNotNull() {
+            addCriterion("summary is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryEqualTo(String value) {
+            addCriterion("summary =", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryNotEqualTo(String value) {
+            addCriterion("summary <>", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryGreaterThan(String value) {
+            addCriterion("summary >", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryGreaterThanOrEqualTo(String value) {
+            addCriterion("summary >=", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryLessThan(String value) {
+            addCriterion("summary <", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryLessThanOrEqualTo(String value) {
+            addCriterion("summary <=", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryLike(String value) {
+            addCriterion("summary like", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryNotLike(String value) {
+            addCriterion("summary not like", value, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryIn(List<String> values) {
+            addCriterion("summary in", values, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryNotIn(List<String> values) {
+            addCriterion("summary not in", values, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryBetween(String value1, String value2) {
+            addCriterion("summary between", value1, value2, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andSummaryNotBetween(String value1, String value2) {
+            addCriterion("summary not between", value1, value2, "summary");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberIsNull() {
+            addCriterion("number is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberIsNotNull() {
+            addCriterion("number is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberEqualTo(String value) {
+            addCriterion("number =", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberNotEqualTo(String value) {
+            addCriterion("number <>", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberGreaterThan(String value) {
+            addCriterion("number >", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberGreaterThanOrEqualTo(String value) {
+            addCriterion("number >=", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberLessThan(String value) {
+            addCriterion("number <", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberLessThanOrEqualTo(String value) {
+            addCriterion("number <=", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberLike(String value) {
+            addCriterion("number like", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberNotLike(String value) {
+            addCriterion("number not like", value, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberIn(List<String> values) {
+            addCriterion("number in", values, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberNotIn(List<String> values) {
+            addCriterion("number not in", values, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberBetween(String value1, String value2) {
+            addCriterion("number between", value1, value2, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andNumberNotBetween(String value1, String value2) {
+            addCriterion("number not between", value1, value2, "number");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdIsNull() {
+            addCriterion("super_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdIsNotNull() {
+            addCriterion("super_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdEqualTo(String value) {
+            addCriterion("super_id =", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotEqualTo(String value) {
+            addCriterion("super_id <>", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdGreaterThan(String value) {
+            addCriterion("super_id >", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdGreaterThanOrEqualTo(String value) {
+            addCriterion("super_id >=", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdLessThan(String value) {
+            addCriterion("super_id <", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdLessThanOrEqualTo(String value) {
+            addCriterion("super_id <=", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdLike(String value) {
+            addCriterion("super_id like", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotLike(String value) {
+            addCriterion("super_id not like", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdIn(List<String> values) {
+            addCriterion("super_id in", values, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotIn(List<String> values) {
+            addCriterion("super_id not in", values, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdBetween(String value1, String value2) {
+            addCriterion("super_id between", value1, value2, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotBetween(String value1, String value2) {
+            addCriterion("super_id not between", value1, value2, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlIsNull() {
+            addCriterion("img_url is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlIsNotNull() {
+            addCriterion("img_url is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlEqualTo(String value) {
+            addCriterion("img_url =", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlNotEqualTo(String value) {
+            addCriterion("img_url <>", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlGreaterThan(String value) {
+            addCriterion("img_url >", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlGreaterThanOrEqualTo(String value) {
+            addCriterion("img_url >=", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlLessThan(String value) {
+            addCriterion("img_url <", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlLessThanOrEqualTo(String value) {
+            addCriterion("img_url <=", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlLike(String value) {
+            addCriterion("img_url like", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlNotLike(String value) {
+            addCriterion("img_url not like", value, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlIn(List<String> values) {
+            addCriterion("img_url in", values, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlNotIn(List<String> values) {
+            addCriterion("img_url not in", values, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlBetween(String value1, String value2) {
+            addCriterion("img_url between", value1, value2, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andImgUrlNotBetween(String value1, String value2) {
+            addCriterion("img_url not between", value1, value2, "imgUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerIsNull() {
+            addCriterion("layer is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerIsNotNull() {
+            addCriterion("layer is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerEqualTo(Integer value) {
+            addCriterion("layer =", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerNotEqualTo(Integer value) {
+            addCriterion("layer <>", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerGreaterThan(Integer value) {
+            addCriterion("layer >", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerGreaterThanOrEqualTo(Integer value) {
+            addCriterion("layer >=", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerLessThan(Integer value) {
+            addCriterion("layer <", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerLessThanOrEqualTo(Integer value) {
+            addCriterion("layer <=", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerIn(List<Integer> values) {
+            addCriterion("layer in", values, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerNotIn(List<Integer> values) {
+            addCriterion("layer not in", values, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerBetween(Integer value1, Integer value2) {
+            addCriterion("layer between", value1, value2, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerNotBetween(Integer value1, Integer value2) {
+            addCriterion("layer not between", value1, value2, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortIsNull() {
+            addCriterion("sort is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortIsNotNull() {
+            addCriterion("sort is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortEqualTo(Integer value) {
+            addCriterion("sort =", value, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortNotEqualTo(Integer value) {
+            addCriterion("sort <>", value, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortGreaterThan(Integer value) {
+            addCriterion("sort >", value, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
+            addCriterion("sort >=", value, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortLessThan(Integer value) {
+            addCriterion("sort <", value, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortLessThanOrEqualTo(Integer value) {
+            addCriterion("sort <=", value, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortIn(List<Integer> values) {
+            addCriterion("sort in", values, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortNotIn(List<Integer> values) {
+            addCriterion("sort not in", values, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortBetween(Integer value1, Integer value2) {
+            addCriterion("sort between", value1, value2, "sort");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortNotBetween(Integer value1, Integer value2) {
+            addCriterion("sort not between", value1, value2, "sort");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_business_category
+     *
+     * @mbg.generated do_not_delete_during_merge Wed Jun 20 11:08:54 CST 2018
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_business_category
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 567 - 0
src/main/java/com/goafanti/common/model/JtBusinessProject.java

@@ -0,0 +1,567 @@
+package com.goafanti.common.model;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class JtBusinessProject {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.name
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String name;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.category_id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String categoryId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.number
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String number;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private BigDecimal price;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.activity_price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private BigDecimal activityPrice;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.member_price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private BigDecimal memberPrice;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.offset
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Float offset;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.activity_flag
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Integer activityFlag;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.introduce
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String introduce;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.province
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Integer province;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.city
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Integer city;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.create_time
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private Date createTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.min_img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String minImgUrl;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.max_img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String maxImgUrl;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.value
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String value;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column jt_business_project.apply_conditions
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    private String applyConditions;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.id
+     *
+     * @return the value of jt_business_project.id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.id
+     *
+     * @param id the value for jt_business_project.id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.name
+     *
+     * @return the value of jt_business_project.name
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.name
+     *
+     * @param name the value for jt_business_project.name
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.category_id
+     *
+     * @return the value of jt_business_project.category_id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getCategoryId() {
+        return categoryId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.category_id
+     *
+     * @param categoryId the value for jt_business_project.category_id
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setCategoryId(String categoryId) {
+        this.categoryId = categoryId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.number
+     *
+     * @return the value of jt_business_project.number
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getNumber() {
+        return number;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.number
+     *
+     * @param number the value for jt_business_project.number
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setNumber(String number) {
+        this.number = number;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.price
+     *
+     * @return the value of jt_business_project.price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public BigDecimal getPrice() {
+        return price;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.price
+     *
+     * @param price the value for jt_business_project.price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setPrice(BigDecimal price) {
+        this.price = price;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.activity_price
+     *
+     * @return the value of jt_business_project.activity_price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public BigDecimal getActivityPrice() {
+        return activityPrice;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.activity_price
+     *
+     * @param activityPrice the value for jt_business_project.activity_price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setActivityPrice(BigDecimal activityPrice) {
+        this.activityPrice = activityPrice;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.member_price
+     *
+     * @return the value of jt_business_project.member_price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public BigDecimal getMemberPrice() {
+        return memberPrice;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.member_price
+     *
+     * @param memberPrice the value for jt_business_project.member_price
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setMemberPrice(BigDecimal memberPrice) {
+        this.memberPrice = memberPrice;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.offset
+     *
+     * @return the value of jt_business_project.offset
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Float getOffset() {
+        return offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.offset
+     *
+     * @param offset the value for jt_business_project.offset
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setOffset(Float offset) {
+        this.offset = offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.activity_flag
+     *
+     * @return the value of jt_business_project.activity_flag
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Integer getActivityFlag() {
+        return activityFlag;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.activity_flag
+     *
+     * @param activityFlag the value for jt_business_project.activity_flag
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setActivityFlag(Integer activityFlag) {
+        this.activityFlag = activityFlag;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.introduce
+     *
+     * @return the value of jt_business_project.introduce
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getIntroduce() {
+        return introduce;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.introduce
+     *
+     * @param introduce the value for jt_business_project.introduce
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setIntroduce(String introduce) {
+        this.introduce = introduce;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.province
+     *
+     * @return the value of jt_business_project.province
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Integer getProvince() {
+        return province;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.province
+     *
+     * @param province the value for jt_business_project.province
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setProvince(Integer province) {
+        this.province = province;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.city
+     *
+     * @return the value of jt_business_project.city
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Integer getCity() {
+        return city;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.city
+     *
+     * @param city the value for jt_business_project.city
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setCity(Integer city) {
+        this.city = city;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.create_time
+     *
+     * @return the value of jt_business_project.create_time
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.create_time
+     *
+     * @param createTime the value for jt_business_project.create_time
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.min_img_url
+     *
+     * @return the value of jt_business_project.min_img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getMinImgUrl() {
+        return minImgUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.min_img_url
+     *
+     * @param minImgUrl the value for jt_business_project.min_img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setMinImgUrl(String minImgUrl) {
+        this.minImgUrl = minImgUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.max_img_url
+     *
+     * @return the value of jt_business_project.max_img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getMaxImgUrl() {
+        return maxImgUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.max_img_url
+     *
+     * @param maxImgUrl the value for jt_business_project.max_img_url
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setMaxImgUrl(String maxImgUrl) {
+        this.maxImgUrl = maxImgUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.value
+     *
+     * @return the value of jt_business_project.value
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.value
+     *
+     * @param value the value for jt_business_project.value
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column jt_business_project.apply_conditions
+     *
+     * @return the value of jt_business_project.apply_conditions
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public String getApplyConditions() {
+        return applyConditions;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column jt_business_project.apply_conditions
+     *
+     * @param applyConditions the value for jt_business_project.apply_conditions
+     *
+     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
+     */
+    public void setApplyConditions(String applyConditions) {
+        this.applyConditions = applyConditions;
+    }
+}

Разлика између датотеке није приказан због своје велике величине
+ 1414 - 0
src/main/java/com/goafanti/common/model/JtBusinessProjectExample.java


+ 2 - 0
src/main/java/com/goafanti/user/service/UserIdentityService.java

@@ -58,4 +58,6 @@ public interface UserIdentityService {
 
 	List<fieldGlossoryBo> domainList();
 	
+	List<consultantListBo> getConsultantList(int size);
+	
 }

+ 8 - 0
src/main/java/com/goafanti/user/service/impl/UserIdentityServiceImpl.java

@@ -456,4 +456,12 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
 		return list;
 	}
 
+	@Override
+	public List<consultantListBo> getConsultantList(int size) {
+		// TODO Auto-generated method stub
+		return userIdentityMapper.getConsultantList(size);
+	}
+	
+	
+
 }

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/serviceIndex.html