create_by,
create_time,
update_by,
update_time,
id,
time,
company_id,
shop_id,
name,
value,
code,
sequence,
data_type,
t1,
t2,
t3,
t4,
t5,
t6,
t7,
t8,
t9,
t10,
t11,
t12,
t13,
t14,
t15
#{item.createBy},
now(),
#{item.updateBy},
now(),
#{item.id},
#{item.time},
#{item.companyId},
#{item.shopId},
#{item.name},
#{item.value},
#{item.code},
#{item.sequence},
#{item.dataType},
#{item.t1},
#{item.t2},
#{item.t3},
#{item.t4},
#{item.t5},
#{item.t6},
#{item.t7},
#{item.t8},
#{item.t9},
#{item.t10},
#{item.t11},
#{item.t12},
#{item.t13},
#{item.t14},
#{item.t15}
and id = #{record.id}
and to_days(time) = to_days(#{record.time})
and company_id = #{record.companyId}
and shop_id = #{record.shopId}
and name = #{record.name}
and value = #{record.value}
and code = #{record.code}
and sequence = #{record.sequence}
and data_type = #{record.dataType}
and t1 = #{record.t1}
and t2 = #{record.t2}
and t3 = #{record.t3}
and t4 = #{record.t4}
and t5 = #{record.t5}
and t6 = #{record.t6}
and t7 = #{record.t7}
and t8 = #{record.t8}
and t9 = #{record.t9}
and t10 = #{record.t10}
and t11 = #{record.t11}
and t12 = #{record.t12}
and t13 = #{record.t13}
and t14 = #{record.t14}
and t15 = #{record.t15}
INSERT INTO sys_business_data (
)
VALUES (
)
INSERT INTO sys_business_data (
)
VALUES
(
)
UPDATE sys_business_data
time = #{time},
company_id = #{companyId},
shop_id = #{shopId},
name = #{name},
value = #{value},
code = #{code},
sequence = #{sequence},
data_type = #{dataType},
t1 = #{t1},
t2 = #{t2},
t3 = #{t3},
t4 = #{t4},
t5 = #{t5},
t6 = #{t6},
t7 = #{t7},
t8 = #{t8},
t9 = #{t9},
t10 = #{t10},
t11 = #{t11},
t12 = #{t12},
t13 = #{t13},
t14 = #{t14},
t15 = #{t15},
WHERE id=#{id}
UPDATE sys_business_data
time = #{record.time},
company_id = #{record.companyId},
shop_id = #{record.shopId},
name = #{record.name},
value = #{record.value},
code = #{record.code},
sequence = #{record.sequence},
data_type = #{record.dataType},
t1 = #{record.t1},
t2 = #{record.t2},
t3 = #{record.t3},
t4 = #{record.t4},
t5 = #{record.t5},
t6 = #{record.t6},
t7 = #{record.t7},
t8 = #{record.t8},
t9 = #{record.t9},
t10 = #{record.t10},
t11 = #{record.t11},
t12 = #{record.t12},
t13 = #{record.t13},
t14 = #{record.t14},
t15 = #{record.t15},
WHERE id=#{record.id}
delete from sys_business_data where id in
#{item}
DELETE FROM sys_business_data
where id=#{id}
DELETE FROM sys_business_data
select sum(amount) amount, case when is_gift = 'Y' then '赠金收款' when is_gift='N' then '本金收款' else pay_method end paymethod
from sys_order_flow
where #{item.beginTime} and create_time < #{item.endTime} ]]>
and shop_id=#{shopId}
group by paymethod