zhang
2025-05-20 1313906bb1eb983d3beece810035e7fc28d6a92f
zy-acs-fake/src/main/resources/mapper/AgvDetailMapper.xml
@@ -1,6 +1,6 @@
<?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.acs.manager.fake.AgvDetailMapper">
<mapper namespace="com.zy.acs.fake.mapper.AgvDetailMapper">
    <!-- 关联查询sql -->
    <sql id="selectSql">
@@ -26,22 +26,19 @@
        </where>
    </sql>
    <update id="updatePosCode">
    <update id="updatePosCodeByAgvId">
        update man_agv_detail
        set code = #{codeId},
        last_code = null,
        pos = 1
        where 1=1
        and id = #{id}
        and agv_id = #{agvId}
    </update>
    <update id="updateUnPosCode">
    <update id="updateAngleByAgvId">
        update man_agv_detail
        set last_code = #{lastCode},
        code = null,
        pos = 0
        set agv_angle = #{angle}
        where 1=1
        and id = #{id}
        and agv_id = #{agvId}
    </update>
</mapper>