|
@@ -2,6 +2,30 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="org.jeecg.modules.projectCost.mapper.ProjectCostMapper">
|
|
|
|
|
|
+ <!--根据任务号查询项目成本的主任务及组批后的主任务 -->
|
|
|
+ <select id="costListByTaskNoMain" resultType="org.jeecg.modules.projectCost.entity.ProjectCost">
|
|
|
+ select c.id,c.taskno,c.taskname,c.xhname,c.jhwcsj,c.yzjdname,c.processPercent,c.cost_percent,c.yzsl,
|
|
|
+ c.one_income,c.one_cost,c.one_profit,c.lre,c.lrl,c.EstimationCoat,c.contractfpe,c.TaskMoney,c.zcb,
|
|
|
+ c.clf ,c.zyf,c.swf,c.wxf,c.rldlf,c.gdzczj,c.gzjlwf,c.glf,IFNULL(c.zjcb,m.value) AS zjcb,c.lbsy ,
|
|
|
+ c.workhour,c.zrbm,c.jycsid,c.jycs ,c.hxzxid,c. hxzxname ,c.tasktype,c.AuditPrice,c.iflag,c.Brief,
|
|
|
+ c.reftaskno,c.pcCode,c.bcCode,c.blCode,c.BusinessMan,c.sjgs,c.scgs,c.status,c.proportion,c.clys,c.wxys
|
|
|
+ from kzks_project_cost c
|
|
|
+ left join mes_info_installationcost m on m.taskno = #{taskno}
|
|
|
+ where c.taskno = #{taskno} order by status
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!--根据任务号查询项目成本的子任务及组批后的子任务 -->
|
|
|
+ <select id="costListByTaskNoSub" resultType="org.jeecg.modules.projectCost.entity.ProjectCost">
|
|
|
+ select c.id,c.taskno,c.taskname,c.xhname,c.jhwcsj,c.yzjdname,c.processPercent,c.cost_percent,c.yzsl,
|
|
|
+ c.one_income,c.one_cost,c.one_profit,c.lre,c.lrl,c.EstimationCoat,c.contractfpe,c.TaskMoney,c.zcb,
|
|
|
+ c.clf ,c.zyf,c.swf,c.wxf,c.rldlf,c.gdzczj,c.gzjlwf,c.glf,IFNULL(c.zjcb,m.value) AS zjcb,c.lbsy ,
|
|
|
+ c.workhour,c.zrbm,c.jycsid,c.jycs ,c.hxzxid,c. hxzxname ,c.tasktype,c.AuditPrice,c.iflag,c.Brief,
|
|
|
+ c.reftaskno,c.pcCode,c.bcCode,c.blCode,c.BusinessMan,c.sjgs,c.scgs,c.status,c.proportion,c.clys,c.wxys
|
|
|
+ from kzks_project_cost c
|
|
|
+ left join mes_info_installationcost m on m.taskno = #{taskno}
|
|
|
+ where c.reftaskno = #{taskno} order by taskno ,status
|
|
|
+ </select>
|
|
|
+
|
|
|
<!-- 项目成本对比 -->
|
|
|
<select id="compareListByIds" resultType="org.jeecg.modules.projectCost.entity.ProjectCost">
|
|
|
select * from kzks_project_cost where id in
|