|
@@ -534,4 +534,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</where>
|
|
</where>
|
|
GROUP BY e.enterprise_name, DATE_FORMAT(r.account_open_time, '%Y-%m');
|
|
GROUP BY e.enterprise_name, DATE_FORMAT(r.account_open_time, '%Y-%m');
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="getProductionReport" parameterType="CenterdataTHousingconstructionSteelcylinder" resultType="map">
|
|
|
|
+ SELECT
|
|
|
|
+ a.enterprise_name enterpriseName,
|
|
|
|
+ a.report_type reportType,
|
|
|
|
+ b.dict_label reportTypeLabel,
|
|
|
|
+ a.create_time createTime,
|
|
|
|
+ c.file_name fileName,
|
|
|
|
+ c.attach_path attachPath
|
|
|
|
+ FROM
|
|
|
|
+ centerdata_t_housingconstruction_enterpriseproductionreport a
|
|
|
|
+ left join onest_system.sys_dict_data b on a.report_type = b.dict_value
|
|
|
|
+ left join centerdata_t_housingconstruction_attach c on a.id = c.bus_id
|
|
|
|
+ WHERE a.enterprise_id = #{enterpriseId}
|
|
|
|
+ and b.dict_type = 'enterprise_qualification_file'
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|