<?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.zy.asrs.mapper.BasArmRulesMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasArmRules">
|
<id column="id" property="id" />
|
<result column="material_length" property="materialLength" />
|
<result column="material_width" property="materialWidth" />
|
<result column="material_height" property="materialHeight" />
|
<result column="material_weight" property="materialWeight" />
|
<result column="material_volume" property="materialVolume" />
|
<result column="material_number" property="materialNumber" />
|
<result column="status" property="status" />
|
|
</resultMap>
|
|
|
<select id="AllStatusSatisfyBasArmRules" resultMap="BaseResultMap">
|
select top 10 from asr_bas_arm_rules where 1=1 and status = #{status}
|
</select>
|
|
<update id="updateStatus">
|
update asr_bas_arm_rules
|
set status = #{status}
|
, material_number = #{materialNumber}
|
where 1=1
|
and material_length = #{materialLength}
|
and material_width = #{materialWidth}
|
and material_height = #{materialHeight}
|
and material_weight = #{materialWeight}
|
</update>
|
|
<select id="getNumber" resultType="Integer">
|
select material_number
|
from asr_bas_arm_rules
|
where 1=1
|
and material_volume = #{volume}
|
and material_length = #{length}
|
and material_width = #{width}
|
and material_height = #{height}
|
and material_weight = #{weight}
|
</select>
|
|
</mapper>
|