| | |
| | | SUM(count) AS totalCount, |
| | | SUM(received) AS totalReceived, |
| | | SUM(gift) AS totalGift |
| | | FROM v_transactionstatistics2 |
| | | FROM v_trade_summary |
| | | <where> |
| | | <if test = "tradeDate != null and tradeDate !=''"> |
| | | AND tradeDate = #{tradeDate} |
| | |
| | | <select id="getToAuditRecordCount" parameterType="java.util.Map" resultType="java.lang.Long"> |
| | | SELECT |
| | | COUNT(*) AS recordCount |
| | | FROM v_transactionstatistics2 |
| | | FROM v_trade_summary |
| | | <where> |
| | | <if test = "cashierId != null and cashierId > 0"> |
| | | AND cashierId = ${cashierId} |
| | |
| | | |
| | | <!--财务对账审核页,收银员+日期+类型分组,排除交易类型分组--> |
| | | <select id="getToAudit" resultType="com.dy.pipIrrGlobal.voSe.VoTransactionStatistics"> |
| | | SELECT * FROM v_transactionstatistics2 |
| | | SELECT * FROM v_trade_summary |
| | | <where> |
| | | <if test = "cashierId != null and cashierId > 0"> |
| | | AND cashierId = ${cashierId} |
| | |
| | | AND cashierId = ${cashierId} |
| | | </if> |
| | | |
| | | <if test = "tradeDate != null"> |
| | | AND tradeDate = #{tradeDate} |
| | | <if test = "tradeTime != null"> |
| | | AND tradeTime = #{tradeTime} |
| | | </if> |
| | | </where> |
| | | ORDER BY tradeDate |
| | | ORDER BY tradeTime |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | </mapper> |