a.id AS "id",
a.name AS "name",
a.reducedAmount AS "reducedAmount",
a.touchPrice AS "touchPrice",
a.shareNum AS "shareNum",
a.startTime AS "startTime",
a.endTime AS "endTime",
a.addTime AS "addTime"
INSERT INTO cm_hehe_reduction(
name,
reducedAmount,
touchPrice,
shareNum,
startTime,
endTime,
addTime
) VALUES (
#{name},
#{reducedAmount},
#{touchPrice},
#{shareNum},
#{startTime},
#{endTime},
NOW()
)
UPDATE cm_hehe_reduction SET
name = #{name},
reducedAmount = #{reducedAmount},
touchPrice = #{touchPrice},
shareNum = #{shareNum},
startTime = #{startTime},
endTime = #{endTime}
WHERE id = #{id}
update cm_hehe_reduction set
endTime = NOW()
startTime = NOW()
where id = #{id}
update cm_hehe_reduction
set startTime = #{startTime}, endTime = #{endTime}
where id = #{id}
DELETE FROM cm_hehe_reduction
WHERE id = #{id}