ganzi-api/inventory-dao/src/main/resources/mapper/EntDeviceMaintenancePlanMapper.xml

38 lines
2.3 KiB
XML
Raw Normal View History

<?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.EntDeviceMaintenancePlanMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.rzyc.model.EntDeviceMaintenancePlan">
<id column="maintenance_plan_id" property="maintenancePlanId" />
<result column="maintenance_plan_level" property="maintenancePlanLevel" />
<result column="maintenance_plan_start_time" property="maintenancePlanStartTime" />
<result column="maintenance_plan_end_time" property="maintenancePlanEndTime" />
<result column="circulation_mode" property="circulationMode" />
<result column="cycle_number" property="cycleNumber" />
<result column="cycle_unit" property="cycleUnit" />
<result column="maintenance_people_id" property="maintenancePeopleId" />
<result column="spare_part_id" property="sparePartId" />
<result column="maintenance_description" property="maintenanceDescription" />
<result column="create_by" property="createBy" />
<result column="create_time" property="createTime" />
<result column="modify_by" property="modifyBy" />
<result column="modify_time" property="modifyTime" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
maintenance_plan_id, maintenance_plan_level, maintenance_plan_start_time, maintenance_plan_end_time, circulation_mode, cycle_number, cycle_unit, maintenance_people_id, spare_part_id, maintenance_description, create_by, create_time, modify_by, modify_time
</sql>
<update id="updateEntDeviceMaintenancePlan">
update ent_device_maintenance_plan set maintenance_plan_level = #{maintenancePlanLevel} ,maintenance_plan_start_time = #{maintenancePlanStartTime} ,maintenance_plan_end_time = #{maintenancePlanEndTime} ,circulation_mode = #{circulationMode}, cycle_number = #{cycleNumber},
cycle_unit = #{cycleUnit},maintenance_people_id = #{maintenancePeopleId},spare_part_id = #{sparePartId},maintenance_description = #{maintenanceDescription}
where maintenance_plan_id = #{maintenancePlanId}
</update>
<select id="selectEntDeviceMaintenancePlanList">
select * from ent_device_maintenance_plan
</select>
</mapper>