a.id as id,
a.name as name,
a.docId as docId,
a.templatePath as templatePath,
a.remark as remark,
a.updateTime as updateTime,
a.updateUser as updateUser,
a.createTime as createTime,
a.createUser as createUser,
b.id as id,b.templateId as templateId,b.formName as formName,b.formContent as formContent,b.remark as remark,b.updateTime as updateTime,b.updateUser as updateUser,b.createTime as createTime,b.createUser as createUser,
insert into mortals_xhx_doc_template (name,docId,templatePath,remark,updateTime,updateUser,createTime,createUser) VALUES (#{name},#{docId},#{templatePath},#{remark},#{updateTime},#{updateUser},#{createTime},#{createUser})
insert into mortals_xhx_doc_template (name,docId,templatePath,remark,updateTime,updateUser,createTime,createUser) VALUES (#{item.name},#{item.docId},#{item.templatePath},#{item.remark},#{item.updateTime},#{item.updateUser},#{item.createTime},#{item.createUser})
update mortals_xhx_doc_template as a set a.name=#{data.name}, a.docId=#{data.docId}, a.docId=ifnull(a.docId,0) + #{data.docIdIncrement}, a.templatePath=#{data.templatePath}, 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_template as a when a.id=#{item.id} then #{item.name} when a.id=#{item.id} then #{item.docId} when a.id=#{item.id} then ifnull(a.docId,0) + #{item.docIdIncrement} when a.id=#{item.id} then #{item.templatePath} 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_template as a where a.id=#{condition.id}
delete a.* from mortals_xhx_doc_template as a where a.id=#{condition.id}
delete from mortals_xhx_doc_template where id in #{item}
delete a.* from mortals_xhx_doc_template as a where
select from mortals_xhx_doc_template as a where
select from mortals_xhx_doc_form as b where b.templateId = #{id}
select count(1) from mortals_xhx_doc_template 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.name like #{${_conditionParam_}.name}
${_conditionType_} a.name is null
${_conditionType_} a.name in #{item}
${_conditionType_} a.docId = #{${_conditionParam_}.docId}
${_conditionType_} a.docId is null
${_conditionType_} a.docId in #{item}
${_conditionType_} a.docId >= #{${_conditionParam_}.docIdStart}
${_conditionType_} a.docId <= #{${_conditionParam_}.docIdEnd}
${_conditionType_} a.templatePath like #{${_conditionParam_}.templatePath}
${_conditionType_} a.templatePath is null
${_conditionType_} a.templatePath 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.name DESC , a.docId DESC , a.templatePath DESC , a.remark DESC , a.updateTime DESC , a.updateUser DESC , a.createTime DESC , a.createUser DESC ,
GROUP BY ${item}