a.id as id,
a.templateId as templateId,
a.formName as formName,
a.formContent as formContent,
a.remark as remark,
a.updateTime as updateTime,
a.updateUser as updateUser,
a.createTime as createTime,
a.createUser as createUser,
insert into mortals_xhx_doc_form (templateId,formName,formContent,remark,updateTime,updateUser,createTime,createUser) VALUES (#{templateId},#{formName},#{formContent},#{remark},#{updateTime},#{updateUser},#{createTime},#{createUser})
insert into mortals_xhx_doc_form (templateId,formName,formContent,remark,updateTime,updateUser,createTime,createUser) VALUES (#{item.templateId},#{item.formName},#{item.formContent},#{item.remark},#{item.updateTime},#{item.updateUser},#{item.createTime},#{item.createUser})
update mortals_xhx_doc_form as a set a.templateId=#{data.templateId}, a.templateId=ifnull(a.templateId,0) + #{data.templateIdIncrement}, a.formName=#{data.formName}, a.formContent=#{data.formContent}, a.remark=#{data.remark}, a.updateTime=#{data.updateTime}, a.updateUser=#{data.updateUser}, a.createTime=#{data.createTime}, a.createUser=#{data.createUser}, where
update mortals_xhx_doc_form as a when a.id=#{item.id} then #{item.templateId} when a.id=#{item.id} then ifnull(a.templateId,0) + #{item.templateIdIncrement} when a.id=#{item.id} then #{item.formName} when a.id=#{item.id} then #{item.formContent} when a.id=#{item.id} then #{item.remark} when a.id=#{item.id} then #{item.updateTime} when a.id=#{item.id} then #{item.updateUser} when a.id=#{item.id} then #{item.createTime} when a.id=#{item.id} then #{item.createUser} where id in #{item.id}
select from mortals_xhx_doc_form as a where a.id=#{condition.id}
delete a.* from mortals_xhx_doc_form as a where a.id=#{condition.id}
delete from mortals_xhx_doc_form where id in #{item}
delete a.* from mortals_xhx_doc_form as a where
select from mortals_xhx_doc_form as a where
select count(1) from mortals_xhx_doc_form as a where
and
and
${_conditionType_} a.id=#{${_conditionParam_}.id}
${_conditionType_} a.id = #{${_conditionParam_}.id}
${_conditionType_} a.id is null
${_conditionType_} a.id in #{item}
${_conditionType_} a.id >= #{${_conditionParam_}.idStart}
${_conditionType_} a.id <= #{${_conditionParam_}.idEnd}
${_conditionType_} a.templateId = #{${_conditionParam_}.templateId}
${_conditionType_} a.templateId is null
${_conditionType_} a.templateId in #{item}
${_conditionType_} a.templateId >= #{${_conditionParam_}.templateIdStart}
${_conditionType_} a.templateId <= #{${_conditionParam_}.templateIdEnd}
${_conditionType_} a.formName like #{${_conditionParam_}.formName}
${_conditionType_} a.formName is null
${_conditionType_} a.formName in #{item}
${_conditionType_} a.formContent like #{${_conditionParam_}.formContent}
${_conditionType_} a.formContent is null
${_conditionType_} a.formContent in #{item}
${_conditionType_} a.remark like #{${_conditionParam_}.remark}
${_conditionType_} a.remark is null
${_conditionType_} a.remark in #{item}
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
${_conditionType_} a.updateTime is null
${_conditionType_} a.updateTime >= STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
${_conditionType_} a.updateTime <= STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
${_conditionType_} a.updateUser like #{${_conditionParam_}.updateUser}
${_conditionType_} a.updateUser is null
${_conditionType_} a.updateUser in #{item}
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
${_conditionType_} a.createTime is null
${_conditionType_} a.createTime >= STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
${_conditionType_} a.createTime <= STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
${_conditionType_} a.createUser like #{${_conditionParam_}.createUser}
${_conditionType_} a.createUser is null
${_conditionType_} a.createUser in #{item}
order by ${item.colName} ${item.sortKind}
order by a.id DESC , a.templateId DESC , a.formName DESC , a.formContent DESC , a.remark DESC , a.updateTime DESC , a.updateUser DESC , a.createTime DESC , a.createUser DESC ,
GROUP BY ${item}