|
@@ -189,15 +189,6 @@
|
|
|
|
|
|
|
|
<select id="cargoInsurance" resultType="java.math.BigDecimal">
|
|
<select id="cargoInsurance" resultType="java.math.BigDecimal">
|
|
|
select ifnull(sum(cargo_insurance), 0) from tb_indent where 1 = 1
|
|
select ifnull(sum(cargo_insurance), 0) from tb_indent where 1 = 1
|
|
|
- <if test="query.dateType=='day'">
|
|
|
|
|
- and date_format(create_time,'%Y-%m-%d')=date_format(#{query.date},'%Y-%m-%d')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="query.dateType=='month'">
|
|
|
|
|
- and date_format(create_time,'%Y-%m')=date_format(#{query.date},'%Y-%m')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="query.dateType=='year'">
|
|
|
|
|
- and date_format(create_time,'%Y')=date_format(#{query.date},'%Y')
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
and create_time>=#{query.startTime}
|
|
and create_time>=#{query.startTime}
|
|
|
</if>
|
|
</if>
|
|
@@ -209,15 +200,6 @@
|
|
|
|
|
|
|
|
<select id="MoneySumByIndentType" resultType="java.math.BigDecimal">
|
|
<select id="MoneySumByIndentType" resultType="java.math.BigDecimal">
|
|
|
select ifnull(sum(platform_money), 0) from tb_indent where 1 = 1
|
|
select ifnull(sum(platform_money), 0) from tb_indent where 1 = 1
|
|
|
- <if test="query.dateType=='day'">
|
|
|
|
|
- and date_format(create_time,'%Y-%m-%d')=date_format(#{query.date},'%Y-%m-%d')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="query.dateType=='month'">
|
|
|
|
|
- and date_format(create_time,'%Y-%m')=date_format(#{query.date},'%Y-%m')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="query.dateType=='year'">
|
|
|
|
|
- and date_format(create_time,'%Y')=date_format(#{query.date},'%Y')
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
and create_time>=#{query.startTime}
|
|
and create_time>=#{query.startTime}
|
|
|
</if>
|
|
</if>
|
|
@@ -229,15 +211,6 @@
|
|
|
|
|
|
|
|
<select id="cashDepositMoney" resultType="java.math.BigDecimal">
|
|
<select id="cashDepositMoney" resultType="java.math.BigDecimal">
|
|
|
select ifnull(sum(money), 0) from pay_details where 1 = 1
|
|
select ifnull(sum(money), 0) from pay_details where 1 = 1
|
|
|
- <if test="query.dateType=='day'">
|
|
|
|
|
- and date_format(create_time,'%Y-%m-%d')=date_format(#{query.date},'%Y-%m-%d')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="query.dateType=='month'">
|
|
|
|
|
- and date_format(create_time,'%Y-%m')=date_format(#{query.date},'%Y-%m')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="query.dateType=='year'">
|
|
|
|
|
- and date_format(create_time,'%Y')=date_format(#{query.date},'%Y')
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
<if test="query.startTime!=null and query.startTime!=''">
|
|
|
and create_time>=#{query.startTime}
|
|
and create_time>=#{query.startTime}
|
|
|
</if>
|
|
</if>
|