zhongrj
2023-10-20 bb7971ee1b8dbfaa0e1ceb0d60daee974da77671
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sjztods/mapper/XsfsQktjMapper.xml
@@ -61,8 +61,8 @@
        <if test="xsfsQktj.statisticTime!=null">
            and date_format(xq."statistic_time",'%Y-%m-%d') = #{xsfsQktj.statisticTime}
        </if>
        <if test="xsfsQktj.adCode!=null and xsfsQktj.adCode!=''">
            and xq."ad_code" = #{xsfsQktj.adCode}
        <if test="xsfsQktj.adName!=null and xsfsQktj.adName!=''">
            and xq."ad_name" = #{xsfsQktj.adName}
        </if>
    </select>
@@ -71,6 +71,14 @@
        select * from SJZT_ODS."skxs_qk_tj"
        where 1=1
        and date_format("statistic_time",'%Y-%m-%d') = #{xsfsQktjExcel.statisticTime}
        and "ad_code" = #{xsfsQktjExcel.adCode}
        and "ad_name" = #{xsfsQktjExcel.adName}
    </select>
    <!--查询详情数据-->
    <select id="selectXsfsQktjBy" resultType="cn.gistack.sm.sjztods.entity.XsfsQktj">
        select * from SJZT_ODS."skxs_qk_tj"
        where 1=1
        and date_format("statistic_time",'%Y-%m-%d') = #{statisticTime}
        and "ad_name" = #{adName}
    </select>
</mapper>