|
|
@ -6,29 +6,39 @@ |
|
|
|
|
|
|
|
<resultMap type="com.lzbi.report.domain.DcBusiReportRecord" id="DcBusiReportRecordResult"> |
|
|
|
<result property="id" column="id" /> |
|
|
|
<result property="reportCode" column="report_code" /> |
|
|
|
<result property="reportName" column="report_name" /> |
|
|
|
<result property="url" column="url" /> |
|
|
|
<result property="status" column="status" /> |
|
|
|
<result property="beanName" column="bean_name" /> |
|
|
|
<result property="methodName" column="method_name" /> |
|
|
|
<result property="params" column="params" /> |
|
|
|
<result property="deptId" column="dept_id" /> |
|
|
|
<result property="createdBy" column="created_by" /> |
|
|
|
<result property="createdTime" column="created_time" /> |
|
|
|
<result property="updatedBy" column="updated_by" /> |
|
|
|
<result property="updatedTime" column="updated_time" /> |
|
|
|
<result property="remark" column="remark" /> |
|
|
|
<result property="deptName" column="dept_name" /> |
|
|
|
<result property="nickName" column="nick_name" /> |
|
|
|
<result property="deleteBy" column="delete_by" /> |
|
|
|
<result property="deleteTime" column="delete_time" /> |
|
|
|
<result property="tenantId" column="tenant_id" /> |
|
|
|
<result property="revision" column="revision" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcBusiReportRecordVo"> |
|
|
|
select id, report_name, url, status, dept_id, created_by, created_time, updated_by, updated_time, remark from dc_busi_report_record |
|
|
|
select id, report_code, report_name, url, status, bean_name, method_name, params, dept_id, created_by, created_time, updated_by, updated_time, remark, delete_by, delete_time, tenant_id, revision from dc_busi_report_record |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectDcBusiReportRecordList" parameterType="DcBusiReportRecord" resultMap="DcBusiReportRecordResult"> |
|
|
|
select |
|
|
|
t1.id, |
|
|
|
t1.report_code, |
|
|
|
t1.report_name, |
|
|
|
t1.url, |
|
|
|
t1.status, |
|
|
|
t1.bean_name, |
|
|
|
t1.method_name, |
|
|
|
t1.params, |
|
|
|
t1.dept_id, |
|
|
|
t1.created_by, |
|
|
|
t1.created_time, |
|
|
@ -38,17 +48,12 @@ |
|
|
|
t2.dept_name, |
|
|
|
t3.nick_name |
|
|
|
from |
|
|
|
dc_busi_report_record t1 |
|
|
|
left join |
|
|
|
sys_dept t2 |
|
|
|
on |
|
|
|
t1.dept_id = t2.dept_id |
|
|
|
left join |
|
|
|
sys_user t3 |
|
|
|
on |
|
|
|
t1.created_by = t3.user_name |
|
|
|
dc_busi_report_record t1 |
|
|
|
left join sys_dept t2 on t1.dept_id = t2.dept_id |
|
|
|
left join sys_user t3 on t1.created_by = t3.user_name |
|
|
|
<where> |
|
|
|
<if test="status != null and status != ''"> and t1.status = #{status}</if> |
|
|
|
<if test="reportCode != null and reportCode != ''"> and t1.report_code = #{reportCode}</if> |
|
|
|
<if test="reportName != null and reportName != ''"> and t1.report_name like concat(#{reportName}, '%')</if> |
|
|
|
<if test="nickName != null and nickName != ''"> and t3.nick_name like concat(#{nickName}, '%')</if> |
|
|
|
</where> |
|
|
@ -65,42 +70,66 @@ |
|
|
|
insert into dc_busi_report_record |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">id,</if> |
|
|
|
<if test="reportCode != null and reportCode != ''">report_code,</if> |
|
|
|
<if test="reportName != null and reportName != ''">report_name,</if> |
|
|
|
<if test="url != null and url != ''">url,</if> |
|
|
|
<if test="status != null">status,</if> |
|
|
|
<if test="status != null and status != ''">status,</if> |
|
|
|
<if test="beanName != null">bean_name,</if> |
|
|
|
<if test="methodName != null">method_name,</if> |
|
|
|
<if test="params != null">params,</if> |
|
|
|
<if test="deptId != null">dept_id,</if> |
|
|
|
<if test="createdBy != null">created_by,</if> |
|
|
|
<if test="createdTime != null">created_time,</if> |
|
|
|
<if test="updatedBy != null">updated_by,</if> |
|
|
|
<if test="updatedTime != null">updated_time,</if> |
|
|
|
<if test="remark != null">remark,</if> |
|
|
|
<if test="deleteBy != null">delete_by,</if> |
|
|
|
<if test="deleteTime != null">delete_time,</if> |
|
|
|
<if test="tenantId != null">tenant_id,</if> |
|
|
|
<if test="revision != null">revision,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
|
<if test="reportCode != null and reportCode != ''">#{reportCode},</if> |
|
|
|
<if test="reportName != null and reportName != ''">#{reportName},</if> |
|
|
|
<if test="url != null and url != ''">#{url},</if> |
|
|
|
<if test="status != null">#{status},</if> |
|
|
|
<if test="status != null and status != ''">#{status},</if> |
|
|
|
<if test="beanName != null">#{beanName},</if> |
|
|
|
<if test="methodName != null">#{methodName},</if> |
|
|
|
<if test="params != null">#{params},</if> |
|
|
|
<if test="deptId != null">#{deptId},</if> |
|
|
|
<if test="createdBy != null">#{createdBy},</if> |
|
|
|
<if test="createdTime != null">#{createdTime},</if> |
|
|
|
<if test="updatedBy != null">#{updatedBy},</if> |
|
|
|
<if test="updatedTime != null">#{updatedTime},</if> |
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
|
<if test="deleteBy != null">#{deleteBy},</if> |
|
|
|
<if test="deleteTime != null">#{deleteTime},</if> |
|
|
|
<if test="tenantId != null">#{tenantId},</if> |
|
|
|
<if test="revision != null">#{revision},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="updateDcBusiReportRecord" parameterType="DcBusiReportRecord"> |
|
|
|
update dc_busi_report_record |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="reportCode != null and reportCode != ''">report_code = #{reportCode},</if> |
|
|
|
<if test="reportName != null and reportName != ''">report_name = #{reportName},</if> |
|
|
|
<if test="url != null and url != ''">url = #{url},</if> |
|
|
|
<if test="status != null">status = #{status},</if> |
|
|
|
<if test="status != null and status != ''">status = #{status},</if> |
|
|
|
<if test="beanName != null">bean_name = #{beanName},</if> |
|
|
|
<if test="methodName != null">method_name = #{methodName},</if> |
|
|
|
<if test="params != null">params = #{params},</if> |
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if> |
|
|
|
<if test="createdBy != null">created_by = #{createdBy},</if> |
|
|
|
<if test="createdTime != null">created_time = #{createdTime},</if> |
|
|
|
<if test="updatedBy != null">updated_by = #{updatedBy},</if> |
|
|
|
<if test="updatedTime != null">updated_time = #{updatedTime},</if> |
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
|
<if test="deleteBy != null">delete_by = #{deleteBy},</if> |
|
|
|
<if test="deleteTime != null">delete_time = #{deleteTime},</if> |
|
|
|
<if test="tenantId != null">tenant_id = #{tenantId},</if> |
|
|
|
<if test="revision != null">revision = #{revision},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|