| | |
| | | <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> |
| | | |
| | |
| | | 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> |