Commit 19d0d56c by lijingjing

去除冗余代码‘

parent 46e6e190
...@@ -855,18 +855,18 @@ ...@@ -855,18 +855,18 @@
<!--获取质保金项目数据:--> <!--获取质保金项目数据:-->
<select id="selectQualityInspectionItemQuantity" resultType="com.patzn.cloud.service.hmhj.entity.Statistics"> <select id="selectQualityInspectionItemQuantity" resultType="com.patzn.cloud.service.hmhj.entity.Statistics">
select select
to_char(q.payment_time,'yyyy-MM') "occur_date", to_char(q.ctime,'yyyy-MM') "occur_date",
count(1) "total", count(1) "total",
count(case when q.status = 1 then q.id else null end) "done_num" count(case when q.status = 1 then q.id else null end) "done_num"
from quality_management q where q.deleted = 0 from quality_management q where q.deleted = 0
<if test="null != vo.timeS"> <if test="null != vo.timeS">
AND q.payment_time >= #{vo.timeS} AND q.ctime >= #{vo.timeS}
</if> </if>
<if test="null != vo.timeE"> <if test="null != vo.timeE">
AND q.payment_time &lt;= #{vo.timeE} AND q.ctime &lt;= #{vo.timeE}
</if> </if>
group by to_char(q.payment_time,'yyyy-MM') group by to_char(q.ctime,'yyyy-MM')
order by to_char(q.payment_time,'yyyy-MM') order by to_char(q.ctime,'yyyy-MM')
</select> </select>
<!--CNAS质量目标完成情况--> <!--CNAS质量目标完成情况-->
......
/** created by meazty on 2022/7/20 17:34 **/
/** created by meazty on 2022/7/20 17:34 **/
create or replace view v_sys_file
as
SELECT f.id,
f.name,
f.ctime,
f.status,
f.effective
FROM dblink(func_db_info('dev_base'::character varying)::text, ' select
f.id,
f.name,
f.ctime,
f.status,
f.effective from sys_file f '::text) f(id bigint, name character varying, ctime timestamp without time zone, status integer, effective integer)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment