Commit 24554c25 by 杨林龙

搭建MVC基本开发

1 parent 353bd6cc
Showing 48 changed files with 5517 additions and 86 deletions
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>framework-webapp</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>com.glsx</groupId>
<artifactId>open-platform-admin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>open-platform-admin</name>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</dependency>
</dependencies>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.com.glsx.framework</groupId>
<artifactId>framework-webapp</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<groupId>com.glsx</groupId>
<artifactId>open-platform-admin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>open-platform-admin</name>
<packaging>war</packaging>
<properties>
<!-- System properties -->
<java.version>1.8</java.version>
<failOnMissingWebXml>false</failOnMissingWebXml>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<swagger2.version>2.7.0</swagger2.version>
</properties>
<dependencies>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.75</version>
</dependency>
<!--lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<scope>provided</scope>
</dependency>
<!--swagger 文档-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger2.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger2.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.6</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>2.0.6</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<!--<plugin>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-maven-plugin</artifactId>-->
<!--</plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>
<!-- maven 打包时跳过测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package com.glsx;
import org.mybatis.spring.annotation.MapperScan;
import org.oreframework.boot.main.AbsOreBootStarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
/**
* @author deployer name
* @version V1.0
* @Title: Main.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2015
*/
@EnableAsync
@SpringBootApplication
@ServletComponentScan
public class Main extends AbsOreBootStarter {
@Override
public void run(String[] args)
{
@Override
public void run(String[] args) {
SpringApplication.run(Main.class, args);
}
public static void main(String[] args)
{
Main main = new Main();
public static void main(String[] args) {
Main main = new Main();
main.run(args);
}
}
package com.glsx.controller;
import com.glsx.service.AdMgrService;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/admgr")
public class AdMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(AdMgrController.class);
@Autowired
private AdMgrService adMgrService;
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<Object> getAdMgrList() {
LOGGER.info("获取金融产品类型和货款期限的下拉选项 start");
ResponseEntity<Object> responseEntity = new ResponseEntity<>();
return responseEntity;
}
}
package com.glsx.controller;
import com.glsx.service.ApiCallMgrService;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/apicallmgr")
public class ApiCallMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(ApiCallMgrController.class);
@Autowired
private ApiCallMgrService apiCallMgrService;
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<Object> getApiCallMgrList() {
LOGGER.info("获取金融产品类型和货款期限的下拉选项 start");
ResponseEntity<Object> responseEntity = new ResponseEntity<>();
return responseEntity;
}
}
package com.glsx.controller;
import com.glsx.service.ApiMgrService;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/apimgr")
public class ApiMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(ApiMgrController.class);
@Autowired
private ApiMgrService apiMgrService;
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<Object> getApiMgrList() {
LOGGER.info("获取金融产品类型和货款期限的下拉选项 start");
ResponseEntity<Object> responseEntity = new ResponseEntity<>();
return responseEntity;
}
}
package com.glsx.controller;
import com.glsx.service.AppDownloadMgrService;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/appdownloadmgr")
public class AppDownloadMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(AppDownloadMgrController.class);
@Autowired
private AppDownloadMgrService appDownloadMgrService;
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<Object> getAppDownloadMgrList() {
LOGGER.info("获取金融产品类型和货款期限的下拉选项 start");
ResponseEntity<Object> responseEntity = new ResponseEntity<>();
return responseEntity;
}
}
package com.glsx.controller;
import com.glsx.service.CustomerMgrService;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/customermgr")
public class CustomerMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(CustomerMgrController.class);
@Autowired
private CustomerMgrService customerMgrService;
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<Object> getCustomerMgrList() {
LOGGER.info("获取金融产品类型和货款期限的下拉选项 start");
ResponseEntity<Object> responseEntity = new ResponseEntity<>();
return responseEntity;
}
}
package com.glsx.controller;
import com.glsx.service.DeviceMgrService;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value = "/devicemgr")
public class DeviceMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(DeviceMgrController.class);
@Autowired
private DeviceMgrService deviceMgrService;
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<Object> getDeviceMgrList() {
LOGGER.info("获取金融产品类型和货款期限的下拉选项 start");
ResponseEntity<Object> responseEntity = new ResponseEntity<>();
return responseEntity;
}
}
......@@ -8,28 +8,28 @@ import org.springframework.ui.ModelMap;
import com.glsx.config.SystemProperty;
/**
* @author deployer name
* @version V1.0
* @Title: IndexController.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@Controller
public class IndexController {
@Autowired
private SystemProperty systemProperty;
@ResponseBody
@RequestMapping("home")
public String home(){
return "hello, welcome to home!";
}
@RequestMapping("index")
public String index(ModelMap map){
map.addAttribute("name", systemProperty.getName());
return "index";
}
@Autowired
private SystemProperty systemProperty;
@ResponseBody
@RequestMapping("home")
public String home() {
return "hello, welcome to home!" + systemProperty.getName();
}
@RequestMapping("index")
public String index(ModelMap map) {
map.addAttribute("name", systemProperty.getName());
return "index";
}
}
package com.glsx.controller;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.glsx.model.PlatformUser;
import com.glsx.service.UserMgrService;
import org.oreframework.web.ui.Pagination;
import org.oreframework.web.ui.ResponseEntity;
import org.oreframework.web.ui.ResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping(value = "/usermgr")
public class UserMgrController {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(UserMgrController.class);
@Autowired
private UserMgrService userMgrService;
@RequestMapping(value = "/getUserMgrList", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<PlatformUser> getUserMgrList(Pagination pagination) {
ResponseEntity<PlatformUser> responseEntity = new ResponseEntity<>();
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
PageHelper.startPage(pagination.getCurrentPage(), pagination.getPageSize(), true);
List<PlatformUser> datasyncAnjVerifyAccountsList = userMgrService.getUserMgrList();
long total = ((Page<PlatformUser>) datasyncAnjVerifyAccountsList).getTotal();
responseEntity.setData(datasyncAnjVerifyAccountsList);
responseEntity.setRecordsTotal(total);
responseEntity.setRecordsFiltered(total);
return responseEntity;
}
@RequestMapping(value = "/reset", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<PlatformUser> reset(Pagination pagination) {
ResponseEntity<PlatformUser> responseEntity = new ResponseEntity<>();
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
PageHelper.startPage(pagination.getCurrentPage(), pagination.getPageSize(), true);
List<PlatformUser> datasyncAnjVerifyAccountsList = userMgrService.getUserMgrList();
long total = ((Page<PlatformUser>) datasyncAnjVerifyAccountsList).getTotal();
responseEntity.setData(datasyncAnjVerifyAccountsList);
responseEntity.setRecordsTotal(total);
responseEntity.setRecordsFiltered(total);
return responseEntity;
}
}
package com.glsx.mapper;
import com.glsx.model.PlatformAd;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformAdMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformAd record);
int insertOrUpdate(PlatformAd record);
int insertOrUpdateSelective(PlatformAd record);
int insertSelective(PlatformAd record);
PlatformAd selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformAd record);
int updateByPrimaryKey(PlatformAd record);
int updateBatch(List<PlatformAd> list);
int updateBatchSelective(List<PlatformAd> list);
}
\ No newline at end of file
<?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.mapper.PlatformAdMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformAd">
<!--@mbg.generated-->
<!--@Table t_platform_ad-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="image" jdbcType="VARCHAR" property="image" />
<result column="position" jdbcType="TINYINT" property="position" />
<result column="interface_type" jdbcType="TINYINT" property="interfaceType" />
<result column="interface_url" jdbcType="VARCHAR" property="interfaceUrl" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, title, image, `position`, interface_type, interface_url, `status`, create_time,
update_time, create_by, update_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_ad
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_ad
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAd" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_ad (title, image, `position`,
interface_type, interface_url, `status`,
create_time, update_time, create_by,
update_by, remark)
values (#{title,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{position,jdbcType=TINYINT},
#{interfaceType,jdbcType=TINYINT}, #{interfaceUrl,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAd" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_ad
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">
title,
</if>
<if test="image != null and image != ''">
image,
</if>
<if test="position != null">
`position`,
</if>
<if test="interfaceType != null">
interface_type,
</if>
<if test="interfaceUrl != null and interfaceUrl != ''">
interface_url,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">
#{title,jdbcType=VARCHAR},
</if>
<if test="image != null and image != ''">
#{image,jdbcType=VARCHAR},
</if>
<if test="position != null">
#{position,jdbcType=TINYINT},
</if>
<if test="interfaceType != null">
#{interfaceType,jdbcType=TINYINT},
</if>
<if test="interfaceUrl != null and interfaceUrl != ''">
#{interfaceUrl,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformAd">
<!--@mbg.generated-->
update t_platform_ad
<set>
<if test="title != null and title != ''">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="image != null and image != ''">
image = #{image,jdbcType=VARCHAR},
</if>
<if test="position != null">
`position` = #{position,jdbcType=TINYINT},
</if>
<if test="interfaceType != null">
interface_type = #{interfaceType,jdbcType=TINYINT},
</if>
<if test="interfaceUrl != null and interfaceUrl != ''">
interface_url = #{interfaceUrl,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformAd">
<!--@mbg.generated-->
update t_platform_ad
set title = #{title,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
`position` = #{position,jdbcType=TINYINT},
interface_type = #{interfaceType,jdbcType=TINYINT},
interface_url = #{interfaceUrl,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_ad
<trim prefix="set" suffixOverrides=",">
<trim prefix="title = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.title,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="image = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.image,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`position` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.position,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="interface_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.interfaceType,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="interface_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.interfaceUrl,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_ad
<trim prefix="set" suffixOverrides=",">
<trim prefix="title = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.title != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.title,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="image = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.image != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.image,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`position` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.position != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.position,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="interface_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.interfaceType != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.interfaceType,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="interface_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.interfaceUrl != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.interfaceUrl,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAd" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_ad
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
title,
image,
`position`,
interface_type,
interface_url,
`status`,
create_time,
update_time,
create_by,
update_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{title,jdbcType=VARCHAR},
#{image,jdbcType=VARCHAR},
#{position,jdbcType=TINYINT},
#{interfaceType,jdbcType=TINYINT},
#{interfaceUrl,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
title = #{title,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
`position` = #{position,jdbcType=TINYINT},
interface_type = #{interfaceType,jdbcType=TINYINT},
interface_url = #{interfaceUrl,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAd" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_ad
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="title != null and title != ''">
title,
</if>
<if test="image != null and image != ''">
image,
</if>
<if test="position != null">
`position`,
</if>
<if test="interfaceType != null">
interface_type,
</if>
<if test="interfaceUrl != null and interfaceUrl != ''">
interface_url,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="title != null and title != ''">
#{title,jdbcType=VARCHAR},
</if>
<if test="image != null and image != ''">
#{image,jdbcType=VARCHAR},
</if>
<if test="position != null">
#{position,jdbcType=TINYINT},
</if>
<if test="interfaceType != null">
#{interfaceType,jdbcType=TINYINT},
</if>
<if test="interfaceUrl != null and interfaceUrl != ''">
#{interfaceUrl,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="title != null and title != ''">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="image != null and image != ''">
image = #{image,jdbcType=VARCHAR},
</if>
<if test="position != null">
`position` = #{position,jdbcType=TINYINT},
</if>
<if test="interfaceType != null">
interface_type = #{interfaceType,jdbcType=TINYINT},
</if>
<if test="interfaceUrl != null and interfaceUrl != ''">
interface_url = #{interfaceUrl,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.mapper;
import com.glsx.model.PlatformApiCall;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformApiCallMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformApiCall record);
int insertOrUpdate(PlatformApiCall record);
int insertOrUpdateSelective(PlatformApiCall record);
int insertSelective(PlatformApiCall record);
PlatformApiCall selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformApiCall record);
int updateByPrimaryKey(PlatformApiCall record);
int updateBatch(List<PlatformApiCall> list);
int updateBatchSelective(List<PlatformApiCall> list);
}
\ No newline at end of file
<?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.mapper.PlatformApiCallMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformApiCall">
<!--@mbg.generated-->
<!--@Table t_platform_api_call-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="customer_id" jdbcType="INTEGER" property="customerId" />
<result column="api_id" jdbcType="INTEGER" property="apiId" />
<result column="call_result" jdbcType="TINYINT" property="callResult" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, customer_id, api_id, call_result, create_time, create_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_api_call
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_api_call
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApiCall" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api_call (customer_id, api_id, call_result,
create_time, create_by, remark
)
values (#{customerId,jdbcType=INTEGER}, #{apiId,jdbcType=INTEGER}, #{callResult,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApiCall" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api_call
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">
customer_id,
</if>
<if test="apiId != null">
api_id,
</if>
<if test="callResult != null">
call_result,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="apiId != null">
#{apiId,jdbcType=INTEGER},
</if>
<if test="callResult != null">
#{callResult,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformApiCall">
<!--@mbg.generated-->
update t_platform_api_call
<set>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="apiId != null">
api_id = #{apiId,jdbcType=INTEGER},
</if>
<if test="callResult != null">
call_result = #{callResult,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformApiCall">
<!--@mbg.generated-->
update t_platform_api_call
set customer_id = #{customerId,jdbcType=INTEGER},
api_id = #{apiId,jdbcType=INTEGER},
call_result = #{callResult,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_api_call
<trim prefix="set" suffixOverrides=",">
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="api_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="call_result = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.callResult,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_api_call
<trim prefix="set" suffixOverrides=",">
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="api_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.apiId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="call_result = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.callResult != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.callResult,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApiCall" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api_call
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
customer_id,
api_id,
call_result,
create_time,
create_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{customerId,jdbcType=INTEGER},
#{apiId,jdbcType=INTEGER},
#{callResult,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
customer_id = #{customerId,jdbcType=INTEGER},
api_id = #{apiId,jdbcType=INTEGER},
call_result = #{callResult,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApiCall" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api_call
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="customerId != null">
customer_id,
</if>
<if test="apiId != null">
api_id,
</if>
<if test="callResult != null">
call_result,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="apiId != null">
#{apiId,jdbcType=INTEGER},
</if>
<if test="callResult != null">
#{callResult,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="apiId != null">
api_id = #{apiId,jdbcType=INTEGER},
</if>
<if test="callResult != null">
call_result = #{callResult,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.mapper;
import java.util.List;
import com.glsx.model.PlatformApi;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformApiMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformApi record);
int insertOrUpdate(PlatformApi record);
int insertOrUpdateSelective(PlatformApi record);
int insertSelective(PlatformApi record);
PlatformApi selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformApi record);
int updateByPrimaryKey(PlatformApi record);
int updateBatch(List<PlatformApi> list);
int updateBatchSelective(List<PlatformApi> list);
}
\ No newline at end of file
<?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.mapper.PlatformApiMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformApi">
<!--@mbg.generated-->
<!--@Table t_platform_api-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="api_classification" jdbcType="TINYINT" property="apiClassification" />
<result column="api_name" jdbcType="VARCHAR" property="apiName" />
<result column="request_method" jdbcType="TINYINT" property="requestMethod" />
<result column="api_interface" jdbcType="VARCHAR" property="apiInterface" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, api_classification, api_name, request_method, api_interface, description, `status`,
create_time, update_time, create_by, update_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_api
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_api
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApi" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api (api_classification, api_name, request_method,
api_interface, description, `status`,
create_time, update_time, create_by,
update_by, remark)
values (#{apiClassification,jdbcType=TINYINT}, #{apiName,jdbcType=VARCHAR}, #{requestMethod,jdbcType=TINYINT},
#{apiInterface,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApi" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="apiClassification != null">
api_classification,
</if>
<if test="apiName != null and apiName != ''">
api_name,
</if>
<if test="requestMethod != null">
request_method,
</if>
<if test="apiInterface != null and apiInterface != ''">
api_interface,
</if>
<if test="description != null and description != ''">
description,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="apiClassification != null">
#{apiClassification,jdbcType=TINYINT},
</if>
<if test="apiName != null and apiName != ''">
#{apiName,jdbcType=VARCHAR},
</if>
<if test="requestMethod != null">
#{requestMethod,jdbcType=TINYINT},
</if>
<if test="apiInterface != null and apiInterface != ''">
#{apiInterface,jdbcType=VARCHAR},
</if>
<if test="description != null and description != ''">
#{description,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformApi">
<!--@mbg.generated-->
update t_platform_api
<set>
<if test="apiClassification != null">
api_classification = #{apiClassification,jdbcType=TINYINT},
</if>
<if test="apiName != null and apiName != ''">
api_name = #{apiName,jdbcType=VARCHAR},
</if>
<if test="requestMethod != null">
request_method = #{requestMethod,jdbcType=TINYINT},
</if>
<if test="apiInterface != null and apiInterface != ''">
api_interface = #{apiInterface,jdbcType=VARCHAR},
</if>
<if test="description != null and description != ''">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformApi">
<!--@mbg.generated-->
update t_platform_api
set api_classification = #{apiClassification,jdbcType=TINYINT},
api_name = #{apiName,jdbcType=VARCHAR},
request_method = #{requestMethod,jdbcType=TINYINT},
api_interface = #{apiInterface,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_api
<trim prefix="set" suffixOverrides=",">
<trim prefix="api_classification = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiClassification,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="api_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="request_method = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.requestMethod,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="api_interface = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiInterface,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.description,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_api
<trim prefix="set" suffixOverrides=",">
<trim prefix="api_classification = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.apiClassification != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiClassification,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="api_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.apiName != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="request_method = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.requestMethod != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.requestMethod,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="api_interface = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.apiInterface != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.apiInterface,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.description != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.description,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApi" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
api_classification,
api_name,
request_method,
api_interface,
description,
`status`,
create_time,
update_time,
create_by,
update_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{apiClassification,jdbcType=TINYINT},
#{apiName,jdbcType=VARCHAR},
#{requestMethod,jdbcType=TINYINT},
#{apiInterface,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
api_classification = #{apiClassification,jdbcType=TINYINT},
api_name = #{apiName,jdbcType=VARCHAR},
request_method = #{requestMethod,jdbcType=TINYINT},
api_interface = #{apiInterface,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformApi" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_api
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="apiClassification != null">
api_classification,
</if>
<if test="apiName != null and apiName != ''">
api_name,
</if>
<if test="requestMethod != null">
request_method,
</if>
<if test="apiInterface != null and apiInterface != ''">
api_interface,
</if>
<if test="description != null and description != ''">
description,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="apiClassification != null">
#{apiClassification,jdbcType=TINYINT},
</if>
<if test="apiName != null and apiName != ''">
#{apiName,jdbcType=VARCHAR},
</if>
<if test="requestMethod != null">
#{requestMethod,jdbcType=TINYINT},
</if>
<if test="apiInterface != null and apiInterface != ''">
#{apiInterface,jdbcType=VARCHAR},
</if>
<if test="description != null and description != ''">
#{description,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="apiClassification != null">
api_classification = #{apiClassification,jdbcType=TINYINT},
</if>
<if test="apiName != null and apiName != ''">
api_name = #{apiName,jdbcType=VARCHAR},
</if>
<if test="requestMethod != null">
request_method = #{requestMethod,jdbcType=TINYINT},
</if>
<if test="apiInterface != null and apiInterface != ''">
api_interface = #{apiInterface,jdbcType=VARCHAR},
</if>
<if test="description != null and description != ''">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.mapper;
import com.glsx.model.PlatformAppDownload;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformAppDownloadMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformAppDownload record);
int insertOrUpdate(PlatformAppDownload record);
int insertOrUpdateSelective(PlatformAppDownload record);
int insertSelective(PlatformAppDownload record);
PlatformAppDownload selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformAppDownload record);
int updateByPrimaryKey(PlatformAppDownload record);
int updateBatch(List<PlatformAppDownload> list);
int updateBatchSelective(List<PlatformAppDownload> list);
}
\ No newline at end of file
<?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.mapper.PlatformAppDownloadMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformAppDownload">
<!--@mbg.generated-->
<!--@Table t_platform_app_download-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="customer_id" jdbcType="INTEGER" property="customerId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, customer_id, create_time, create_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_app_download
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_app_download
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAppDownload" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_app_download (customer_id, create_time, create_by,
remark)
values (#{customerId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAppDownload" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_app_download
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">
customer_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformAppDownload">
<!--@mbg.generated-->
update t_platform_app_download
<set>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformAppDownload">
<!--@mbg.generated-->
update t_platform_app_download
set customer_id = #{customerId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_app_download
<trim prefix="set" suffixOverrides=",">
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_app_download
<trim prefix="set" suffixOverrides=",">
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAppDownload" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_app_download
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
customer_id,
create_time,
create_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{customerId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
customer_id = #{customerId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformAppDownload" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_app_download
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="customerId != null">
customer_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.mapper;
import com.glsx.model.PlatformCustomer;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformCustomerMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformCustomer record);
int insertOrUpdate(PlatformCustomer record);
int insertOrUpdateSelective(PlatformCustomer record);
int insertSelective(PlatformCustomer record);
PlatformCustomer selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformCustomer record);
int updateByPrimaryKey(PlatformCustomer record);
int updateBatch(List<PlatformCustomer> list);
int updateBatchSelective(List<PlatformCustomer> list);
}
\ No newline at end of file
<?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.mapper.PlatformCustomerMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformCustomer">
<!--@mbg.generated-->
<!--@Table t_platform_customer-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="customer_name" jdbcType="VARCHAR" property="customerName" />
<result column="contact_person" jdbcType="VARCHAR" property="contactPerson" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="contact_number" jdbcType="VARCHAR" property="contactNumber" />
<result column="contact_email" jdbcType="VARCHAR" property="contactEmail" />
<result column="province" jdbcType="INTEGER" property="province" />
<result column="city" jdbcType="INTEGER" property="city" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="public_key" jdbcType="VARCHAR" property="publicKey" />
<result column="private_key" jdbcType="VARCHAR" property="privateKey" />
<result column="channel_number" jdbcType="VARCHAR" property="channelNumber" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, customer_name, contact_person, `password`, contact_number, contact_email, province,
city, address, `status`, public_key, private_key, channel_number, create_time, update_time,
create_by, update_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_customer
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_customer
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformCustomer" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_customer (customer_name, contact_person, `password`,
contact_number, contact_email, province,
city, address, `status`,
public_key, private_key, channel_number,
create_time, update_time, create_by,
update_by, remark)
values (#{customerName,jdbcType=VARCHAR}, #{contactPerson,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{contactNumber,jdbcType=VARCHAR}, #{contactEmail,jdbcType=VARCHAR}, #{province,jdbcType=INTEGER},
#{city,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{publicKey,jdbcType=VARCHAR}, #{privateKey,jdbcType=VARCHAR}, #{channelNumber,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformCustomer" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerName != null and customerName != ''">
customer_name,
</if>
<if test="contactPerson != null and contactPerson != ''">
contact_person,
</if>
<if test="password != null and password != ''">
`password`,
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number,
</if>
<if test="contactEmail != null and contactEmail != ''">
contact_email,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="address != null and address != ''">
address,
</if>
<if test="status != null">
`status`,
</if>
<if test="publicKey != null and publicKey != ''">
public_key,
</if>
<if test="privateKey != null and privateKey != ''">
private_key,
</if>
<if test="channelNumber != null and channelNumber != ''">
channel_number,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerName != null and customerName != ''">
#{customerName,jdbcType=VARCHAR},
</if>
<if test="contactPerson != null and contactPerson != ''">
#{contactPerson,jdbcType=VARCHAR},
</if>
<if test="password != null and password != ''">
#{password,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
#{contactNumber,jdbcType=VARCHAR},
</if>
<if test="contactEmail != null and contactEmail != ''">
#{contactEmail,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=INTEGER},
</if>
<if test="city != null">
#{city,jdbcType=INTEGER},
</if>
<if test="address != null and address != ''">
#{address,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="publicKey != null and publicKey != ''">
#{publicKey,jdbcType=VARCHAR},
</if>
<if test="privateKey != null and privateKey != ''">
#{privateKey,jdbcType=VARCHAR},
</if>
<if test="channelNumber != null and channelNumber != ''">
#{channelNumber,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformCustomer">
<!--@mbg.generated-->
update t_platform_customer
<set>
<if test="customerName != null and customerName != ''">
customer_name = #{customerName,jdbcType=VARCHAR},
</if>
<if test="contactPerson != null and contactPerson != ''">
contact_person = #{contactPerson,jdbcType=VARCHAR},
</if>
<if test="password != null and password != ''">
`password` = #{password,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number = #{contactNumber,jdbcType=VARCHAR},
</if>
<if test="contactEmail != null and contactEmail != ''">
contact_email = #{contactEmail,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=INTEGER},
</if>
<if test="city != null">
city = #{city,jdbcType=INTEGER},
</if>
<if test="address != null and address != ''">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="publicKey != null and publicKey != ''">
public_key = #{publicKey,jdbcType=VARCHAR},
</if>
<if test="privateKey != null and privateKey != ''">
private_key = #{privateKey,jdbcType=VARCHAR},
</if>
<if test="channelNumber != null and channelNumber != ''">
channel_number = #{channelNumber,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformCustomer">
<!--@mbg.generated-->
update t_platform_customer
set customer_name = #{customerName,jdbcType=VARCHAR},
contact_person = #{contactPerson,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
contact_number = #{contactNumber,jdbcType=VARCHAR},
contact_email = #{contactEmail,jdbcType=VARCHAR},
province = #{province,jdbcType=INTEGER},
city = #{city,jdbcType=INTEGER},
address = #{address,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
public_key = #{publicKey,jdbcType=VARCHAR},
private_key = #{privateKey,jdbcType=VARCHAR},
channel_number = #{channelNumber,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_customer
<trim prefix="set" suffixOverrides=",">
<trim prefix="customer_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="contact_person = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactPerson,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`password` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.password,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="contact_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactNumber,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="contact_email = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactEmail,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="province = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.province,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="city = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.city,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="address = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.address,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="public_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.publicKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="private_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.privateKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="channel_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.channelNumber,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_customer
<trim prefix="set" suffixOverrides=",">
<trim prefix="customer_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerName != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="contact_person = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contactPerson != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactPerson,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`password` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.password != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.password,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="contact_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contactNumber != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactNumber,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="contact_email = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contactEmail != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactEmail,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="province = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.province != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.province,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="city = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.city != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.city,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="address = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.address != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.address,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="public_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.publicKey != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.publicKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="private_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.privateKey != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.privateKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="channel_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.channelNumber != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.channelNumber,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformCustomer" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
customer_name,
contact_person,
`password`,
contact_number,
contact_email,
province,
city,
address,
`status`,
public_key,
private_key,
channel_number,
create_time,
update_time,
create_by,
update_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{customerName,jdbcType=VARCHAR},
#{contactPerson,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{contactNumber,jdbcType=VARCHAR},
#{contactEmail,jdbcType=VARCHAR},
#{province,jdbcType=INTEGER},
#{city,jdbcType=INTEGER},
#{address,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT},
#{publicKey,jdbcType=VARCHAR},
#{privateKey,jdbcType=VARCHAR},
#{channelNumber,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
customer_name = #{customerName,jdbcType=VARCHAR},
contact_person = #{contactPerson,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
contact_number = #{contactNumber,jdbcType=VARCHAR},
contact_email = #{contactEmail,jdbcType=VARCHAR},
province = #{province,jdbcType=INTEGER},
city = #{city,jdbcType=INTEGER},
address = #{address,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
public_key = #{publicKey,jdbcType=VARCHAR},
private_key = #{privateKey,jdbcType=VARCHAR},
channel_number = #{channelNumber,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformCustomer" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="customerName != null and customerName != ''">
customer_name,
</if>
<if test="contactPerson != null and contactPerson != ''">
contact_person,
</if>
<if test="password != null and password != ''">
`password`,
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number,
</if>
<if test="contactEmail != null and contactEmail != ''">
contact_email,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="address != null and address != ''">
address,
</if>
<if test="status != null">
`status`,
</if>
<if test="publicKey != null and publicKey != ''">
public_key,
</if>
<if test="privateKey != null and privateKey != ''">
private_key,
</if>
<if test="channelNumber != null and channelNumber != ''">
channel_number,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="customerName != null and customerName != ''">
#{customerName,jdbcType=VARCHAR},
</if>
<if test="contactPerson != null and contactPerson != ''">
#{contactPerson,jdbcType=VARCHAR},
</if>
<if test="password != null and password != ''">
#{password,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
#{contactNumber,jdbcType=VARCHAR},
</if>
<if test="contactEmail != null and contactEmail != ''">
#{contactEmail,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=INTEGER},
</if>
<if test="city != null">
#{city,jdbcType=INTEGER},
</if>
<if test="address != null and address != ''">
#{address,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="publicKey != null and publicKey != ''">
#{publicKey,jdbcType=VARCHAR},
</if>
<if test="privateKey != null and privateKey != ''">
#{privateKey,jdbcType=VARCHAR},
</if>
<if test="channelNumber != null and channelNumber != ''">
#{channelNumber,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="customerName != null and customerName != ''">
customer_name = #{customerName,jdbcType=VARCHAR},
</if>
<if test="contactPerson != null and contactPerson != ''">
contact_person = #{contactPerson,jdbcType=VARCHAR},
</if>
<if test="password != null and password != ''">
`password` = #{password,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number = #{contactNumber,jdbcType=VARCHAR},
</if>
<if test="contactEmail != null and contactEmail != ''">
contact_email = #{contactEmail,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=INTEGER},
</if>
<if test="city != null">
city = #{city,jdbcType=INTEGER},
</if>
<if test="address != null and address != ''">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="publicKey != null and publicKey != ''">
public_key = #{publicKey,jdbcType=VARCHAR},
</if>
<if test="privateKey != null and privateKey != ''">
private_key = #{privateKey,jdbcType=VARCHAR},
</if>
<if test="channelNumber != null and channelNumber != ''">
channel_number = #{channelNumber,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.mapper;
import com.glsx.model.PlatformDevice;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformDeviceMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformDevice record);
int insertOrUpdate(PlatformDevice record);
int insertOrUpdateSelective(PlatformDevice record);
int insertSelective(PlatformDevice record);
PlatformDevice selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformDevice record);
int updateByPrimaryKey(PlatformDevice record);
int updateBatch(List<PlatformDevice> list);
int updateBatchSelective(List<PlatformDevice> list);
}
\ No newline at end of file
<?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.mapper.PlatformDeviceMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformDevice">
<!--@mbg.generated-->
<!--@Table t_platform_device-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="device_sn" jdbcType="VARCHAR" property="deviceSn" />
<result column="device_type" jdbcType="VARCHAR" property="deviceType" />
<result column="customer_id" jdbcType="INTEGER" property="customerId" />
<result column="activat_time" jdbcType="TIMESTAMP" property="activatTime" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, device_sn, device_type, customer_id, activat_time, `status`, create_time, update_time,
create_by, update_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_device
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_device
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformDevice" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_device (device_sn, device_type, customer_id,
activat_time, `status`, create_time,
update_time, create_by, update_by,
remark)
values (#{deviceSn,jdbcType=VARCHAR}, #{deviceType,jdbcType=VARCHAR}, #{customerId,jdbcType=INTEGER},
#{activatTime,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformDevice" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceSn != null and deviceSn != ''">
device_sn,
</if>
<if test="deviceType != null and deviceType != ''">
device_type,
</if>
<if test="customerId != null">
customer_id,
</if>
<if test="activatTime != null">
activat_time,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceSn != null and deviceSn != ''">
#{deviceSn,jdbcType=VARCHAR},
</if>
<if test="deviceType != null and deviceType != ''">
#{deviceType,jdbcType=VARCHAR},
</if>
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="activatTime != null">
#{activatTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformDevice">
<!--@mbg.generated-->
update t_platform_device
<set>
<if test="deviceSn != null and deviceSn != ''">
device_sn = #{deviceSn,jdbcType=VARCHAR},
</if>
<if test="deviceType != null and deviceType != ''">
device_type = #{deviceType,jdbcType=VARCHAR},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="activatTime != null">
activat_time = #{activatTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformDevice">
<!--@mbg.generated-->
update t_platform_device
set device_sn = #{deviceSn,jdbcType=VARCHAR},
device_type = #{deviceType,jdbcType=VARCHAR},
customer_id = #{customerId,jdbcType=INTEGER},
activat_time = #{activatTime,jdbcType=TIMESTAMP},
`status` = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_device
<trim prefix="set" suffixOverrides=",">
<trim prefix="device_sn = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.deviceSn,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="device_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.deviceType,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="activat_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.activatTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_device
<trim prefix="set" suffixOverrides=",">
<trim prefix="device_sn = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deviceSn != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.deviceSn,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="device_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deviceType != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.deviceType,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="activat_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.activatTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.activatTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_device
(device_sn, device_type, customer_id, activat_time, `status`, create_time, update_time,
create_by, update_by, remark)
values
<foreach collection="list" item="item" separator=",">
(#{item.deviceSn,jdbcType=VARCHAR}, #{item.deviceType,jdbcType=VARCHAR}, #{item.customerId,jdbcType=INTEGER},
#{item.activatTime,jdbcType=TIMESTAMP}, #{item.status,jdbcType=TINYINT}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=INTEGER}, #{item.updateBy,jdbcType=INTEGER},
#{item.remark,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformDevice" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
device_sn,
device_type,
customer_id,
activat_time,
`status`,
create_time,
update_time,
create_by,
update_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{deviceSn,jdbcType=VARCHAR},
#{deviceType,jdbcType=VARCHAR},
#{customerId,jdbcType=INTEGER},
#{activatTime,jdbcType=TIMESTAMP},
#{status,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
device_sn = #{deviceSn,jdbcType=VARCHAR},
device_type = #{deviceType,jdbcType=VARCHAR},
customer_id = #{customerId,jdbcType=INTEGER},
activat_time = #{activatTime,jdbcType=TIMESTAMP},
`status` = #{status,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformDevice" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_device
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="deviceSn != null and deviceSn != ''">
device_sn,
</if>
<if test="deviceType != null and deviceType != ''">
device_type,
</if>
<if test="customerId != null">
customer_id,
</if>
<if test="activatTime != null">
activat_time,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="deviceSn != null and deviceSn != ''">
#{deviceSn,jdbcType=VARCHAR},
</if>
<if test="deviceType != null and deviceType != ''">
#{deviceType,jdbcType=VARCHAR},
</if>
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="activatTime != null">
#{activatTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="deviceSn != null and deviceSn != ''">
device_sn = #{deviceSn,jdbcType=VARCHAR},
</if>
<if test="deviceType != null and deviceType != ''">
device_type = #{deviceType,jdbcType=VARCHAR},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="activatTime != null">
activat_time = #{activatTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.mapper;
import com.glsx.model.PlatformUser;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
@Mapper
public interface PlatformUserMapper {
int deleteByPrimaryKey(Integer id);
int insert(PlatformUser record);
int insertOrUpdate(PlatformUser record);
int insertOrUpdateSelective(PlatformUser record);
int insertSelective(PlatformUser record);
PlatformUser selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PlatformUser record);
int updateByPrimaryKey(PlatformUser record);
int updateBatch(List<PlatformUser> list);
int updateBatchSelective(List<PlatformUser> list);
List<PlatformUser> getUserMgrList();
}
\ No newline at end of file
<?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.mapper.PlatformUserMapper">
<resultMap id="BaseResultMap" type="com.glsx.model.PlatformUser">
<!--@mbg.generated-->
<!--@Table t_platform_user-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="contact_number" jdbcType="VARCHAR" property="contactNumber" />
<result column="wechat_id" jdbcType="VARCHAR" property="wechatId" />
<result column="province" jdbcType="INTEGER" property="province" />
<result column="city" jdbcType="INTEGER" property="city" />
<result column="customer_id" jdbcType="INTEGER" property="customerId" />
<result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime" />
<result column="app_account_id" jdbcType="INTEGER" property="appAccountId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="create_by" jdbcType="INTEGER" property="createBy" />
<result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, nickname, contact_number, wechat_id, province, city, customer_id, last_login_time,
app_account_id, create_time, update_time, create_by, update_by, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from t_platform_user
where id = #{id,jdbcType=INTEGER}
</select>
<select id="getUserMgrList" resultType="com.glsx.model.PlatformUser">
select
<include refid="Base_Column_List" />
from t_platform_user
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from t_platform_user
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformUser" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_user (nickname, contact_number, wechat_id,
province, city, customer_id,
last_login_time, app_account_id, create_time,
update_time, create_by, update_by,
remark)
values (#{nickname,jdbcType=VARCHAR}, #{contactNumber,jdbcType=VARCHAR}, #{wechatId,jdbcType=VARCHAR},
#{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, #{customerId,jdbcType=INTEGER},
#{lastLoginTime,jdbcType=TIMESTAMP}, #{appAccountId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformUser" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nickname != null and nickname != ''">
nickname,
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number,
</if>
<if test="wechatId != null and wechatId != ''">
wechat_id,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="customerId != null">
customer_id,
</if>
<if test="lastLoginTime != null">
last_login_time,
</if>
<if test="appAccountId != null">
app_account_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nickname != null and nickname != ''">
#{nickname,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
#{contactNumber,jdbcType=VARCHAR},
</if>
<if test="wechatId != null and wechatId != ''">
#{wechatId,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=INTEGER},
</if>
<if test="city != null">
#{city,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="lastLoginTime != null">
#{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if test="appAccountId != null">
#{appAccountId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.model.PlatformUser">
<!--@mbg.generated-->
update t_platform_user
<set>
<if test="nickname != null and nickname != ''">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number = #{contactNumber,jdbcType=VARCHAR},
</if>
<if test="wechatId != null and wechatId != ''">
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=INTEGER},
</if>
<if test="city != null">
city = #{city,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="lastLoginTime != null">
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if test="appAccountId != null">
app_account_id = #{appAccountId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.model.PlatformUser">
<!--@mbg.generated-->
update t_platform_user
set nickname = #{nickname,jdbcType=VARCHAR},
contact_number = #{contactNumber,jdbcType=VARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
province = #{province,jdbcType=INTEGER},
city = #{city,jdbcType=INTEGER},
customer_id = #{customerId,jdbcType=INTEGER},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
app_account_id = #{appAccountId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_user
<trim prefix="set" suffixOverrides=",">
<trim prefix="nickname = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.nickname,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="contact_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactNumber,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="wechat_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.wechatId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="province = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.province,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="city = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.city,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="last_login_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.lastLoginTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="app_account_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.appAccountId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update t_platform_user
<trim prefix="set" suffixOverrides=",">
<trim prefix="nickname = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.nickname != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.nickname,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="contact_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contactNumber != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.contactNumber,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="wechat_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.wechatId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.wechatId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="province = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.province != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.province,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="city = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.city != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.city,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="customer_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="last_login_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.lastLoginTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.lastLoginTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="app_account_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.appAccountId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.appAccountId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformUser" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
nickname,
contact_number,
wechat_id,
province,
city,
customer_id,
last_login_time,
app_account_id,
create_time,
update_time,
create_by,
update_by,
remark,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{nickname,jdbcType=VARCHAR},
#{contactNumber,jdbcType=VARCHAR},
#{wechatId,jdbcType=VARCHAR},
#{province,jdbcType=INTEGER},
#{city,jdbcType=INTEGER},
#{customerId,jdbcType=INTEGER},
#{lastLoginTime,jdbcType=TIMESTAMP},
#{appAccountId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=INTEGER},
#{updateBy,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
nickname = #{nickname,jdbcType=VARCHAR},
contact_number = #{contactNumber,jdbcType=VARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
province = #{province,jdbcType=INTEGER},
city = #{city,jdbcType=INTEGER},
customer_id = #{customerId,jdbcType=INTEGER},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
app_account_id = #{appAccountId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.model.PlatformUser" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into t_platform_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="nickname != null and nickname != ''">
nickname,
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number,
</if>
<if test="wechatId != null and wechatId != ''">
wechat_id,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="customerId != null">
customer_id,
</if>
<if test="lastLoginTime != null">
last_login_time,
</if>
<if test="appAccountId != null">
app_account_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="nickname != null and nickname != ''">
#{nickname,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
#{contactNumber,jdbcType=VARCHAR},
</if>
<if test="wechatId != null and wechatId != ''">
#{wechatId,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=INTEGER},
</if>
<if test="city != null">
#{city,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=INTEGER},
</if>
<if test="lastLoginTime != null">
#{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if test="appAccountId != null">
#{appAccountId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="nickname != null and nickname != ''">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="contactNumber != null and contactNumber != ''">
contact_number = #{contactNumber,jdbcType=VARCHAR},
</if>
<if test="wechatId != null and wechatId != ''">
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=INTEGER},
</if>
<if test="city != null">
city = #{city,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customer_id = #{customerId,jdbcType=INTEGER},
</if>
<if test="lastLoginTime != null">
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if test="appAccountId != null">
app_account_id = #{appAccountId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=INTEGER},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* 广告管理表
*/
public class PlatformAd implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 标题
*/
private String title;
/**
* 图片
*/
private String image;
/**
* 位置 1 商城banner 2 智能-家 3 启动页
*/
private Byte position;
/**
* 界面类型 1 APP 2 H5
*/
private Byte interfaceType;
/**
* 界面参数
*/
private String interfaceUrl;
/**
* 是否上架 0 下架 1 上架
*/
private Byte status;
/**
* 创建时间 添加时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 更新人
*/
private Integer updateBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public Byte getPosition() {
return position;
}
public void setPosition(Byte position) {
this.position = position;
}
public Byte getInterfaceType() {
return interfaceType;
}
public void setInterfaceType(Byte interfaceType) {
this.interfaceType = interfaceType;
}
public String getInterfaceUrl() {
return interfaceUrl;
}
public void setInterfaceUrl(String interfaceUrl) {
this.interfaceUrl = interfaceUrl;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", title=").append(title);
sb.append(", image=").append(image);
sb.append(", position=").append(position);
sb.append(", interfaceType=").append(interfaceType);
sb.append(", interfaceUrl=").append(interfaceUrl);
sb.append(", status=").append(status);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* api管理表
*/
public class PlatformApi implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* API分类 1 授权管理 2 设备管理 3 数据服务
*/
private Byte apiClassification;
/**
* API名称
*/
private String apiName;
/**
* 请求方式 1 GET 2 POST
*/
private Byte requestMethod;
/**
* API接口
*/
private String apiInterface;
/**
* 说明
*/
private String description;
/**
* 状态 0 停用 1 可用
*/
private Byte status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 更新人
*/
private Integer updateBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Byte getApiClassification() {
return apiClassification;
}
public void setApiClassification(Byte apiClassification) {
this.apiClassification = apiClassification;
}
public String getApiName() {
return apiName;
}
public void setApiName(String apiName) {
this.apiName = apiName;
}
public Byte getRequestMethod() {
return requestMethod;
}
public void setRequestMethod(Byte requestMethod) {
this.requestMethod = requestMethod;
}
public String getApiInterface() {
return apiInterface;
}
public void setApiInterface(String apiInterface) {
this.apiInterface = apiInterface;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", apiClassification=").append(apiClassification);
sb.append(", apiName=").append(apiName);
sb.append(", requestMethod=").append(requestMethod);
sb.append(", apiInterface=").append(apiInterface);
sb.append(", description=").append(description);
sb.append(", status=").append(status);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* api调用表
*/
public class PlatformApiCall implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 客户id t_platform_customer表的id
*/
private Integer customerId;
/**
* 调用API id t_platform_api 的id
*/
private Integer apiId;
/**
* 调用结果 0 失败 1 成功
*/
private Byte callResult;
/**
* 创建时间 访问时间
*/
private Date createTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCustomerId() {
return customerId;
}
public void setCustomerId(Integer customerId) {
this.customerId = customerId;
}
public Integer getApiId() {
return apiId;
}
public void setApiId(Integer apiId) {
this.apiId = apiId;
}
public Byte getCallResult() {
return callResult;
}
public void setCallResult(Byte callResult) {
this.callResult = callResult;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", customerId=").append(customerId);
sb.append(", apiId=").append(apiId);
sb.append(", callResult=").append(callResult);
sb.append(", createTime=").append(createTime);
sb.append(", createBy=").append(createBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* APP下载数量表
*/
public class PlatformAppDownload implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 客户id t_platform_customer表的id
*/
private Integer customerId;
/**
* 创建时间 下载时间
*/
private Date createTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCustomerId() {
return customerId;
}
public void setCustomerId(Integer customerId) {
this.customerId = customerId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", customerId=").append(customerId);
sb.append(", createTime=").append(createTime);
sb.append(", createBy=").append(createBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* 客户管理表
*/
public class PlatformCustomer implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 客户名称
*/
private String customerName;
/**
* 联系人
*/
private String contactPerson;
/**
* 密码
*/
private String password;
/**
* 联系电话
*/
private String contactNumber;
/**
* 联系邮箱
*/
private String contactEmail;
/**
* 省份 sys_area的id
*/
private Integer province;
/**
* 城市 sys_area的id
*/
private Integer city;
/**
* 详细地址
*/
private String address;
/**
* 账号状态 0 停用 1 正常 2 待审核 3 审核未通过
*/
private Byte status;
/**
* 公钥
*/
private String publicKey;
/**
* 私钥
*/
private String privateKey;
/**
* 渠道号
*/
private String channelNumber;
/**
* 创建d时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 更新人
*/
private Integer updateBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public String getContactPerson() {
return contactPerson;
}
public void setContactPerson(String contactPerson) {
this.contactPerson = contactPerson;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getContactNumber() {
return contactNumber;
}
public void setContactNumber(String contactNumber) {
this.contactNumber = contactNumber;
}
public String getContactEmail() {
return contactEmail;
}
public void setContactEmail(String contactEmail) {
this.contactEmail = contactEmail;
}
public Integer getProvince() {
return province;
}
public void setProvince(Integer province) {
this.province = province;
}
public Integer getCity() {
return city;
}
public void setCity(Integer city) {
this.city = city;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getPublicKey() {
return publicKey;
}
public void setPublicKey(String publicKey) {
this.publicKey = publicKey;
}
public String getPrivateKey() {
return privateKey;
}
public void setPrivateKey(String privateKey) {
this.privateKey = privateKey;
}
public String getChannelNumber() {
return channelNumber;
}
public void setChannelNumber(String channelNumber) {
this.channelNumber = channelNumber;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", customerName=").append(customerName);
sb.append(", contactPerson=").append(contactPerson);
sb.append(", password=").append(password);
sb.append(", contactNumber=").append(contactNumber);
sb.append(", contactEmail=").append(contactEmail);
sb.append(", province=").append(province);
sb.append(", city=").append(city);
sb.append(", address=").append(address);
sb.append(", status=").append(status);
sb.append(", publicKey=").append(publicKey);
sb.append(", privateKey=").append(privateKey);
sb.append(", channelNumber=").append(channelNumber);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* 设备管理表
*/
public class PlatformDevice implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 设备SN
*/
private String deviceSn;
/**
* 类型
*/
private String deviceType;
/**
* 客户id t_platform_customer表的id
*/
private Integer customerId;
/**
* 激活时间
*/
private Date activatTime;
/**
* 设备状态 0 异常 1 正常
*/
private Byte status;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 更新人
*/
private Integer updateBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDeviceSn() {
return deviceSn;
}
public void setDeviceSn(String deviceSn) {
this.deviceSn = deviceSn;
}
public String getDeviceType() {
return deviceType;
}
public void setDeviceType(String deviceType) {
this.deviceType = deviceType;
}
public Integer getCustomerId() {
return customerId;
}
public void setCustomerId(Integer customerId) {
this.customerId = customerId;
}
public Date getActivatTime() {
return activatTime;
}
public void setActivatTime(Date activatTime) {
this.activatTime = activatTime;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", deviceSn=").append(deviceSn);
sb.append(", deviceType=").append(deviceType);
sb.append(", customerId=").append(customerId);
sb.append(", activatTime=").append(activatTime);
sb.append(", status=").append(status);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Description:
* <p>Project: shop
*
* @author wbh
* @date 2020-12-15
*/
/**
* 用户管理表
*/
public class PlatformUser implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 昵称,账号
*/
private String nickname;
/**
* 联系电话
*/
private String contactNumber;
/**
* 微信ID
*/
private String wechatId;
/**
* 省份 sys_area的id
*/
private Integer province;
/**
* 城市 sys_area的id
*/
private Integer city;
/**
* 客户id t_platform_customer表的id
*/
private Integer customerId;
/**
* 最后登录时间
*/
private Date lastLoginTime;
/**
* APP 账户ID
*/
private Integer appAccountId;
/**
* 创建时间 注册时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 创建人
*/
private Integer createBy;
/**
* 更新人
*/
private Integer updateBy;
/**
* 备注
*/
private String remark;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getContactNumber() {
return contactNumber;
}
public void setContactNumber(String contactNumber) {
this.contactNumber = contactNumber;
}
public String getWechatId() {
return wechatId;
}
public void setWechatId(String wechatId) {
this.wechatId = wechatId;
}
public Integer getProvince() {
return province;
}
public void setProvince(Integer province) {
this.province = province;
}
public Integer getCity() {
return city;
}
public void setCity(Integer city) {
this.city = city;
}
public Integer getCustomerId() {
return customerId;
}
public void setCustomerId(Integer customerId) {
this.customerId = customerId;
}
public Date getLastLoginTime() {
return lastLoginTime;
}
public void setLastLoginTime(Date lastLoginTime) {
this.lastLoginTime = lastLoginTime;
}
public Integer getAppAccountId() {
return appAccountId;
}
public void setAppAccountId(Integer appAccountId) {
this.appAccountId = appAccountId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public Integer getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Integer updateBy) {
this.updateBy = updateBy;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", nickname=").append(nickname);
sb.append(", contactNumber=").append(contactNumber);
sb.append(", wechatId=").append(wechatId);
sb.append(", province=").append(province);
sb.append(", city=").append(city);
sb.append(", customerId=").append(customerId);
sb.append(", lastLoginTime=").append(lastLoginTime);
sb.append(", appAccountId=").append(appAccountId);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", remark=").append(remark);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.glsx.service;
import org.springframework.stereotype.Service;
@Service
public interface AdMgrService {
}
package com.glsx.service;
import org.springframework.stereotype.Service;
@Service
public interface ApiCallMgrService {
}
package com.glsx.service;
import org.springframework.stereotype.Service;
@Service
public interface ApiMgrService {
}
package com.glsx.service;
import org.springframework.stereotype.Service;
@Service
public interface AppDownloadMgrService {
}
package com.glsx.service;
import org.springframework.stereotype.Service;
@Service
public interface CustomerMgrService {
}
package com.glsx.service;
import org.springframework.stereotype.Service;
/**
* @Title: DemoService.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
@Service
public class DemoService {
}
package com.glsx.service;
import org.springframework.stereotype.Service;
@Service
public interface DeviceMgrService {
}
package com.glsx.service;
import com.glsx.model.PlatformUser;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface UserMgrService {
List<PlatformUser> getUserMgrList();
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformAdMapper;
import com.glsx.service.AdMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
public class AdMgrServiceImpl implements AdMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(AdMgrServiceImpl.class);
@Resource
private PlatformAdMapper adMapper;
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformApiCallMapper;
import com.glsx.mapper.PlatformApiMapper;
import com.glsx.service.ApiCallMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
public class ApiCallMgrServiceImpl implements ApiCallMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(ApiCallMgrServiceImpl.class);
@Resource
private PlatformApiCallMapper apiCallMapper;
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformApiMapper;
import com.glsx.mapper.PlatformAppDownloadMapper;
import com.glsx.service.ApiMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
public class ApiMgrServiceImpl implements ApiMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(ApiMgrServiceImpl.class);
@Resource
private PlatformApiMapper apiMapper;
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformAppDownloadMapper;
import com.glsx.mapper.PlatformCustomerMapper;
import com.glsx.service.AppDownloadMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
public class AppDownloadMgrServiceImpl implements AppDownloadMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(AppDownloadMgrServiceImpl.class);
@Resource
private PlatformAppDownloadMapper appDownloadMapper;
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformCustomerMapper;
import com.glsx.mapper.PlatformDeviceMapper;
import com.glsx.service.CustomerMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
public class CustomerMgrServiceImpl implements CustomerMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(CustomerMgrServiceImpl.class);
@Resource
private PlatformCustomerMapper customerMapper;
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformDeviceMapper;
import com.glsx.mapper.PlatformUserMapper;
import com.glsx.service.DeviceMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
public class DeviceMgrServiceImpl implements DeviceMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(DeviceMgrServiceImpl.class);
@Resource
private PlatformDeviceMapper deviceMapper;
}
package com.glsx.service.impl;
import com.glsx.mapper.PlatformUserMapper;
import com.glsx.model.PlatformUser;
import com.glsx.service.UserMgrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class UserMgrServiceImpl implements UserMgrService {
/**
* 日志
*/
private final static Logger LOGGER = LoggerFactory.getLogger(UserMgrServiceImpl.class);
@Resource
private PlatformUserMapper userMapper;
@Override
public List<PlatformUser> getUserMgrList() {
return userMapper.getUserMgrList();
}
}
package com.glsx.vo;
/**
* @Title: DemoVO.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2017
*/
public class DemoVO {
}
server.port=8081
server.display.name=open-platform-admin
#server.display.name=open-platform-admin
#server.serverName=open-platform-admin
server.display-name=open-platform-admin
server.servlet.context-path=/open-platform-admin
server.servlet.application-display-name=open-platform-admin
logging.config=classpath:logback.xml
logging.path=/data/java_log/jetty/open-platform-admin/open-platform-admin.log
logging.level.root=INFO
#logging.level.com.glsx=DEBUG
logging.level.com.glsx=INFO
ore.starter.class-name=Main
# diamond config
ore.diamond.group=open-platform
ore.diamond.dataId=open-platform-admin
ore.diamond.env=dev
\ No newline at end of file
ore.diamond.env=dev
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!