app 版本
This commit is contained in:
parent
82c7755f87
commit
fbe62622ed
|
|
@ -0,0 +1,18 @@
|
|||
package com.rzyc.mapper;
|
||||
|
||||
import com.rzyc.model.AppHelpVersion;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author
|
||||
* @since 2023-05-22
|
||||
*/
|
||||
@Repository
|
||||
public interface AppHelpVersionMapper extends BaseMapper<AppHelpVersion> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package com.rzyc.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import java.util.Date;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author
|
||||
* @since 2023-05-22
|
||||
*/
|
||||
@TableName("app_help_version")
|
||||
@ApiModel(value="AppHelpVersion对象", description="")
|
||||
public class AppHelpVersion implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
@TableField("help_type")
|
||||
private Integer helpType;
|
||||
|
||||
@TableField("help_content")
|
||||
private Integer helpContent;
|
||||
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
@TableField("app_type")
|
||||
private String appType;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
public Integer getHelpType() {
|
||||
return helpType;
|
||||
}
|
||||
|
||||
public void setHelpType(Integer helpType) {
|
||||
this.helpType = helpType;
|
||||
}
|
||||
public Integer getHelpContent() {
|
||||
return helpContent;
|
||||
}
|
||||
|
||||
public void setHelpContent(Integer helpContent) {
|
||||
this.helpContent = helpContent;
|
||||
}
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
public String getAppType() {
|
||||
return appType;
|
||||
}
|
||||
|
||||
public void setAppType(String appType) {
|
||||
this.appType = appType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "AppHelpVersion{" +
|
||||
"id=" + id +
|
||||
", helpType=" + helpType +
|
||||
", helpContent=" + helpContent +
|
||||
", createTime=" + createTime +
|
||||
", appType=" + appType +
|
||||
"}";
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.rzyc.model.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 企业设备巡检记录
|
||||
* @author Xuwanxin
|
||||
* @date 2023/5/22
|
||||
* */
|
||||
public class AppHelpVersionDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private Integer helpType;
|
||||
|
||||
private Integer helpContent;
|
||||
|
||||
private String appType;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
public AppHelpVersionDto(Integer id, Integer helpType, Integer helpContent, String appType, Date createTime) {
|
||||
this.id = id;
|
||||
this.helpType = helpType;
|
||||
this.helpContent = helpContent;
|
||||
this.appType = appType;
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getHelpType() {
|
||||
return helpType;
|
||||
}
|
||||
|
||||
public void setHelpType(Integer helpType) {
|
||||
this.helpType = helpType;
|
||||
}
|
||||
|
||||
public Integer getHelpContent() {
|
||||
return helpContent;
|
||||
}
|
||||
|
||||
public void setHelpContent(Integer helpContent) {
|
||||
this.helpContent = helpContent;
|
||||
}
|
||||
|
||||
public String getAppType() {
|
||||
return appType;
|
||||
}
|
||||
|
||||
public void setAppType(String appType) {
|
||||
this.appType = appType;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,309 +1,309 @@
|
|||
<?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.rzyc.mapper.AppHelpMapper">
|
||||
<resultMap id="BaseResultMap" type="com.rzyc.model.AppHelp">
|
||||
<id column="AppHelpId" jdbcType="VARCHAR" property="apphelpid" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
|
||||
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
|
||||
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
|
||||
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.rzyc.model.AppHelp">
|
||||
<result column="helpContent" jdbcType="LONGVARCHAR" property="helpcontent" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
<resultMap id="BaseResultMap" type="com.rzyc.model.AppHelp">
|
||||
<id column="AppHelpId" jdbcType="VARCHAR" property="apphelpid" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
|
||||
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
|
||||
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
|
||||
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.rzyc.model.AppHelp">
|
||||
<result column="helpContent" jdbcType="LONGVARCHAR" property="helpcontent" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
AppHelpId, type, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
helpContent
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.rzyc.model.AppHelpExample" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
AppHelpId, type, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
helpContent
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.rzyc.model.AppHelpExample" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.rzyc.model.AppHelpExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null">
|
||||
<if test="offset != null">
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null">
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from AppHelp
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from AppHelp
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.rzyc.model.AppHelpExample">
|
||||
delete from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.rzyc.model.AppHelp">
|
||||
insert into AppHelp (AppHelpId, type, CreatedOn,
|
||||
CreatedBy, ModifiedOn, ModifiedBy,
|
||||
helpContent)
|
||||
values (#{apphelpid,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP},
|
||||
#{createdby,jdbcType=VARCHAR}, #{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR},
|
||||
#{helpcontent,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.rzyc.model.AppHelp">
|
||||
insert into AppHelp
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="apphelpid != null">
|
||||
AppHelpId,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="createdon != null">
|
||||
CreatedOn,
|
||||
</if>
|
||||
<if test="createdby != null">
|
||||
CreatedBy,
|
||||
</if>
|
||||
<if test="modifiedon != null">
|
||||
ModifiedOn,
|
||||
</if>
|
||||
<if test="modifiedby != null">
|
||||
ModifiedBy,
|
||||
</if>
|
||||
<if test="helpcontent != null">
|
||||
helpContent,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="apphelpid != null">
|
||||
#{apphelpid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createdon != null">
|
||||
#{createdon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createdby != null">
|
||||
#{createdby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifiedon != null">
|
||||
#{modifiedon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modifiedby != null">
|
||||
#{modifiedby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="helpcontent != null">
|
||||
#{helpcontent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.rzyc.model.AppHelpExample" resultType="java.lang.Long">
|
||||
select count(*) from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update AppHelp
|
||||
<set>
|
||||
<if test="record.apphelpid != null">
|
||||
AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.type != null">
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.rzyc.model.AppHelpExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
<if test="limit != null">
|
||||
<if test="offset != null">
|
||||
limit ${offset}, ${limit}
|
||||
</if>
|
||||
<if test="offset == null">
|
||||
limit ${limit}
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from AppHelp
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from AppHelp
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.rzyc.model.AppHelpExample">
|
||||
delete from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.rzyc.model.AppHelp">
|
||||
insert into AppHelp (AppHelpId, type, CreatedOn,
|
||||
CreatedBy, ModifiedOn, ModifiedBy,
|
||||
helpContent)
|
||||
values (#{apphelpid,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP},
|
||||
#{createdby,jdbcType=VARCHAR}, #{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR},
|
||||
#{helpcontent,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.rzyc.model.AppHelp">
|
||||
insert into AppHelp
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="apphelpid != null">
|
||||
AppHelpId,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="createdon != null">
|
||||
CreatedOn,
|
||||
</if>
|
||||
<if test="createdby != null">
|
||||
CreatedBy,
|
||||
</if>
|
||||
<if test="modifiedon != null">
|
||||
ModifiedOn,
|
||||
</if>
|
||||
<if test="modifiedby != null">
|
||||
ModifiedBy,
|
||||
</if>
|
||||
<if test="helpcontent != null">
|
||||
helpContent,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="apphelpid != null">
|
||||
#{apphelpid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createdon != null">
|
||||
#{createdon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createdby != null">
|
||||
#{createdby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifiedon != null">
|
||||
#{modifiedon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modifiedby != null">
|
||||
#{modifiedby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="helpcontent != null">
|
||||
#{helpcontent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.rzyc.model.AppHelpExample" resultType="java.lang.Long">
|
||||
select count(*) from AppHelp
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update AppHelp
|
||||
<set>
|
||||
<if test="record.apphelpid != null">
|
||||
AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.type != null">
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createdon != null">
|
||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.createdby != null">
|
||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.modifiedon != null">
|
||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.modifiedby != null">
|
||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.helpcontent != null">
|
||||
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update AppHelp
|
||||
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createdon != null">
|
||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.createdby != null">
|
||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.modifiedon != null">
|
||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.modifiedby != null">
|
||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.helpcontent != null">
|
||||
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update AppHelp
|
||||
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
||||
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update AppHelp
|
||||
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
<set>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createdon != null">
|
||||
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update AppHelp
|
||||
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
<set>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createdon != null">
|
||||
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createdby != null">
|
||||
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifiedon != null">
|
||||
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modifiedby != null">
|
||||
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="helpcontent != null">
|
||||
helpContent = #{helpcontent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
set type = #{type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createdby != null">
|
||||
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifiedon != null">
|
||||
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="modifiedby != null">
|
||||
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="helpcontent != null">
|
||||
helpContent = #{helpcontent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
set type = #{type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
|
||||
helpContent = #{helpcontent,jdbcType=LONGVARCHAR}
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
set type = #{type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||
ModifiedBy = #{modifiedby,jdbcType=VARCHAR}
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<!--app帮助文档-->
|
||||
<select id="findByType" resultMap="ResultMapWithBLOBs">
|
||||
SELECT * FROM `AppHelp` ah WHERE ah.`type` = #{type}
|
||||
ORDER BY ah.`CreatedOn` DESC LIMIT 1
|
||||
</select>
|
||||
|
||||
<!--修改帮助-->
|
||||
<update id="changeAppHelp" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
set ModifiedOn = NOW(),
|
||||
helpContent = #{helpcontent,jdbcType=LONGVARCHAR}
|
||||
where type = #{type,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
set type = #{type,jdbcType=VARCHAR},
|
||||
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||
ModifiedBy = #{modifiedby,jdbcType=VARCHAR}
|
||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<!--app帮助文档-->
|
||||
<select id="findByType" resultMap="ResultMapWithBLOBs">
|
||||
SELECT * FROM `AppHelp` ah WHERE ah.`type` = #{type}
|
||||
ORDER BY ah.`CreatedOn` DESC LIMIT 1
|
||||
</select>
|
||||
|
||||
<!--修改帮助-->
|
||||
<update id="changeAppHelp" parameterType="com.rzyc.model.AppHelp">
|
||||
update AppHelp
|
||||
set ModifiedOn = NOW(),
|
||||
helpContent = #{helpcontent,jdbcType=LONGVARCHAR}
|
||||
where type = #{type,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?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.rzyc.mapper.AppHelpVersionMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.rzyc.model.AppHelpVersion">
|
||||
<id column="id" property="id" />
|
||||
<result column="help_type" property="helpType" />
|
||||
<result column="help_content" property="helpContent" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="app_type" property="appType" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
id, help_type, help_content, create_time, app_type
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.rzyc.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.common.utils.model.Code;
|
||||
import com.common.utils.model.Message;
|
||||
import com.common.utils.model.SingleResult;
|
||||
import com.rzyc.mapper.AppHelpVersionMapper;
|
||||
import com.rzyc.model.AppHelpVersion;
|
||||
import com.rzyc.model.dto.AppHelpVersionDto;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: XWX
|
||||
* @CreateTime: 2023/5/22
|
||||
*/
|
||||
|
||||
@Api(tags = "app")
|
||||
@CrossOrigin("*")
|
||||
@RequestMapping("app")
|
||||
@RestController
|
||||
@Validated
|
||||
public class AppController extends BaseController {
|
||||
|
||||
/**
|
||||
* @Description: 版本管理
|
||||
* @Author XWX
|
||||
* @CreateTime 2023/5/22
|
||||
*/
|
||||
@PostMapping("addAppVersion")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "新增app版本", notes = "新增app版本")
|
||||
public SingleResult<String> addAppVersion(@RequestBody AppHelpVersionDto AppHelpVersionDto){
|
||||
SingleResult singleResult = new SingleResult();
|
||||
AppHelpVersion AppHelpVersion = new AppHelpVersion();
|
||||
BeanUtils.copyProperties(AppHelpVersionDto,AppHelpVersion);
|
||||
int result = appHelpVersionMapper.insert(AppHelpVersion);
|
||||
if (result < 1){
|
||||
singleResult.setCode(Code.ERROR.getCode());
|
||||
singleResult.setMessage(Message.ERROR);
|
||||
}
|
||||
return singleResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 版本管理
|
||||
* @Author XWX
|
||||
* @CreateTime 2023/5/22
|
||||
*/
|
||||
@PostMapping("editAppVersion")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "修改app版本", notes = "修改app版本")
|
||||
public SingleResult<String> editAppVersion(@RequestBody AppHelpVersionDto AppHelpVersionDto){
|
||||
SingleResult singleResult = new SingleResult();
|
||||
AppHelpVersion AppHelpVersion = new AppHelpVersion();
|
||||
BeanUtils.copyProperties(AppHelpVersionDto,AppHelpVersion);
|
||||
int result = appHelpVersionMapper.updateById(AppHelpVersion);
|
||||
if (result < 1){
|
||||
singleResult.setCode(Code.ERROR.getCode());
|
||||
singleResult.setMessage(Message.ERROR);
|
||||
}
|
||||
return singleResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 版本管理
|
||||
* @Author XWX
|
||||
* @CreateTime 2023/5/22
|
||||
*/
|
||||
@GetMapping("getAppVersion")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "app版本", notes = "app版本")
|
||||
public SingleResult<String> getAppVersion(String appType){
|
||||
SingleResult singleResult = new SingleResult();
|
||||
QueryWrapper<AppHelpVersion> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("app_type", appType);
|
||||
List<AppHelpVersion> AppHelpVersions = appHelpVersionMapper.selectList(wrapper);
|
||||
if (AppHelpVersions.size() < 1){
|
||||
singleResult.setCode(Code.ERROR.getCode());
|
||||
singleResult.setMessage(Message.ERROR);
|
||||
}
|
||||
singleResult.setData(AppHelpVersions);
|
||||
return singleResult;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -568,6 +568,9 @@ public class BaseController {
|
|||
@Autowired
|
||||
protected EntUserCredentialMapper entUserCredentialMapper;
|
||||
|
||||
@Autowired
|
||||
protected AppHelpVersionMapper appHelpVersionMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 岗位不需要的字符串
|
||||
|
|
@ -2037,7 +2040,7 @@ public class BaseController {
|
|||
|
||||
/**
|
||||
* 计算提醒类型 1:正常 2:黄色提醒 3:红色提醒
|
||||
* @param listFactors
|
||||
* @param ListFactor
|
||||
* @throws Exception
|
||||
*/
|
||||
protected void handleFactorAlert(ListFactor listFactor)throws Exception{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user