| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="platform.modules.government.dao.CompanyReportDao">
- <select id="countCompanyReport" resultType="Integer">
- select count(id) from c_report where report_month=#{month} and report_year=#{year} and build_id=#{buildId}
- and status=1
- </select>
- <select id="getCompanyReportByDate" resultType="platform.modules.government.entity.CompanyReport">
- select * from c_report where report_month=#{month} and report_year=#{year} and company_id=#{companyId}
- </select>
- <select id="findListByRequest" resultType="platform.modules.sys.report.CompanyReportExport">
- select * from c_report
- where del_flag=0
- <if test="keyword!=null and keyword!=''">
- and name like CONCAT('%',#{keyword},'%')
- </if>
- <if test="year!=null and year!=''">
- and report_year=#{year}
- </if>
- <if test="month!=null and month!=''">
- and report_month=#{month}
- </if>
- and build_id=#{build_id}
- </select>
- <select id="findCompanyReportByRequest" resultType="platform.modules.government.entity.CompanyReport">
- select * from c_report
- where del_flag=0
- <if test="keyword!=null and keyword!=''">
- and name like CONCAT('%',#{keyword},'%')
- </if>
- <if test="year!=null and year!=''">
- and report_year=#{year}
- </if>
- <if test="month!=null and month!=''">
- and report_month=#{month}
- </if>
- <if test="company_id!=null and company_id!=''">
- and company_id=#{company_id}
- </if>
- and build_id=#{build_id}
- and status=1
- </select>
- </mapper>
|