| | |
| | | <resultMap id="userResult" type="com.gkhy.assess.system.domain.SysUser"> |
| | | <id property="id" column="leader_id" /> |
| | | <result property="name" column="leader_name" /> |
| | | <result property="phone" column="link_phone" /> |
| | | </resultMap> |
| | | |
| | | <resultMap id="contractResult" type="com.gkhy.assess.system.domain.AssContract"> |
| | |
| | | select distinct p.id,p.name, p.code,p.client,p.province,p.city,p.district,p.business,p.invest,p.address,p.agency_id, |
| | | p.actual_location,p.location,p.estimate_type,p.filing_date, |
| | | p.credit_code,p.report_progress,p.phase,p.state,p.introduction,p.is_review,p.del_flag,p.create_by,p.create_time, |
| | | p.update_by,p.update_time,p.remark,d1.label as business_name,d2.label as estimate_type_name,e.leader_id,u.name as leader_name, |
| | | p.update_by,p.update_time,p.remark,d1.label as business_name,d2.label as estimate_type_name,e.leader_id,u.name as leader_name,e.link_phone, |
| | | c.id as contract_id,c.contract_money,c.actual_contract_money,a.name as agency_name, |
| | | (select count(*) from ass_project_material m where m.project_id=p.id and m.file_id is not null) as material_cnt |
| | | from ass_project p |