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"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.rzyc.mapper.AppHelpMapper">
|
<mapper namespace="com.rzyc.mapper.AppHelpMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.rzyc.model.AppHelp">
|
<resultMap id="BaseResultMap" type="com.rzyc.model.AppHelp">
|
||||||
<id column="AppHelpId" jdbcType="VARCHAR" property="apphelpid" />
|
<id column="AppHelpId" jdbcType="VARCHAR" property="apphelpid" />
|
||||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||||
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
|
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
|
||||||
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
|
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
|
||||||
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
|
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
|
||||||
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
|
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.rzyc.model.AppHelp">
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.rzyc.model.AppHelp">
|
||||||
<result column="helpContent" jdbcType="LONGVARCHAR" property="helpcontent" />
|
<result column="helpContent" jdbcType="LONGVARCHAR" property="helpcontent" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<where>
|
<where>
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
<if test="criteria.valid">
|
<if test="criteria.valid">
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
<foreach collection="criteria.criteria" item="criterion">
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
<choose>
|
<choose>
|
||||||
<when test="criterion.noValue">
|
<when test="criterion.noValue">
|
||||||
and ${criterion.condition}
|
and ${criterion.condition}
|
||||||
</when>
|
</when>
|
||||||
<when test="criterion.singleValue">
|
<when test="criterion.singleValue">
|
||||||
and ${criterion.condition} #{criterion.value}
|
and ${criterion.condition} #{criterion.value}
|
||||||
</when>
|
</when>
|
||||||
<when test="criterion.betweenValue">
|
<when test="criterion.betweenValue">
|
||||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
</when>
|
</when>
|
||||||
<when test="criterion.listValue">
|
<when test="criterion.listValue">
|
||||||
and ${criterion.condition}
|
and ${criterion.condition}
|
||||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
#{listItem}
|
#{listItem}
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
</foreach>
|
</foreach>
|
||||||
</trim>
|
</where>
|
||||||
</if>
|
</sql>
|
||||||
</foreach>
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
</where>
|
<where>
|
||||||
</sql>
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
<sql id="Update_By_Example_Where_Clause">
|
<if test="criteria.valid">
|
||||||
<where>
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
<if test="criteria.valid">
|
<choose>
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
<when test="criterion.noValue">
|
||||||
<foreach collection="criteria.criteria" item="criterion">
|
and ${criterion.condition}
|
||||||
<choose>
|
</when>
|
||||||
<when test="criterion.noValue">
|
<when test="criterion.singleValue">
|
||||||
and ${criterion.condition}
|
and ${criterion.condition} #{criterion.value}
|
||||||
</when>
|
</when>
|
||||||
<when test="criterion.singleValue">
|
<when test="criterion.betweenValue">
|
||||||
and ${criterion.condition} #{criterion.value}
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
</when>
|
</when>
|
||||||
<when test="criterion.betweenValue">
|
<when test="criterion.listValue">
|
||||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
and ${criterion.condition}
|
||||||
</when>
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
<when test="criterion.listValue">
|
#{listItem}
|
||||||
and ${criterion.condition}
|
</foreach>
|
||||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
</when>
|
||||||
#{listItem}
|
</choose>
|
||||||
</foreach>
|
</foreach>
|
||||||
</when>
|
</trim>
|
||||||
</choose>
|
</if>
|
||||||
</foreach>
|
</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>
|
</if>
|
||||||
</foreach>
|
<include refid="Base_Column_List" />
|
||||||
</where>
|
,
|
||||||
</sql>
|
<include refid="Blob_Column_List" />
|
||||||
<sql id="Base_Column_List">
|
from AppHelp
|
||||||
AppHelpId, type, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy
|
<if test="_parameter != null">
|
||||||
</sql>
|
<include refid="Example_Where_Clause" />
|
||||||
<sql id="Blob_Column_List">
|
</if>
|
||||||
helpContent
|
<if test="orderByClause != null">
|
||||||
</sql>
|
order by ${orderByClause}
|
||||||
<select id="selectByExampleWithBLOBs" parameterType="com.rzyc.model.AppHelpExample" resultMap="ResultMapWithBLOBs">
|
</if>
|
||||||
select
|
</select>
|
||||||
<if test="distinct">
|
<select id="selectByExample" parameterType="com.rzyc.model.AppHelpExample" resultMap="BaseResultMap">
|
||||||
distinct
|
select
|
||||||
</if>
|
<if test="distinct">
|
||||||
<include refid="Base_Column_List" />
|
distinct
|
||||||
,
|
</if>
|
||||||
<include refid="Blob_Column_List" />
|
<include refid="Base_Column_List" />
|
||||||
from AppHelp
|
from AppHelp
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Example_Where_Clause" />
|
<include refid="Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
<if test="orderByClause != null">
|
<if test="orderByClause != null">
|
||||||
order by ${orderByClause}
|
order by ${orderByClause}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
<if test="limit != null">
|
||||||
<select id="selectByExample" parameterType="com.rzyc.model.AppHelpExample" resultMap="BaseResultMap">
|
<if test="offset != null">
|
||||||
select
|
limit ${offset}, ${limit}
|
||||||
<if test="distinct">
|
</if>
|
||||||
distinct
|
<if test="offset == null">
|
||||||
</if>
|
limit ${limit}
|
||||||
<include refid="Base_Column_List" />
|
</if>
|
||||||
from AppHelp
|
</if>
|
||||||
<if test="_parameter != null">
|
</select>
|
||||||
<include refid="Example_Where_Clause" />
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||||
</if>
|
select
|
||||||
<if test="orderByClause != null">
|
<include refid="Base_Column_List" />
|
||||||
order by ${orderByClause}
|
,
|
||||||
</if>
|
<include refid="Blob_Column_List" />
|
||||||
<if test="limit != null">
|
from AppHelp
|
||||||
<if test="offset != null">
|
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||||
limit ${offset}, ${limit}
|
</select>
|
||||||
</if>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||||
<if test="offset == null">
|
delete from AppHelp
|
||||||
limit ${limit}
|
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||||
</if>
|
</delete>
|
||||||
</if>
|
<delete id="deleteByExample" parameterType="com.rzyc.model.AppHelpExample">
|
||||||
</select>
|
delete from AppHelp
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
<if test="_parameter != null">
|
||||||
select
|
<include refid="Example_Where_Clause" />
|
||||||
<include refid="Base_Column_List" />
|
</if>
|
||||||
,
|
</delete>
|
||||||
<include refid="Blob_Column_List" />
|
<insert id="insert" parameterType="com.rzyc.model.AppHelp">
|
||||||
from AppHelp
|
insert into AppHelp (AppHelpId, type, CreatedOn,
|
||||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
CreatedBy, ModifiedOn, ModifiedBy,
|
||||||
</select>
|
helpContent)
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
values (#{apphelpid,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP},
|
||||||
delete from AppHelp
|
#{createdby,jdbcType=VARCHAR}, #{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR},
|
||||||
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
#{helpcontent,jdbcType=LONGVARCHAR})
|
||||||
</delete>
|
</insert>
|
||||||
<delete id="deleteByExample" parameterType="com.rzyc.model.AppHelpExample">
|
<insert id="insertSelective" parameterType="com.rzyc.model.AppHelp">
|
||||||
delete from AppHelp
|
insert into AppHelp
|
||||||
<if test="_parameter != null">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<include refid="Example_Where_Clause" />
|
<if test="apphelpid != null">
|
||||||
</if>
|
AppHelpId,
|
||||||
</delete>
|
</if>
|
||||||
<insert id="insert" parameterType="com.rzyc.model.AppHelp">
|
<if test="type != null">
|
||||||
insert into AppHelp (AppHelpId, type, CreatedOn,
|
type,
|
||||||
CreatedBy, ModifiedOn, ModifiedBy,
|
</if>
|
||||||
helpContent)
|
<if test="createdon != null">
|
||||||
values (#{apphelpid,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP},
|
CreatedOn,
|
||||||
#{createdby,jdbcType=VARCHAR}, #{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR},
|
</if>
|
||||||
#{helpcontent,jdbcType=LONGVARCHAR})
|
<if test="createdby != null">
|
||||||
</insert>
|
CreatedBy,
|
||||||
<insert id="insertSelective" parameterType="com.rzyc.model.AppHelp">
|
</if>
|
||||||
insert into AppHelp
|
<if test="modifiedon != null">
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
ModifiedOn,
|
||||||
<if test="apphelpid != null">
|
</if>
|
||||||
AppHelpId,
|
<if test="modifiedby != null">
|
||||||
</if>
|
ModifiedBy,
|
||||||
<if test="type != null">
|
</if>
|
||||||
type,
|
<if test="helpcontent != null">
|
||||||
</if>
|
helpContent,
|
||||||
<if test="createdon != null">
|
</if>
|
||||||
CreatedOn,
|
</trim>
|
||||||
</if>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="createdby != null">
|
<if test="apphelpid != null">
|
||||||
CreatedBy,
|
#{apphelpid,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="modifiedon != null">
|
<if test="type != null">
|
||||||
ModifiedOn,
|
#{type,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="modifiedby != null">
|
<if test="createdon != null">
|
||||||
ModifiedBy,
|
#{createdon,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="helpcontent != null">
|
<if test="createdby != null">
|
||||||
helpContent,
|
#{createdby,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
<if test="modifiedon != null">
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
#{modifiedon,jdbcType=TIMESTAMP},
|
||||||
<if test="apphelpid != null">
|
</if>
|
||||||
#{apphelpid,jdbcType=VARCHAR},
|
<if test="modifiedby != null">
|
||||||
</if>
|
#{modifiedby,jdbcType=VARCHAR},
|
||||||
<if test="type != null">
|
</if>
|
||||||
#{type,jdbcType=VARCHAR},
|
<if test="helpcontent != null">
|
||||||
</if>
|
#{helpcontent,jdbcType=LONGVARCHAR},
|
||||||
<if test="createdon != null">
|
</if>
|
||||||
#{createdon,jdbcType=TIMESTAMP},
|
</trim>
|
||||||
</if>
|
</insert>
|
||||||
<if test="createdby != null">
|
<select id="countByExample" parameterType="com.rzyc.model.AppHelpExample" resultType="java.lang.Long">
|
||||||
#{createdby,jdbcType=VARCHAR},
|
select count(*) from AppHelp
|
||||||
</if>
|
<if test="_parameter != null">
|
||||||
<if test="modifiedon != null">
|
<include refid="Example_Where_Clause" />
|
||||||
#{modifiedon,jdbcType=TIMESTAMP},
|
</if>
|
||||||
</if>
|
</select>
|
||||||
<if test="modifiedby != null">
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
#{modifiedby,jdbcType=VARCHAR},
|
update AppHelp
|
||||||
</if>
|
<set>
|
||||||
<if test="helpcontent != null">
|
<if test="record.apphelpid != null">
|
||||||
#{helpcontent,jdbcType=LONGVARCHAR},
|
AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
<if test="record.type != null">
|
||||||
</insert>
|
type = #{record.type,jdbcType=VARCHAR},
|
||||||
<select id="countByExample" parameterType="com.rzyc.model.AppHelpExample" resultType="java.lang.Long">
|
</if>
|
||||||
select count(*) from AppHelp
|
<if test="record.createdon != null">
|
||||||
<if test="_parameter != null">
|
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||||
<include refid="Example_Where_Clause" />
|
</if>
|
||||||
</if>
|
<if test="record.createdby != null">
|
||||||
</select>
|
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||||
<update id="updateByExampleSelective" parameterType="map">
|
</if>
|
||||||
update AppHelp
|
<if test="record.modifiedon != null">
|
||||||
<set>
|
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||||
<if test="record.apphelpid != null">
|
</if>
|
||||||
AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
<if test="record.modifiedby != null">
|
||||||
</if>
|
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
||||||
<if test="record.type != null">
|
</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},
|
type = #{record.type,jdbcType=VARCHAR},
|
||||||
</if>
|
|
||||||
<if test="record.createdon != null">
|
|
||||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||||
</if>
|
|
||||||
<if test="record.createdby != null">
|
|
||||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||||
</if>
|
|
||||||
<if test="record.modifiedon != null">
|
|
||||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||||
</if>
|
|
||||||
<if test="record.modifiedby != null">
|
|
||||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
||||||
</if>
|
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR}
|
||||||
<if test="record.helpcontent != null">
|
<if test="_parameter != null">
|
||||||
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR},
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</update>
|
||||||
<if test="_parameter != null">
|
<update id="updateByExample" parameterType="map">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
update AppHelp
|
||||||
</if>
|
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
||||||
</update>
|
type = #{record.type,jdbcType=VARCHAR},
|
||||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
||||||
update AppHelp
|
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
||||||
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
||||||
type = #{record.type,jdbcType=VARCHAR},
|
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
|
||||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
<if test="_parameter != null">
|
||||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
</if>
|
||||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
</update>
|
||||||
helpContent = #{record.helpcontent,jdbcType=LONGVARCHAR}
|
<update id="updateByPrimaryKeySelective" parameterType="com.rzyc.model.AppHelp">
|
||||||
<if test="_parameter != null">
|
update AppHelp
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<set>
|
||||||
</if>
|
<if test="type != null">
|
||||||
</update>
|
type = #{type,jdbcType=VARCHAR},
|
||||||
<update id="updateByExample" parameterType="map">
|
</if>
|
||||||
update AppHelp
|
<if test="createdon != null">
|
||||||
set AppHelpId = #{record.apphelpid,jdbcType=VARCHAR},
|
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||||
type = #{record.type,jdbcType=VARCHAR},
|
</if>
|
||||||
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
<if test="createdby != null">
|
||||||
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||||
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
</if>
|
||||||
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
|
<if test="modifiedon != null">
|
||||||
<if test="_parameter != null">
|
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
</if>
|
||||||
</if>
|
<if test="modifiedby != null">
|
||||||
</update>
|
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.rzyc.model.AppHelp">
|
</if>
|
||||||
update AppHelp
|
<if test="helpcontent != null">
|
||||||
<set>
|
helpContent = #{helpcontent,jdbcType=LONGVARCHAR},
|
||||||
<if test="type != null">
|
</if>
|
||||||
type = #{type,jdbcType=VARCHAR},
|
</set>
|
||||||
</if>
|
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||||
<if test="createdon != null">
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.rzyc.model.AppHelp">
|
||||||
|
update AppHelp
|
||||||
|
set type = #{type,jdbcType=VARCHAR},
|
||||||
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
||||||
</if>
|
|
||||||
<if test="createdby != null">
|
|
||||||
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
||||||
</if>
|
|
||||||
<if test="modifiedon != null">
|
|
||||||
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
||||||
</if>
|
|
||||||
<if test="modifiedby != null">
|
|
||||||
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
|
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}
|
helpContent = #{helpcontent,jdbcType=LONGVARCHAR}
|
||||||
where type = #{type,jdbcType=VARCHAR}
|
where AppHelpId = #{apphelpid,jdbcType=VARCHAR}
|
||||||
</update>
|
</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>
|
</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
|
@Autowired
|
||||||
protected EntUserCredentialMapper entUserCredentialMapper;
|
protected EntUserCredentialMapper entUserCredentialMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
protected AppHelpVersionMapper appHelpVersionMapper;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 岗位不需要的字符串
|
* 岗位不需要的字符串
|
||||||
|
|
@ -2037,7 +2040,7 @@ public class BaseController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算提醒类型 1:正常 2:黄色提醒 3:红色提醒
|
* 计算提醒类型 1:正常 2:黄色提醒 3:红色提醒
|
||||||
* @param listFactors
|
* @param ListFactor
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
protected void handleFactorAlert(ListFactor listFactor)throws Exception{
|
protected void handleFactorAlert(ListFactor listFactor)throws Exception{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user