From f05c95868bb6f0b8b7f3e493992570d96dabdd2f Mon Sep 17 00:00:00 2001 From: Fancy <Fancy.fx@outlook.com> Date: 星期二, 09 七月 2024 12:43:37 +0800 Subject: [PATCH] delete PrEquipLifeCycle --- /dev/null | 125 ----------------------------------------- 1 files changed, 0 insertions(+), 125 deletions(-) diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrEquipLifeCycleMapper.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrEquipLifeCycleMapper.java deleted file mode 100644 index 7ba3155..0000000 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/daoPr/PrEquipLifeCycleMapper.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.dy.pmsGlobal.daoPr; - -import com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle; -import org.apache.ibatis.annotations.Mapper; - -import java.util.List; -import java.util.Map; - -/** -* @author 灏忔槑 -* @description 閽堝琛ㄣ�恜r_equip_life_cycle(璁惧鐢熷懡鍛ㄦ湡琛�)銆戠殑鏁版嵁搴撴搷浣淢apper -* @createDate 2024-05-29 15:53:10 -* @Entity com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle -*/ -@Mapper -public interface PrEquipLifeCycleMapper { - - int deleteByPrimaryKey(Long id); - - int insert(PrEquipLifeCycle record); - - int insertSelective(PrEquipLifeCycle record); - - PrEquipLifeCycle selectByPrimaryKey(Long id); - - int updateByPrimaryKeySelective(PrEquipLifeCycle record); - - int updateByPrimaryKey(PrEquipLifeCycle record); - - Long selectSomeCount(Map<String,Object> params); - - List<PrEquipLifeCycle> selectSome(Map<String,Object> params); - - int deleteLogicById(Long id); - -} diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrEquipLifeCycle.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrEquipLifeCycle.java deleted file mode 100644 index bfe83f0..0000000 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrEquipLifeCycle.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.dy.pmsGlobal.pojoPr; - -import com.alibaba.fastjson2.annotation.JSONField; -import com.alibaba.fastjson2.writer.ObjectWriterImplToString; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.dy.common.po.BaseEntity; -import lombok.*; - -import java.util.Date; - -/** - * 璁惧鐢熷懡鍛ㄦ湡琛� - * @TableName pr_equip_life_cycle - */ -@TableName(value="pr_equip_life_cycle", autoResultMap = true) -@Data -@Builder -@ToString -@NoArgsConstructor -@AllArgsConstructor -public class PrEquipLifeCycle implements BaseEntity { - /** - * - */ - @JSONField(serializeUsing= ObjectWriterImplToString.class) - @TableId - public Long id; - - /** - * 璁惧瀹炰綋缂栧彿 - */ - @JSONField(serializeUsing= ObjectWriterImplToString.class) - public Long equipId; - - /** - * 璁板綍璁惧鍛ㄦ湡鍐呭 - */ - public String equipCycleContent; - - /** - * 鍒涘缓鏃堕棿 - */ - public Date dt; -} \ No newline at end of file diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrEquipLifeCycleMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrEquipLifeCycleMapper.xml deleted file mode 100644 index b3a58c2..0000000 --- a/pms-parent/pms-global/src/main/resources/mapper/PrEquipLifeCycleMapper.xml +++ /dev/null @@ -1,125 +0,0 @@ -<?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.dy.pmsGlobal.daoPr.PrEquipLifeCycleMapper"> - - <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle"> - <id property="id" column="id" jdbcType="BIGINT"/> - <result property="equipId" column="equip_id" jdbcType="BIGINT"/> - <result property="equipCycleContent" column="equip_cycle_content" jdbcType="VARCHAR"/> - <result property="dt" column="dt" jdbcType="TIMESTAMP"/> - </resultMap> - - <sql id="Base_Column_List"> - id,equip_id,equip_cycle_content, - dt - </sql> - - <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> - select - <include refid="Base_Column_List" /> - from pr_equip_life_cycle - where id = #{id,jdbcType=BIGINT} - </select> - - <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> - delete from pr_equip_life_cycle - where id = #{id,jdbcType=BIGINT} - </delete> - <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle" useGeneratedKeys="true"> - insert into pr_equip_life_cycle - ( id,equip_id,equip_cycle_content - ,dt) - values (#{id,jdbcType=BIGINT},#{equipId,jdbcType=BIGINT},#{equipCycleContent,jdbcType=VARCHAR} - ,#{dt,jdbcType=TIMESTAMP}) - </insert> - <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle" useGeneratedKeys="true"> - insert into pr_equip_life_cycle - <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="id != null">id,</if> - <if test="equipId != null">equip_id,</if> - <if test="equipCycleContent != null">equip_cycle_content,</if> - <if test="dt != null">dt,</if> - </trim> - <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="id != null">#{id,jdbcType=BIGINT},</if> - <if test="equipId != null">#{equipId,jdbcType=BIGINT},</if> - <if test="equipCycleContent != null">#{equipCycleContent,jdbcType=VARCHAR},</if> - <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> - </trim> - </insert> - <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle"> - update pr_equip_life_cycle - <set> - <if test="equipId != null"> - equip_id = #{equipId,jdbcType=BIGINT}, - </if> - <if test="equipCycleContent != null"> - equip_cycle_content = #{equipCycleContent,jdbcType=VARCHAR}, - </if> - <if test="dt != null"> - dt = #{dt,jdbcType=TIMESTAMP}, - </if> - </set> - where id = #{id,jdbcType=BIGINT} - </update> - <update id="updateByPrimaryKey" parameterType="com.dy.pmsGlobal.pojoPr.PrEquipLifeCycle"> - update pr_equip_life_cycle - set - equip_id = #{equipId,jdbcType=BIGINT}, - equip_cycle_content = #{equipCycleContent,jdbcType=VARCHAR}, - dt = #{dt,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=BIGINT} - </update> - - <select id="selectSome" resultMap="BaseResultMap"> - select - <include refid="Base_Column_List" /> - from pr_equip_life_cycle - <trim prefix="where" suffixOverrides="and"> - <if test="id != null"> - id = #{id,jdbcType=BIGINT} and - </if> - <if test="equipId != null"> - equip_id = #{equipId,jdbcType=BIGINT} and - </if> - <if test="equipCycleContent != null"> - equip_cycle_content = #{equipCycleContent,jdbcType=VARCHAR} and - </if> - <if test="dt != null"> - dt = #{dt,jdbcType=TIMESTAMP} and - </if> - </trim> - order by id desc - <trim prefix="limit " > - <if test="start != null and count != null"> - #{start}, #{count} - </if> - </trim> - </select> - - <select id="selectSomeCount" resultType="java.lang.Long"> - select count(1) - from pr_equip_life_cycle - <trim prefix="where" suffixOverrides="and"> - <if test="id != null"> - id = #{id,jdbcType=BIGINT} and - </if> - <if test="equipId != null"> - equip_id = #{equipId,jdbcType=BIGINT} and - </if> - <if test="equipCycleContent != null"> - equip_cycle_content = #{equipCycleContent,jdbcType=VARCHAR} and - </if> - <if test="dt != null"> - dt = #{dt,jdbcType=TIMESTAMP} and - </if> - </trim> - </select> - - <update id="deleteLogicById" parameterType="java.lang.Long"> - update pr_equip_life_cycle set deleted = 1 - where id = #{id} - </update> -</mapper> -- Gitblit v1.8.0