| | |
| | | <if test="vo.adCode != null and vo.adCode != '' "> |
| | | and (aab."ad_code" = #{vo.adCode} or aa."ad_code" = #{vo.adCode} or ab."ad_code" = #{vo.adCode} or ac."ad_code" = #{vo.adCode}) |
| | | </if> |
| | | |
| | | order by qm.create_time desc |
| | | </select> |
| | | <select id="getDetail" resultType="cn.gistack.sm.resDataCheck.vo.QualityManageVO"> |
| | | SELECT |
| | |
| | | </select> |
| | | |
| | | <insert id="addQualityManage"> |
| | | insert into SM_RES_DATA_QUALITY_MANAGE (res_id,rule_id,create_time,update_time) |
| | | select a."guid" as res_id,${ruleId} AS rule_id,NOW() AS create_time,NOW() AS update_time |
| | | insert into SM_RES_DATA_QUALITY_MANAGE (res_id,rule_id,create_time,update_time,val) |
| | | select a."guid" as res_id,${ruleId} AS rule_id,NOW() AS create_time,NOW() AS update_time, ${varStr} |
| | | from SJZT_MD."att_res_base" a |
| | | left join SJZT_MD."att_res_danger_manage_special" b on (a."guid" = b."res_guid") |
| | | left join SJZT_MD."att_res_stag_char" c on (a."guid" = c."res_guid") |