*
lsh
2025-11-06 534bb520f6e9e7b5aec6c9d89e339a411b15e562
src/main/resources/mapper/WrkDetlMapper.xml
@@ -4,37 +4,37 @@
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.entity.WrkDetl">
        <result column="wrk_no" property="wrkNo" />
        <result column="io_time" property="ioTime" />
        <result column="mat_no" property="matNo" />
        <result column="mat_name" property="matName" />
        <result column="specs" property="specs" />
        <result column="size" property="size" />
        <result column="color" property="color" />
        <result column="weight" property="weight" />
        <result column="bill_no" property="billNo" />
        <result column="seq_no" property="seqNo" />
        <result column="brand" property="brand" />
        <result column="qty" property="qty" />
        <result column="unit" property="unit" />
        <result column="zpallet" property="zpallet" />
        <result column="bname" property="bname" />
        <result column="memo" property="memo" />
        <result column="modi_user" property="modiUser" />
        <result column="modi_time" property="modiTime" />
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="WRK_NO" property="wrkNo" />
        <result column="IO_TIME" property="ioTime" />
        <result column="MATNR" property="matnr" />
        <result column="MAKTX" property="maktx" />
        <result column="SPECS" property="specs" />
        <result column="SIZE" property="size" />
        <result column="COLOR" property="color" />
        <result column="WEIGHT" property="weight" />
        <result column="BILL_NO" property="billNo" />
        <result column="SEQ_NO" property="seqNo" />
        <result column="BRAND" property="brand" />
        <result column="ANFME" property="anfme" />
        <result column="UNIT" property="unit" />
        <result column="ZPALLET" property="zpallet" />
        <result column="BNAME" property="bname" />
        <result column="MEMO" property="memo" />
        <result column="MODI_USER" property="modiUser" />
        <result column="MODI_TIME" property="modiTime" />
        <result column="APPE_USER" property="appeUser" />
        <result column="APPE_TIME" property="appeTime" />
    </resultMap>
    <select id="findByWorkNo" resultMap="BaseResultMap">
        select wrk_no, mat_no, mat_name, qty from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
        select "wrk_no", "matnr", "maktx", "anfme" from "SOURCE"."asr_wrk_detl" where 1=1 and "wrk_no" = #{workNo}
    </select>
    <update id="updateIoTime">
        update asr_wrk_detl
        set io_time = #{ioTime}
        update "SOURCE"."asr_wrk_detl"
        set "io_time" = #{ioTime}
        where 1=1
        and wrk_no = #{workNo}
        and "wrk_no" = #{workNo}
    </update>
</mapper>