Commit 97e9f958 by tyfanchz

移动mapper和entity到dao中

1 parent db69f6d4
Showing 63 changed files with 183 additions and 145 deletions
......@@ -23,7 +23,7 @@ import tk.mybatis.spring.annotation.MapperScan;
@EnableTransactionManagement
@ServletComponentScan
// 使用通用 Mapper 的注解
@MapperScan(basePackages={"com.glsx.smart.mapper"})
@MapperScan(basePackages={"com.glsx.smart.dao.mapper"})
public class SmartServiceApplication extends SpringBootServletInitializer {
/**
* 本地启动 ,内嵌tomcat方式
......
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.dao.entity.SmartProduct;
import com.glsx.smart.service.SmartProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
......
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.dao.entity.SmartProductType;
import com.glsx.smart.service.SmartProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
......
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartScene;
import com.glsx.smart.dao.entity.SmartScene;
import com.glsx.smart.service.SmartSceneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
......
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartSceneTemplate;
import com.glsx.smart.dao.entity.SmartSceneTemplate;
import com.glsx.smart.service.SmartSceneTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
......
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.dao.entity.SmartSysCode;
import com.glsx.smart.service.SmartSysCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -23,6 +23,6 @@ public class SysCodeController {
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public List<SmartSysCode> getList(SmartSysCode sysCode) {
return sysCodeService.selectByExample(sysCode);
return sysCodeService.getList(sysCode);
}
}
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
/**
* <p>Description:
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import com.glsx.smart.pojo.BaseDTO;
/**
* <p>Description:
......@@ -19,7 +20,7 @@ import java.util.Date;
* 车家智能系统代码集表
*/
@Table(name = "smart_sys_code")
public class SmartSysCode {
public class SmartSysCode extends BaseDTO {
/**
* 标识ID
*/
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.entity;
package com.glsx.smart.dao.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartDevideStatus;
import com.glsx.smart.dao.entity.SmartDevideStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.dao.entity.SmartProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.dao.entity.SmartProductType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartProductTypeParam;
import com.glsx.smart.dao.entity.SmartProductTypeParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartSceneData;
import com.glsx.smart.dao.entity.SmartSceneData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartScene;
import com.glsx.smart.dao.entity.SmartScene;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartSceneTemplate;
import com.glsx.smart.dao.entity.SmartSceneTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.dao.entity.SmartSysCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartSysFile;
import com.glsx.smart.dao.entity.SmartSysFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartTemplateParam;
import com.glsx.smart.dao.entity.SmartTemplateParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.mapper;
package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartUserRelation;
import com.glsx.smart.dao.entity.SmartUserRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......
package com.glsx.smart.service;
import com.github.pagehelper.PageHelper;
import com.glsx.smart.pojo.BaseDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <p>Description: 公共 Service 业务
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public abstract class BaseService {
protected Logger logger = LoggerFactory.getLogger(this.getClass());
/**
* 按需开启分页
*
* @param req 请求体
* @param <T> 继承自 {@link BaseDTO}
*/
protected <T extends BaseDTO> void startPagination(T req) {
int pageIndex = req.getPageIndex();
int pageSize = req.getPageSize();
if (pageIndex > 0 && pageSize > 0) {
PageHelper.startPage(pageIndex, pageSize);
}
}
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartDevideStatus;
import com.glsx.smart.dao.entity.SmartDevideStatus;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.dao.entity.SmartProduct;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartProductTypeParam;
import com.glsx.smart.dao.entity.SmartProductTypeParam;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.dao.entity.SmartProductType;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartSceneData;
import com.glsx.smart.dao.entity.SmartSceneData;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartScene;
import com.glsx.smart.dao.entity.SmartScene;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartSceneTemplate;
import com.glsx.smart.dao.entity.SmartSceneTemplate;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.dao.entity.SmartSysCode;
/**
* <p>Description:
......@@ -12,6 +12,9 @@ import com.glsx.smart.entity.SmartSysCode;
*/
public interface SmartSysCodeService {
List<SmartSysCode> getList(SmartSysCode sysCode);
int deleteByExample(SmartSysCode example);
int deleteByPrimaryKey(Long id);
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartSysFile;
import com.glsx.smart.dao.entity.SmartSysFile;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartTemplateParam;
import com.glsx.smart.dao.entity.SmartTemplateParam;
/**
* <p>Description:
......
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartUserRelation;
import com.glsx.smart.dao.entity.SmartUserRelation;
/**
* <p>Description:
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartDevideStatus;
import com.glsx.smart.mapper.SmartDevideStatusMapper;
import com.glsx.smart.dao.entity.SmartDevideStatus;
import com.glsx.smart.dao.mapper.SmartDevideStatusMapper;
import com.glsx.smart.service.SmartDevideStatusService;
import org.springframework.stereotype.Service;
......
......@@ -2,9 +2,9 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.github.pagehelper.PageHelper;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.mapper.SmartProductMapper;
import com.glsx.smart.dao.entity.SmartProduct;
import com.glsx.smart.dao.mapper.SmartProductMapper;
import com.glsx.smart.service.BaseService;
import com.glsx.smart.service.SmartProductService;
import org.springframework.stereotype.Service;
......@@ -17,20 +17,15 @@ import org.springframework.stereotype.Service;
*/
@Service
public class SmartProductServiceImpl implements SmartProductService {
public class SmartProductServiceImpl extends BaseService implements SmartProductService {
@Resource
private SmartProductMapper productMapper;
@Override
public List<SmartProduct> getList(SmartProduct product) {
int pageIndex = product.getPageIndex();
int pageSize = product.getPageSize();
if (pageIndex > 0 && pageSize > 0) {
PageHelper.startPage(pageIndex, pageSize);
}
List<SmartProduct> productList = productMapper.selectAll();
super.startPagination(product);
List<SmartProduct> productList = productMapper.select(product);
return productList;
}
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartProductTypeParam;
import com.glsx.smart.mapper.SmartProductTypeParamMapper;
import com.glsx.smart.dao.entity.SmartProductTypeParam;
import com.glsx.smart.dao.mapper.SmartProductTypeParamMapper;
import com.glsx.smart.service.SmartProductTypeParamService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.mapper.SmartProductTypeMapper;
import com.glsx.smart.dao.entity.SmartProductType;
import com.glsx.smart.dao.mapper.SmartProductTypeMapper;
import com.glsx.smart.service.SmartProductTypeService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartSceneData;
import com.glsx.smart.mapper.SmartSceneDataMapper;
import com.glsx.smart.dao.entity.SmartSceneData;
import com.glsx.smart.dao.mapper.SmartSceneDataMapper;
import com.glsx.smart.service.SmartSceneDataService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartScene;
import com.glsx.smart.mapper.SmartSceneMapper;
import com.glsx.smart.dao.entity.SmartScene;
import com.glsx.smart.dao.mapper.SmartSceneMapper;
import com.glsx.smart.service.SmartSceneService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartSceneTemplate;
import com.glsx.smart.mapper.SmartSceneTemplateMapper;
import com.glsx.smart.dao.entity.SmartSceneTemplate;
import com.glsx.smart.dao.mapper.SmartSceneTemplateMapper;
import com.glsx.smart.service.SmartSceneTemplateService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,9 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.mapper.SmartSysCodeMapper;
import com.glsx.smart.dao.entity.SmartSysCode;
import com.glsx.smart.dao.mapper.SmartSysCodeMapper;
import com.glsx.smart.service.BaseService;
import com.glsx.smart.service.SmartSysCodeService;
import org.springframework.stereotype.Service;
......@@ -16,84 +17,91 @@ import org.springframework.stereotype.Service;
*/
@Service
public class SmartSysCodeServiceImpl implements SmartSysCodeService {
public class SmartSysCodeServiceImpl extends BaseService implements SmartSysCodeService {
@Resource
private SmartSysCodeMapper smartSysCodeMapper;
private SmartSysCodeMapper sysCodeMapper;
@Override
public List<SmartSysCode> getList(SmartSysCode sysCode) {
super.startPagination(sysCode);
return sysCodeMapper.selectByExample(sysCode);
}
@Override
public int deleteByExample(SmartSysCode example) {
return smartSysCodeMapper.deleteByExample(example);
return sysCodeMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartSysCodeMapper.deleteByPrimaryKey(id);
return sysCodeMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartSysCode record) {
return smartSysCodeMapper.insert(record);
return sysCodeMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartSysCode record) {
return smartSysCodeMapper.insertOrUpdate(record);
return sysCodeMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartSysCode record) {
return smartSysCodeMapper.insertOrUpdateSelective(record);
return sysCodeMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartSysCode record) {
return smartSysCodeMapper.insertSelective(record);
return sysCodeMapper.insertSelective(record);
}
@Override
public List<SmartSysCode> selectByExample(SmartSysCode example) {
return smartSysCodeMapper.selectByExample(example);
return sysCodeMapper.selectByExample(example);
}
@Override
public SmartSysCode selectByPrimaryKey(Long id) {
return smartSysCodeMapper.selectByPrimaryKey(id);
return sysCodeMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartSysCode record, SmartSysCode example) {
return smartSysCodeMapper.updateByExampleSelective(record, example);
return sysCodeMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartSysCode record, SmartSysCode example) {
return smartSysCodeMapper.updateByExample(record, example);
return sysCodeMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartSysCode record) {
return smartSysCodeMapper.updateByPrimaryKeySelective(record);
return sysCodeMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartSysCode record) {
return smartSysCodeMapper.updateByPrimaryKey(record);
return sysCodeMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartSysCode> list) {
return smartSysCodeMapper.updateBatch(list);
return sysCodeMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartSysCode> list) {
return smartSysCodeMapper.updateBatchSelective(list);
return sysCodeMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartSysCode> list) {
return smartSysCodeMapper.batchInsert(list);
return sysCodeMapper.batchInsert(list);
}
}
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartSysFile;
import com.glsx.smart.mapper.SmartSysFileMapper;
import com.glsx.smart.dao.entity.SmartSysFile;
import com.glsx.smart.dao.mapper.SmartSysFileMapper;
import com.glsx.smart.service.SmartSysFileService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartTemplateParam;
import com.glsx.smart.mapper.SmartTemplateParamMapper;
import com.glsx.smart.dao.entity.SmartTemplateParam;
import com.glsx.smart.dao.mapper.SmartTemplateParamMapper;
import com.glsx.smart.service.SmartTemplateParamService;
import org.springframework.stereotype.Service;
......
......@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartUserRelation;
import com.glsx.smart.mapper.SmartUserRelationMapper;
import com.glsx.smart.dao.entity.SmartUserRelation;
import com.glsx.smart.dao.mapper.SmartUserRelationMapper;
import com.glsx.smart.service.SmartUserRelationService;
import org.springframework.stereotype.Service;
......
......@@ -9,7 +9,7 @@ spring.jackson.time-zone=GMT+8
server.tomcat.uri-encoding=UTF-8
spring.messages.encoding=UTF-8
#mybatis\u914D\u7F6E
mybatis.typeAliasesPackage=com.glsx.entity
mybatis.typeAliasesPackage=com.glsx.dao.entity
mybatis.mapperLocations=classpath:mapper/*.xml
mybatis.configLocation=classpath:/mybatis-config.xml
......
<?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.glsx.smart.mapper.SmartDevideStatusMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartDevideStatus">
<mapper namespace="com.glsx.smart.dao.mapper.SmartDevideStatusMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartDevideStatus">
<!--@mbg.generated-->
<!--@Table smart_devide_status-->
<id column="id" jdbcType="INTEGER" property="id"/>
......@@ -145,7 +145,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartDevideStatus" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartDevideStatus" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_devide_status
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -188,7 +188,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartDevideStatus" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartDevideStatus" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_devide_status
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartProductMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartProduct">
<mapper namespace="com.glsx.smart.dao.mapper.SmartProductMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartProduct">
<!--@mbg.generated-->
<!--@Table smart_product-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -229,7 +229,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProduct" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartProduct" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -290,7 +290,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProduct" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartProduct" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartProductTypeMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartProductType">
<mapper namespace="com.glsx.smart.dao.mapper.SmartProductTypeMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartProductType">
<!--@mbg.generated-->
<!--@Table smart_product_type-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -155,7 +155,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductType" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartProductType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -201,7 +201,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductType" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartProductType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartProductTypeParamMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartProductTypeParam">
<mapper namespace="com.glsx.smart.dao.mapper.SmartProductTypeParamMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartProductTypeParam">
<!--@mbg.generated-->
<!--@Table smart_product_type_param-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -115,7 +115,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductTypeParam" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartProductTypeParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type_param
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -152,7 +152,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductTypeParam" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartProductTypeParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type_param
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartSceneDataMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartSceneData">
<mapper namespace="com.glsx.smart.dao.mapper.SmartSceneDataMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartSceneData">
<!--@mbg.generated-->
<!--@Table smart_scene_data-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -110,7 +110,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSceneData" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSceneData" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene_data
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -147,7 +147,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSceneData" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSceneData" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene_data
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartSceneMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartScene">
<mapper namespace="com.glsx.smart.dao.mapper.SmartSceneMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartScene">
<!--@mbg.generated-->
<!--@Table smart_scene-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -227,7 +227,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScene" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartScene" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -288,7 +288,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScene" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartScene" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartSceneTemplateMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartSceneTemplate">
<mapper namespace="com.glsx.smart.dao.mapper.SmartSceneTemplateMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartSceneTemplate">
<!--@mbg.generated-->
<!--@Table smart_scene_template-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -242,7 +242,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSceneTemplate" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSceneTemplate" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene_template
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -306,7 +306,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSceneTemplate" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSceneTemplate" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene_template
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartSysCodeMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartSysCode">
<mapper namespace="com.glsx.smart.dao.mapper.SmartSysCodeMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartSysCode">
<!--@mbg.generated-->
<!--@Table smart_sys_code-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -210,7 +210,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysCode" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSysCode" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_code
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -268,7 +268,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysCode" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSysCode" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_code
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartSysFileMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartSysFile">
<mapper namespace="com.glsx.smart.dao.mapper.SmartSysFileMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartSysFile">
<!--@mbg.generated-->
<!--@Table smart_sys_file-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -97,7 +97,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysFile" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSysFile" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_file
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -131,7 +131,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysFile" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartSysFile" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_file
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartTemplateParamMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartTemplateParam">
<mapper namespace="com.glsx.smart.dao.mapper.SmartTemplateParamMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartTemplateParam">
<!--@mbg.generated-->
<!--@Table smart_template_param-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -110,7 +110,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartTemplateParam" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartTemplateParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_template_param
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -147,7 +147,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartTemplateParam" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartTemplateParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_template_param
<trim prefix="(" suffix=")" suffixOverrides=",">
......
<?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.glsx.smart.mapper.SmartUserRelationMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartUserRelation">
<mapper namespace="com.glsx.smart.dao.mapper.SmartUserRelationMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartUserRelation">
<!--@mbg.generated-->
<!--@Table smart_user_relation-->
<id column="id" jdbcType="BIGINT" property="id"/>
......@@ -151,7 +151,7 @@
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartUserRelation" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartUserRelation" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_user_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -197,7 +197,7 @@
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartUserRelation" useGeneratedKeys="true">
parameterType="com.glsx.smart.dao.entity.SmartUserRelation" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_user_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!