| | |
| | | <?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"> |
| | |
| | | </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> |