| | |
| | | <if test="unitId !=null and unitId != ''"> |
| | | AND unit_id = #{unitId} |
| | | </if> |
| | | <if test="productId !=null and productId != ''"> |
| | | AND product_id = #{productId} |
| | | </if> |
| | | ORDER BY add_time DESC |
| | | </select> |
| | | |
| | |
| | | AND unit_id = #{unitId} |
| | | </if> |
| | | AND pricing_id = #{pricingId} |
| | | AND product_id = #{productId} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | |
| | | <if test="unitId != '' and unitId != null"> |
| | | AND unit_id = #{unitId} |
| | | </if> |
| | | <if test="productId != '' and productId != null"> |
| | | AND product_id = #{productId} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="sumTotalAmountByUserIdAndUnitId" resultType="java.math.BigDecimal"> |