INSERT INTO achivement(
achivementid, uid, achivetype, pointcasetype, objectid, score,
accuracy, fluent, integrity, content, created, uuid, areaid)
VALUES (
(SELECT NEXTVAL('seq_achivementid')),
#{achivementid},
#{uid}, #{achivetype}, #{pointcasetype}, #{objectid}, #{score},
#{accuracy}, #{fluent}, #{integrity}, #{content}, #{created}, #{uuid}, #{areaid})
INSERT INTO achivement(
achivementid, uid, achivetype, pointcasetype, objectid, score,
accuracy, fluent, integrity, content, created, uuid, areaid,jContent)
VALUES (
(SELECT NEXTVAL('seq_achivementid')),
#{achivementid},
#{uid}, #{achivetype}, #{pointcasetype}, #{objectid}, #{score},
#{accuracy}, #{fluent}, #{integrity}, #{content}, #{created}, #{uuid}, #{areaid},
#{jContent,typeHandler=com._3e.http.wrongbook.typehandler.JSONTypeHandlerPg}
)
INSERT INTO achivement_more(
achivementId,areaId,created,content,content_url )
VALUES (
#{achivementId},
#{areaId},
#{created},
#{content},
#{contentUrl}
)
UPDATE achivement SET uuid = #{uuid} WHERE achivementid = #{achivementid}
and areaid=#{areaid} and uid=#{uid}