id, indicator_card_no, indicator_card_name, indicator_card_type, dataservice_no,
dataservice_name, indicator_card_order, access_control,home_display, warning_flag,
template_nos,card_status, creator, creator_name, gmt_create, modifier, modifier_name, gmt_modified,
effect_flag
SELECT LAST_INSERT_ID()
insert into dataplatform_wisdom_indicator_card (indicator_card_no, indicator_card_name,
indicator_card_type, dataservice_no, dataservice_name,
indicator_card_order, access_control,
home_display,warning_flag, template_nos, creator,
creator_name, gmt_create, modifier,
modifier_name, gmt_modified, effect_flag
)
values (#{indicatorCardNo,jdbcType=VARCHAR}, #{indicatorCardName,jdbcType=VARCHAR},
#{indicatorCardType,jdbcType=VARCHAR}, #{dataserviceNo,jdbcType=VARCHAR}, #{dataserviceName,jdbcType=VARCHAR},
#{indicatorCardOrder,jdbcType=VARCHAR}, #{accessControl,jdbcType=VARCHAR},
#{homeDisplay,jdbcType=VARCHAR},#{warningFlag,jdbcType=VARCHAR}, #{templateNos,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR},
#{creatorName,jdbcType=VARCHAR}, now(), #{modifier,jdbcType=VARCHAR},
#{modifierName,jdbcType=VARCHAR},now(),1
)
update dataplatform_wisdom_indicator_card
indicator_card_name = #{indicatorCardName,jdbcType=VARCHAR},
indicator_card_type = #{indicatorCardType,jdbcType=VARCHAR},
dataservice_no = #{dataserviceNo,jdbcType=VARCHAR},
dataservice_name = #{dataserviceName,jdbcType=VARCHAR},
indicator_card_order = #{indicatorCardOrder,jdbcType=INTEGER},
access_control = #{accessControl,jdbcType=VARCHAR},
home_display = #{homeDisplay,jdbcType=VARCHAR},
warning_flag = #{warningFlag,jdbcType=VARCHAR},
template_nos = #{templateNos,jdbcType=VARCHAR},
modifier = #{modifier,jdbcType=VARCHAR},
modifier_name = #{modifierName,jdbcType=VARCHAR},
gmt_modified = now()
where indicator_card_no = #{indicatorCardNo,jdbcType=VARCHAR} and effect_flag = 1
update dataplatform_wisdom_indicator_card
card_status = #{cardStatus,jdbcType=VARCHAR},
effect_flag = #{effectFlag,jdbcType=VARCHAR},
gmt_modified = now()
where indicator_card_no = #{indicatorCardNo,jdbcType=VARCHAR} and effect_flag = 1
update dataplatform_wisdom_indicator_card
set indicator_card_order = #{item.indicatorCardOrder,jdbcType=INTEGER}
where indicator_card_no = #{item.indicatorCardNo,jdbcType=VARCHAR} and effect_flag = 1