Newer
Older
huludao / src / main / resources / mapper / business / EquRepairOrderDao.xml
<?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.newfiber.modules.inspection.dao.EquRepairOrderDao">

    <!-- 可根据自己的需求,是否要使用 -->
    <resultMap type="com.newfiber.modules.inspection.entity.EquRepairOrderEntity" id="equRepairOrderMap">
        <result property="id" column="id"/>
        <result property="equNo" column="equ_no"/>
        <result property="equName" column="equ_name"/>
        <result property="maintainNo" column="maintain_no"/>
        <result property="repairNo" column="repair_no"/>
        <result property="repairPersonnel" column="repair_personnel"/>
        <result property="fullname" column="fullname"/>
        <result property="workOrderStatus" column="work_order_status"/>
        <result property="remarks" column="remarks"/>
        <result property="repairLevel" column="repair_level"/>
        <result property="repairState" column="repair_state"/>
        <result property="createTime" column="create_time"/>
    </resultMap>

    <update id="updateOrder" parameterType="com.newfiber.modules.inspection.entity.EquRepairOrderEntity">
        update equ_repair_order SET work_order_status=#{workOrderStatus}
        where repair_no=#{repairNo}
    </update>


</mapper>