Browse Source

新增标签库与项目设置标签

anderx 7 years ago
parent
commit
5153cb143e

+ 5 - 5
GeneratorConfig.xml

@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!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.46.jar" />
+   <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.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" />
+   <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_project"/>
   </context>
 </generatorConfiguration>

+ 15 - 0
src/main/java/com/goafanti/business/bo/JtBusinessProjectResult.java

@@ -1,10 +1,15 @@
 package com.goafanti.business.bo;
 
+import java.util.List;
+
 import com.goafanti.common.model.JtBusinessProject;
+import com.goafanti.common.model.JtTag;
 
 public class JtBusinessProjectResult extends JtBusinessProject {
 	private Integer module;
 	
+	private List<JtTag> tags;
+	
 	public Integer getModule() {
 		return module;
 	}
@@ -57,5 +62,15 @@ public void setCompanyId(String companyId) {
 		if(super.getMinImgUrl()!=null && !super.getMinImgUrl().contains("."))return null;
 		return super.getMinImgUrl();
 	}
+
+	public List<JtTag> getTags() {
+		return tags;
+	}
+
+	public void setTags(List<JtTag> tags) {
+		this.tags = tags;
+	}
+
+	
 	
 }

+ 25 - 0
src/main/java/com/goafanti/business/bo/JtTagBo.java

@@ -0,0 +1,25 @@
+package com.goafanti.business.bo;
+
+public class JtTagBo  {
+	private String id;
+	private String name;
+	private String createTime;
+	public String getCreateTime() {
+		return createTime;
+	}
+	public void setCreateTime(String createTime) {
+		this.createTime = createTime;
+	}
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	public String getId() {
+		return id;
+	}
+	public void setId(String id) {
+		this.id = id;
+	}
+}

+ 70 - 10
src/main/java/com/goafanti/business/controller/AdminJtBusinessController.java

@@ -10,15 +10,16 @@ import org.springframework.web.bind.annotation.RestController;
 
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.business.service.JtBusinessServiceWithCategoryMapper;
+import com.goafanti.business.service.JtTagService;
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.controller.CertifyApiController;
-import com.goafanti.common.enums.AchievementAuditStatus;
 import com.goafanti.common.enums.AttachmentType;
 import com.goafanti.common.enums.ProjectAuditStatus;
 import com.goafanti.common.model.JtBusinessCategory;
 import com.goafanti.common.model.JtBusinessProject;
-import com.goafanti.portal.bo.AchievementResultObject;
+import com.goafanti.common.model.JtTag;
+import com.goafanti.common.utils.StringUtils;
 
 @RestController
 @RequestMapping(value = "/api/admin/jtBusiness")
@@ -26,6 +27,8 @@ public class AdminJtBusinessController extends CertifyApiController{
 	
 	@Resource 
 	private JtBusinessService jtBusinessService;
+	@Resource 
+	private JtTagService	jtTagService;
 	
 	@Resource JtBusinessServiceWithCategoryMapper JtBusinessServiceWithCategoryMapper;
 	
@@ -33,7 +36,6 @@ public class AdminJtBusinessController extends CertifyApiController{
 	
 	/*
 	 * 删除品类
-	 * 
 	 * */
 	@RequestMapping(value="/category/delete",method=RequestMethod.POST)
 	private Result deleteCetegoryById(String id) {
@@ -51,7 +53,6 @@ public class AdminJtBusinessController extends CertifyApiController{
 
 	
 	/*
-	 * 
 	 * 品类详情
 	 * */
 	@RequestMapping(value="/category/detail",method=RequestMethod.GET)
@@ -65,9 +66,7 @@ public class AdminJtBusinessController extends CertifyApiController{
 		return result;
 	}
 	/*
-	 * 
 	 * 新增品類
-	 * 
 	 * */
 	@RequestMapping(value="/category/apply",method=RequestMethod.POST)
 	private Result insertCategory(JtBusinessCategory jtBusinessCategory) {
@@ -98,7 +97,6 @@ public class AdminJtBusinessController extends CertifyApiController{
 	
 	/*
 	 * 查询品类
-	 * 
 	 * */
 	@RequestMapping(value="/category/list",method=RequestMethod.GET)
 	private Result getCategoryList(JtBusinessCategory jtBusinessCategory,Integer pageNo,Integer pageSize) {
@@ -132,9 +130,7 @@ public class AdminJtBusinessController extends CertifyApiController{
 	}
 	
 	/*
-	 * 
 	 * 新增项目
-	 * 
 	 * */
 	@RequestMapping(value="/project/apply",method=RequestMethod.POST)
 	private Result insertJtBusinessProject(JtBusinessProject jtBusinessProject) {
@@ -182,7 +178,6 @@ public class AdminJtBusinessController extends CertifyApiController{
 	
 	/*
 	 * 项目详情
-	 * 
 	 * */
 	@RequestMapping(value="/project/detail",method=RequestMethod.GET)
 	private Result getProjectDetail(String id) {
@@ -275,5 +270,70 @@ public class AdminJtBusinessController extends CertifyApiController{
     	return result; 
 	}
 	
+	/*
+	 * 新增标签
+	 * */
+	@RequestMapping(value="/tag/apply",method=RequestMethod.POST)
+	private Result insertJtTag(JtTag a) {
+		Result result=new Result();
+		if(StringUtils.isBlank(a.getName())) {
+    		result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"标签名称","标签名称"));return result;
+    	}
+		result.data(jtTagService.addTag(a));
+		return result;
+		
+	}
+	/*
+	 * 删除标签
+	 * */
+	@RequestMapping(value="/tag/delete",method=RequestMethod.POST)
+	private Result deleteJtTag(JtTag a) {
+		Result result=new Result();
+		if(StringUtils.isBlank(a.getId())) {
+    		result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"标签ID","标签ID"));return result;
+    	}
+		result.data(jtTagService.deleteJtTag(a.getId()));
+		return result;
+		
+	}
+	
+	/*
+	 * 修改标签
+	 * */
+	@RequestMapping(value="/tag/update",method=RequestMethod.POST)
+	private Result updateJtTag(JtTag a) {
+		Result result=new Result();
+		if(StringUtils.isBlank(a.getId())) {
+    		result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"标签ID","标签ID"));return result;
+    	}
+		if(StringUtils.isBlank(a.getName())) {
+    		result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"标签名称","标签名称"));return result;
+    	}
+		result.data(jtTagService.updateJtTag(a));
+		return result;
+		
+	}
+	/*
+	 * 标签内容
+	 * */
+	@RequestMapping(value="/tag/detail",method=RequestMethod.GET)
+	private Result detailJtTag(JtTag a) {
+		Result result=new Result();
+		if(StringUtils.isBlank(a.getId())) {
+    		result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"标签ID","标签ID"));return result;
+    	}
+		result.data(jtTagService.detailJtTag(a));
+		return result;
+	}
+	/*
+	 * 标签列表
+	 * */
+	@RequestMapping(value="/tag/list",method=RequestMethod.GET)
+	private Result detailJtTag(JtTag a,Integer pageNo,Integer pageSize) {
+		Result result=new Result();
+		result.data(jtTagService.selectListJtTag(a,pageNo,pageSize));
+		return result;
+	}
+	
 	
 }

+ 13 - 0
src/main/java/com/goafanti/business/controller/UserJtBusinessController.java

@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RestController;
 
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.business.service.JtBusinessServiceWithCategoryMapper;
+import com.goafanti.business.service.JtTagService;
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.controller.CertifyApiController;
@@ -18,6 +19,7 @@ import com.goafanti.common.enums.AttachmentType;
 import com.goafanti.common.enums.ProjectAuditStatus;
 import com.goafanti.common.model.JtBusinessCategory;
 import com.goafanti.common.model.JtBusinessProject;
+import com.goafanti.common.model.JtTag;
 
 @RestController
 @RequestMapping(value = "/api/user/jtBusiness")
@@ -27,6 +29,8 @@ public class UserJtBusinessController extends CertifyApiController{
 	private JtBusinessService jtBusinessService;
 	
 	@Resource JtBusinessServiceWithCategoryMapper JtBusinessServiceWithCategoryMapper;
+	@Resource
+	private JtTagService	jtTagService;
 	/*
 	 * 
 	 * 新增项目
@@ -210,6 +214,15 @@ public class UserJtBusinessController extends CertifyApiController{
 		jtBusinessService.updateProject(jtBusinessProject);
 		return res;
 	}
+	/*
+	 * 标签列表
+	 * */
+	@RequestMapping(value="/tag/list",method=RequestMethod.GET)
+	private Result detailJtTag(JtTag a,Integer pageNo,Integer pageSize) {
+		Result result=new Result();
+		result.data(jtTagService.selectListJtTag(a,pageNo,pageSize));
+		return result;
+	}
 	
 	
 }

+ 19 - 0
src/main/java/com/goafanti/business/service/JtTagService.java

@@ -0,0 +1,19 @@
+package com.goafanti.business.service;
+
+import com.goafanti.business.bo.JtTagBo;
+import com.goafanti.common.model.JtTag;
+import com.goafanti.core.mybatis.page.Pagination;
+
+public interface JtTagService {
+
+	int addTag(JtTag a);
+
+	int deleteJtTag(String id);
+
+	int updateJtTag(JtTag a);
+
+	JtTag detailJtTag(JtTag a);
+
+	Pagination<JtTagBo> selectListJtTag(JtTag a, Integer pageNo, Integer pageSize);
+
+}

+ 19 - 5
src/main/java/com/goafanti/business/service/impl/JtBusinessServiceImpl.java

@@ -16,9 +16,11 @@ import com.goafanti.business.bo.JtBusinessProjectResult;
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.common.dao.JtBusinessCategoryMapper;
 import com.goafanti.common.dao.JtBusinessProjectMapper;
+import com.goafanti.common.dao.JtTagMapper;
 import com.goafanti.common.enums.ProjectAuditStatus;
 import com.goafanti.common.model.JtBusinessCategory;
 import com.goafanti.common.model.JtBusinessProject;
+import com.goafanti.common.model.JtTag;
 import com.goafanti.common.utils.StringUtils;
 import com.goafanti.core.mybatis.BaseMybatisDao;
 import com.goafanti.core.mybatis.page.Pagination;
@@ -31,6 +33,8 @@ public class JtBusinessServiceImpl  extends BaseMybatisDao<JtBusinessProjectMapp
 	JtBusinessCategoryMapper jtBusinessCategoryMapper;
 	@Autowired
 	JtBusinessProjectMapper jtBusinessProjectMapper;
+	@Autowired
+	private JtTagMapper	jtTagMapper;
 	@Override
 	public JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer, String name) {
 		// TODO Auto-generated method stub 
@@ -51,10 +55,12 @@ public class JtBusinessServiceImpl  extends BaseMybatisDao<JtBusinessProjectMapp
 
 	@Override
 	public JtBusinessProjectResult getBusinessProjectDetail(String id) {
-		// TODO Auto-generated method stub
-		return jtBusinessProjectMapper.selectByPrimaryKeyWithModule(id);
+		JtBusinessProjectResult j=jtBusinessProjectMapper.selectByPrimaryKeyWithModule(id);
+		j.setTags(jtTagMapper.selectProjectTag(id));
+		return j;
 	}
 
+
 	@Override
 	public JtBusinessCategoryTree getCategoryTree(String id) {
 		// TODO Auto-generated method stub
@@ -259,14 +265,22 @@ if(auditStatus!=null ) {
 
 	@Override
 	public int deleteProjectById(String id) {
-		// TODO Auto-generated method stub
+
 		return jtBusinessProjectMapper.deleteByPrimaryKey(id);
 	}
 
 	@Override
 	public int updateProject(JtBusinessProject jtBusinessProject) {
-		// TODO Auto-generated method stub
-		return jtBusinessProjectMapper.updateByPrimaryKeySelective(jtBusinessProject);
+		jtBusinessProjectMapper.updateByPrimaryKeySelective(jtBusinessProject);
+		if(StringUtils.isNotBlank(jtBusinessProject.getTag())){
+			String str=jtBusinessProject.getTag();
+			String[] strs = str.split(",");
+			jtTagMapper.deleteByProjectId(jtBusinessProject.getId());
+			for (String s : strs) {
+				jtTagMapper.insertProjectTag(UUID.randomUUID().toString(),s,jtBusinessProject.getId());
+			}
+		}
+		return 1;
 	}
 
 	@Override

+ 51 - 0
src/main/java/com/goafanti/business/service/impl/JtTagServiceImpl.java

@@ -0,0 +1,51 @@
+package com.goafanti.business.service.impl;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.UUID;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Service;
+
+import com.goafanti.business.bo.JtTagBo;
+import com.goafanti.business.service.JtTagService;
+import com.goafanti.common.dao.JtTagMapper;
+import com.goafanti.common.model.JtTag;
+import com.goafanti.common.utils.StringUtils;
+import com.goafanti.core.mybatis.BaseMybatisDao;
+import com.goafanti.core.mybatis.page.Pagination;
+@Service
+public class JtTagServiceImpl   extends BaseMybatisDao<JtTagMapper> implements JtTagService {
+	@Resource
+	private JtTagMapper	jtTagMapper;
+	@Override
+	public int addTag(JtTag a) {
+		a.setId(UUID.randomUUID().toString());
+		a.setCreateTime(new Date());
+		return jtTagMapper.insert(a);
+	}
+	@Override
+	public int deleteJtTag(String id) {
+		return jtTagMapper.deleteByPrimaryKey(id);
+	}
+	@Override
+	public int updateJtTag(JtTag a) {
+		return jtTagMapper.updateByPrimaryKeySelective(a);
+	}
+	@Override
+	public JtTag detailJtTag(JtTag a) {
+		return jtTagMapper.selectByPrimaryKey(a.getId());
+	}
+	@SuppressWarnings("unchecked")
+	@Override
+	public Pagination<JtTagBo> selectListJtTag(JtTag a, Integer pageNo, Integer pageSize) {
+		Map<String, Object> params = new HashMap<>();
+		if(pageNo==null ||pageNo<1)pageNo=1;
+		if(pageSize==null ||pageSize<1)pageSize=10;
+		if(StringUtils.isNotBlank(a.getName()))params.put("name", a.getName());
+		return (Pagination<JtTagBo>)findPage("selectJtTagList", "selectJtTagCount", params, pageNo, pageSize);
+	}
+
+}

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

@@ -11,68 +11,68 @@ 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	int updateByPrimaryKey(JtBusinessProject record);
 

+ 85 - 0
src/main/java/com/goafanti/common/dao/JtTagMapper.java

@@ -0,0 +1,85 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.JtTag;
+import com.goafanti.common.model.JtTagExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface JtTagMapper {
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	long countByExample(JtTagExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int deleteByExample(JtTagExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int deleteByPrimaryKey(String id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int insert(JtTag record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int insertSelective(JtTag record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	List<JtTag> selectByExample(JtTagExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	JtTag selectByPrimaryKey(String id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int updateByExampleSelective(@Param("record") JtTag record, @Param("example") JtTagExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int updateByExample(@Param("record") JtTag record, @Param("example") JtTagExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int updateByPrimaryKeySelective(JtTag record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	int updateByPrimaryKey(JtTag record);
+
+	int deleteByProjectId(String id);
+
+	int insertProjectTag(@Param("id")String s, @Param("tid")String id, @Param("pid")String string);
+
+	List<JtTag> selectProjectTag(String id);
+
+	
+
+
+}

+ 25 - 44
src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     <id column="id" jdbcType="VARCHAR" property="id" />
     <result column="name" jdbcType="VARCHAR" property="name" />
@@ -30,13 +30,12 @@
     <result column="audit_info" jdbcType="VARCHAR" property="auditInfo" />
     <result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
     <result column="advertisement" jdbcType="VARCHAR" property="advertisement" />
-    <result column="tag" jdbcType="VARCHAR" property="tag" />
   </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 Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -70,7 +69,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -104,17 +103,17 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
-  id, name, category_id as categoryId, number, price, activity_price as activityPrice, member_price as memberPrice, offset, activity_flag as activityFlag, 
-     introduce, province, city, create_time as createTime, min_img_url as minImgUrl, max_img_url as maxImgUrl, value, apply_conditions as applyConditions, 
-     owner_id as ownerId, is_hot as isHot, audit_status as auditStatus, audit_info as auditInfo, release_date as releaseDate, advertisement, tag
+    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, 
+    owner_id, is_hot, audit_status, audit_info, release_date, advertisement
   </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 Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     select
     <if test="distinct">
@@ -133,7 +132,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -144,7 +143,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     delete from jt_business_project
     where id = #{id,jdbcType=VARCHAR}
@@ -153,7 +152,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     delete from jt_business_project
     <if test="_parameter != null">
@@ -164,7 +163,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     insert into jt_business_project (id, name, category_id, 
       number, price, activity_price, 
@@ -173,8 +172,7 @@
       create_time, min_img_url, max_img_url, 
       value, apply_conditions, owner_id, 
       is_hot, audit_status, audit_info, 
-      release_date, advertisement, tag
-      )
+      release_date, advertisement)
     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}, 
@@ -182,14 +180,13 @@
       #{createTime,jdbcType=TIMESTAMP}, #{minImgUrl,jdbcType=VARCHAR}, #{maxImgUrl,jdbcType=VARCHAR}, 
       #{value,jdbcType=VARCHAR}, #{applyConditions,jdbcType=VARCHAR}, #{ownerId,jdbcType=VARCHAR}, 
       #{isHot,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{auditInfo,jdbcType=VARCHAR}, 
-      #{releaseDate,jdbcType=TIMESTAMP}, #{advertisement,jdbcType=VARCHAR}, #{tag,jdbcType=VARCHAR}
-      )
+      #{releaseDate,jdbcType=TIMESTAMP}, #{advertisement,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 Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     insert into jt_business_project
     <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -262,9 +259,6 @@
       <if test="advertisement != null">
         advertisement,
       </if>
-      <if test="tag != null">
-        tag,
-      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -336,16 +330,13 @@
       <if test="advertisement != null">
         #{advertisement,jdbcType=VARCHAR},
       </if>
-      <if test="tag != null">
-        #{tag,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 Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     select count(*) from jt_business_project
     <if test="_parameter != null">
@@ -356,7 +347,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     update jt_business_project
     <set>
@@ -429,9 +420,6 @@
       <if test="record.advertisement != null">
         advertisement = #{record.advertisement,jdbcType=VARCHAR},
       </if>
-      <if test="record.tag != null">
-        tag = #{record.tag,jdbcType=VARCHAR},
-      </if>
     </set>
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -441,7 +429,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     update jt_business_project
     set id = #{record.id,jdbcType=VARCHAR},
@@ -466,8 +454,7 @@
       audit_status = #{record.auditStatus,jdbcType=INTEGER},
       audit_info = #{record.auditInfo,jdbcType=VARCHAR},
       release_date = #{record.releaseDate,jdbcType=TIMESTAMP},
-      advertisement = #{record.advertisement,jdbcType=VARCHAR},
-      tag = #{record.tag,jdbcType=VARCHAR}
+      advertisement = #{record.advertisement,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -476,7 +463,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     update jt_business_project
     <set>
@@ -546,9 +533,6 @@
       <if test="advertisement != null">
         advertisement = #{advertisement,jdbcType=VARCHAR},
       </if>
-      <if test="tag != null">
-        tag = #{tag,jdbcType=VARCHAR},
-      </if>
     </set>
     where id = #{id,jdbcType=VARCHAR}
   </update>
@@ -556,7 +540,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Jul 25 08:54:01 CST 2018.
+      This element was generated on Wed Aug 01 10:34:40 CST 2018.
     -->
     update jt_business_project
     set name = #{name,jdbcType=VARCHAR},
@@ -580,8 +564,7 @@
       audit_status = #{auditStatus,jdbcType=INTEGER},
       audit_info = #{auditInfo,jdbcType=VARCHAR},
       release_date = #{releaseDate,jdbcType=TIMESTAMP},
-      advertisement = #{advertisement,jdbcType=VARCHAR},
-      tag = #{tag,jdbcType=VARCHAR}
+      advertisement = #{advertisement,jdbcType=VARCHAR}
     where id = #{id,jdbcType=VARCHAR}
   </update>
   <select id="selectByPrimaryKeyWithModule" resultType="com.goafanti.business.bo.JtBusinessProjectResult">
@@ -589,7 +572,7 @@
         jtbp.id, jtbp.name, jtbp.category_id as categoryId, jtbp.number, jtbp.price, jtbp.activity_price as activityPrice, jtbp.member_price as memberPrice, jtbp.offset, 
         jtbp.activity_flag as activityFlag, 
     jtbp.introduce, jtbp.province, jtbp.city, jtbp.create_time as createTime, jtbp.min_img_url as minImgUrl, jtbp.max_img_url as maxImgUrl, jtbp.value, jtbp.apply_conditions as applyConditions, 
-    jtbp.owner_id as ownerId, jtbp.is_hot as isHot, jtbp.audit_status as auditStatus, jtbp.audit_info as auditInfo, jtbp.release_date as releaseDate,jtbc.module as module,jtbp.advertisement,jtbp.tag
+    jtbp.owner_id as ownerId, jtbp.is_hot as isHot, jtbp.audit_status as auditStatus, jtbp.audit_info as auditInfo, jtbp.release_date as releaseDate,jtbc.module as module,jtbp.advertisement
     from jt_business_project jtbp
     left join jt_business_category jtbc on jtbc.id =  jtbp.category_id
     where jtbp.id = #{id,jdbcType=VARCHAR}
@@ -637,8 +620,7 @@
 	  jtbp.release_Date as releaseDate,
 	  jtbp.advertisement,
 	  dct.dealCount as dealCount,
-	  u.identify_name as companyName,u.id as companyId,
-	  jtbp.tag
+	  u.identify_name as companyName,u.id as companyId
   from jt_business_project jtbp
   left join user u on u.id=jtbp.owner_id
   <if test="topId!=null">
@@ -741,8 +723,7 @@
 	  jtbp.is_hot as isHot,
 	  jtbp.audit_status as auditStatus,
 	  jtbp.release_Date as releaseDate,
-	  jtbp.advertisement,
-	  jtbp.tag
+	  jtbp.advertisement
    from 
   jt_business_project jtbp
   left join project_interest pi on jtbp.id=pi.project_id

+ 285 - 0
src/main/java/com/goafanti/common/mapper/JtTagMapper.xml

@@ -0,0 +1,285 @@
+<?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.JtTagMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtTag">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </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 Tue Jul 31 14:45:47 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 Tue Jul 31 14:45:47 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 Tue Jul 31 14:45:47 CST 2018.
+    -->
+    id, name, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.JtTagExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from jt_tag
+    <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 Tue Jul 31 14:45:47 CST 2018.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from jt_tag
+    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 Tue Jul 31 14:45:47 CST 2018.
+    -->
+    delete from jt_tag
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtTagExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    delete from jt_tag
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.JtTag">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    insert into jt_tag (id, name, create_time
+      )
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.JtTag">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    insert into jt_tag
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="name != null">
+        name,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </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="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.JtTagExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    select count(*) from jt_tag
+    <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 Tue Jul 31 14:45:47 CST 2018.
+    -->
+    update jt_tag
+    <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.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </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 Tue Jul 31 14:45:47 CST 2018.
+    -->
+    update jt_tag
+    set id = #{record.id,jdbcType=VARCHAR},
+      name = #{record.name,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtTag">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    update jt_tag
+    <set>
+      <if test="name != null">
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtTag">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Tue Jul 31 14:45:47 CST 2018.
+    -->
+    update jt_tag
+    set name = #{name,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <select id="selectJtTagList" resultType='com.goafanti.business.bo.JtTagBo'>
+  	select 
+  	 id, name, date_format(create_time,'%Y-%m-%d %H:%I:%S')as createTime 
+  	 from jt_tag
+  	 <if test="name != null">
+  	 where name like  concat("%",#{name,jdbcType=VARCHAR},"%")
+  	 </if>
+  	<if test="page_sql!=null">
+		${page_sql}
+	</if>
+  </select>
+  <select id="selectJtTagCount" resultType="integer">
+  	select count(*) from jt_tag
+  	<if test="name != null">
+  	 where name like  concat("%",#{name,jdbcType=VARCHAR},"%")
+  	 </if>
+  </select>
+	<delete id="deleteByProjectId">
+	delete from jt_business_project_tag  
+    where project_id = #{id,jdbcType=VARCHAR}
+	</delete>
+	<insert id="insertProjectTag">
+	insert into jt_business_project_tag( id, project_id, tag_id )
+	values( #{id,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{tid,jdbcType=VARCHAR} )
+	</insert>
+	<select id="selectProjectTag" resultType="com.goafanti.common.model.JtTag">
+	select a.id,a.name from jt_tag a  left join jt_business_project_tag b on a.id=b.tag_id
+	where project_id= #{id,jdbcType=VARCHAR}
+	</select>
+</mapper>

+ 72 - 84
src/main/java/com/goafanti/common/model/JtBusinessProject.java

@@ -7,129 +7,126 @@ public class JtBusinessProject {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.id
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private String applyConditions;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.owner_id
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private String ownerId;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.is_hot
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private Integer isHot;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.audit_status
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private Integer auditStatus;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.audit_info
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private String auditInfo;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.release_date
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private Date releaseDate;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.advertisement
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	private String advertisement;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_business_project.tag
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
-	 */
+	
 	private String tag;
 
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getId() {
 		return id;
@@ -138,7 +135,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setId(String id) {
 		this.id = id;
@@ -147,7 +144,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getName() {
 		return name;
@@ -156,7 +153,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setName(String name) {
 		this.name = name;
@@ -165,7 +162,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getCategoryId() {
 		return categoryId;
@@ -174,7 +171,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setCategoryId(String categoryId) {
 		this.categoryId = categoryId;
@@ -183,7 +180,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getNumber() {
 		return number;
@@ -192,7 +189,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setNumber(String number) {
 		this.number = number;
@@ -201,7 +198,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public BigDecimal getPrice() {
 		return price;
@@ -210,7 +207,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setPrice(BigDecimal price) {
 		this.price = price;
@@ -219,7 +216,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public BigDecimal getActivityPrice() {
 		return activityPrice;
@@ -228,7 +225,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setActivityPrice(BigDecimal activityPrice) {
 		this.activityPrice = activityPrice;
@@ -237,7 +234,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public BigDecimal getMemberPrice() {
 		return memberPrice;
@@ -246,7 +243,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setMemberPrice(BigDecimal memberPrice) {
 		this.memberPrice = memberPrice;
@@ -255,7 +252,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Float getOffset() {
 		return offset;
@@ -264,7 +261,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setOffset(Float offset) {
 		this.offset = offset;
@@ -273,7 +270,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Integer getActivityFlag() {
 		return activityFlag;
@@ -282,7 +279,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setActivityFlag(Integer activityFlag) {
 		this.activityFlag = activityFlag;
@@ -291,7 +288,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getIntroduce() {
 		return introduce;
@@ -300,7 +297,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setIntroduce(String introduce) {
 		this.introduce = introduce;
@@ -309,7 +306,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Integer getProvince() {
 		return province;
@@ -318,7 +315,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setProvince(Integer province) {
 		this.province = province;
@@ -327,7 +324,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Integer getCity() {
 		return city;
@@ -336,7 +333,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setCity(Integer city) {
 		this.city = city;
@@ -345,7 +342,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Date getCreateTime() {
 		return createTime;
@@ -354,7 +351,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setCreateTime(Date createTime) {
 		this.createTime = createTime;
@@ -363,7 +360,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getMinImgUrl() {
 		return minImgUrl;
@@ -372,7 +369,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setMinImgUrl(String minImgUrl) {
 		this.minImgUrl = minImgUrl;
@@ -381,7 +378,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getMaxImgUrl() {
 		return maxImgUrl;
@@ -390,7 +387,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setMaxImgUrl(String maxImgUrl) {
 		this.maxImgUrl = maxImgUrl;
@@ -399,7 +396,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getValue() {
 		return value;
@@ -408,7 +405,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setValue(String value) {
 		this.value = value;
@@ -417,7 +414,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getApplyConditions() {
 		return applyConditions;
@@ -426,7 +423,7 @@ public class JtBusinessProject {
 	/**
 	 * 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 Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setApplyConditions(String applyConditions) {
 		this.applyConditions = applyConditions;
@@ -435,7 +432,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.owner_id
 	 * @return  the value of jt_business_project.owner_id
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getOwnerId() {
 		return ownerId;
@@ -444,7 +441,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.owner_id
 	 * @param ownerId  the value for jt_business_project.owner_id
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setOwnerId(String ownerId) {
 		this.ownerId = ownerId;
@@ -453,7 +450,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.is_hot
 	 * @return  the value of jt_business_project.is_hot
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Integer getIsHot() {
 		return isHot;
@@ -462,7 +459,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.is_hot
 	 * @param isHot  the value for jt_business_project.is_hot
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setIsHot(Integer isHot) {
 		this.isHot = isHot;
@@ -471,7 +468,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.audit_status
 	 * @return  the value of jt_business_project.audit_status
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Integer getAuditStatus() {
 		return auditStatus;
@@ -480,7 +477,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.audit_status
 	 * @param auditStatus  the value for jt_business_project.audit_status
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setAuditStatus(Integer auditStatus) {
 		this.auditStatus = auditStatus;
@@ -489,7 +486,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.audit_info
 	 * @return  the value of jt_business_project.audit_info
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getAuditInfo() {
 		return auditInfo;
@@ -498,7 +495,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.audit_info
 	 * @param auditInfo  the value for jt_business_project.audit_info
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setAuditInfo(String auditInfo) {
 		this.auditInfo = auditInfo;
@@ -507,7 +504,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.release_date
 	 * @return  the value of jt_business_project.release_date
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Date getReleaseDate() {
 		return releaseDate;
@@ -516,7 +513,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.release_date
 	 * @param releaseDate  the value for jt_business_project.release_date
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setReleaseDate(Date releaseDate) {
 		this.releaseDate = releaseDate;
@@ -525,7 +522,7 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.advertisement
 	 * @return  the value of jt_business_project.advertisement
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getAdvertisement() {
 		return advertisement;
@@ -534,28 +531,19 @@ public class JtBusinessProject {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.advertisement
 	 * @param advertisement  the value for jt_business_project.advertisement
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setAdvertisement(String advertisement) {
 		this.advertisement = advertisement;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_business_project.tag
-	 * @return  the value of jt_business_project.tag
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
-	 */
 	public String getTag() {
 		return tag;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_business_project.tag
-	 * @param tag  the value for jt_business_project.tag
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
-	 */
 	public void setTag(String tag) {
 		this.tag = tag;
-	}    
+	}
+   
     
 }

+ 16 - 86
src/main/java/com/goafanti/common/model/JtBusinessProjectExample.java

@@ -8,23 +8,23 @@ import java.util.List;
 public class JtBusinessProjectExample {
     /**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	protected String orderByClause;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	protected boolean distinct;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	protected List<Criteria> oredCriteria;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public JtBusinessProjectExample() {
 		oredCriteria = new ArrayList<Criteria>();
@@ -32,7 +32,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setOrderByClause(String orderByClause) {
 		this.orderByClause = orderByClause;
@@ -40,7 +40,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public String getOrderByClause() {
 		return orderByClause;
@@ -48,7 +48,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void setDistinct(boolean distinct) {
 		this.distinct = distinct;
@@ -56,7 +56,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public boolean isDistinct() {
 		return distinct;
@@ -64,7 +64,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public List<Criteria> getOredCriteria() {
 		return oredCriteria;
@@ -72,7 +72,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void or(Criteria criteria) {
 		oredCriteria.add(criteria);
@@ -80,7 +80,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Criteria or() {
 		Criteria criteria = createCriteriaInternal();
@@ -90,7 +90,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public Criteria createCriteria() {
 		Criteria criteria = createCriteriaInternal();
@@ -102,7 +102,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	protected Criteria createCriteriaInternal() {
 		Criteria criteria = new Criteria();
@@ -111,7 +111,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public void clear() {
 		oredCriteria.clear();
@@ -121,7 +121,7 @@ public class JtBusinessProjectExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	protected abstract static class GeneratedCriteria {
 		protected List<Criterion> criteria;
@@ -1663,81 +1663,11 @@ public class JtBusinessProjectExample {
 			addCriterion("advertisement not between", value1, value2, "advertisement");
 			return (Criteria) this;
 		}
-
-		public Criteria andTagIsNull() {
-			addCriterion("tag is null");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagIsNotNull() {
-			addCriterion("tag is not null");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagEqualTo(String value) {
-			addCriterion("tag =", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagNotEqualTo(String value) {
-			addCriterion("tag <>", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagGreaterThan(String value) {
-			addCriterion("tag >", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagGreaterThanOrEqualTo(String value) {
-			addCriterion("tag >=", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagLessThan(String value) {
-			addCriterion("tag <", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagLessThanOrEqualTo(String value) {
-			addCriterion("tag <=", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagLike(String value) {
-			addCriterion("tag like", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagNotLike(String value) {
-			addCriterion("tag not like", value, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagIn(List<String> values) {
-			addCriterion("tag in", values, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagNotIn(List<String> values) {
-			addCriterion("tag not in", values, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagBetween(String value1, String value2) {
-			addCriterion("tag between", value1, value2, "tag");
-			return (Criteria) this;
-		}
-
-		public Criteria andTagNotBetween(String value1, String value2) {
-			addCriterion("tag not between", value1, value2, "tag");
-			return (Criteria) this;
-		}
 	}
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table jt_business_project
-	 * @mbg.generated  Wed Jul 25 08:54:01 CST 2018
+	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
 	 */
 	public static class Criterion {
 		private String condition;

+ 87 - 0
src/main/java/com/goafanti/common/model/JtTag.java

@@ -0,0 +1,87 @@
+package com.goafanti.common.model;
+
+import java.util.Date;
+
+import org.apache.commons.lang3.time.DateFormatUtils;
+
+import com.goafanti.common.constant.AFTConstants;
+
+public class JtTag {
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_tag.id
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	private String id;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_tag.name
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	private String name;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column jt_tag.create_time
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	private Date createTime;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column jt_tag.id
+	 * @return  the value of jt_tag.id
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public String getId() {
+		return id;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_tag.id
+	 * @param id  the value for jt_tag.id
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag.name
+	 * @return  the value of jt_tag.name
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_tag.name
+	 * @param name  the value for jt_tag.name
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag.create_time
+	 * @return  the value of jt_tag.create_time
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column jt_tag.create_time
+	 * @param createTime  the value for jt_tag.create_time
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+	public String getCreateTimeFormattedDate() {
+		if (this.createTime == null) {
+			return null;
+		} else {
+			return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
+		}
+	}
+}

+ 462 - 0
src/main/java/com/goafanti/common/model/JtTagExample.java

@@ -0,0 +1,462 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class JtTagExample {
+    /**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	protected String orderByClause;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	protected boolean distinct;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	protected List<Criteria> oredCriteria;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public JtTagExample() {
+		oredCriteria = new ArrayList<Criteria>();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public String getOrderByClause() {
+		return orderByClause;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public boolean isDistinct() {
+		return distinct;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 CST 2018
+	 */
+	public List<Criteria> getOredCriteria() {
+		return oredCriteria;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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 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;
+		}
+	}
+
+	/**
+	 * This class was generated by MyBatis Generator. This class corresponds to the database table jt_tag
+	 * @mbg.generated  Tue Jul 31 14:45:47 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);
+		}
+	}
+
+	/**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table jt_tag
+     *
+     * @mbg.generated do_not_delete_during_merge Tue Jul 31 14:41:21 CST 2018
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+}

+ 5 - 4
src/main/java/com/goafanti/user/controller/UserRegisterController.java

@@ -135,6 +135,7 @@ public class UserRegisterController extends BaseController {
 		if (res.getError().isEmpty()) {
 			User us = new User();
 			us.setId(UUID.randomUUID().toString());
+			us.setUsername(user.getUsername().trim());
 			us.setMobile(user.getMobile().trim());
 			us.setPassword(user.getPassword());
 			Calendar now = Calendar.getInstance();
@@ -150,13 +151,13 @@ public class UserRegisterController extends BaseController {
 			us.setIdentifyName(StringUtils.isBlank(user.getUnitName())?"":user.getUnitName());
 			us.setLvl(UserLevel.GENERAL.getCode());
 			userService.insertRegister(us,user.getUnitName(),user.getUsername());
-			User currentUser = userService.selectByPrimaryKey(us.getId()); 			
-			//registerEasemobAfterRegister(uuid,currentUser);//开通环信账号
+//			User currentUser = userService.selectByPrimaryKey(us.getId()); 			
+//			registerEasemobAfterRegister(uuid,currentUser);//开通环信账号
 		}
 		return res;
 	}
 	
-	private void registerEasemobAfterRegister(String uuid,User u){
+	/*private void registerEasemobAfterRegister(String uuid,User u){
 			JSONObject resultObj = new JSONObject();
 			String easemobName =  String.valueOf(u.getNumber());
 			String easemobPass = new SimpleHash("md5", u.getId(), null, 1).toHex();
@@ -167,5 +168,5 @@ public class UserRegisterController extends BaseController {
 					new EasemobInfo().uri("/users/").data(resultObj.toJSONString()).method(HttpMethod.POST));
 			//绑定账号
 			messageService.addJpushEasemobAccount(uuid,u.getId(),easemobName,easemobPass);		
-	}
+	}*/
 }