智慧农业后台管理
guoshilong
2022-08-12 9d9928e3a79c202c1718f7fec7c154090627eaba
src/main/java/org/springblade/modules/soldrecord/mapper/SoldrecordMapper.xml
@@ -95,16 +95,20 @@
        AND blade_dict_biz.tenant_id = #{soldrecord.codes}
    </if>) b ON b.dict_key = st.type
        LEFT JOIN ( SELECT id, real_name FROM blade_user ) f ON f.id=st.create_user
        LEFT JOIN sys_stockrecord str ON str.sr_id = st.id
        WHERE st.is_deleted = 0
        <if test="soldrecord.stockId1!=null and soldrecord.stockId1 != ''">
            and st.sid= #{soldrecord.stockId1}
        </if>
        <if test="soldrecord.deptId != null and soldrecord.deptId !=''">
            and str.dept_id = #{soldrecord.deptId}
        </if>
    </select>
    <update id="updateSold">
        update sys_soldr
        set amount1=#{amount}, census=#{census}
        where id = #{id}
        where sid = #{sid}
    </update>
    <delete id="delc">