commit for pull
This commit is contained in:
@@ -19,10 +19,31 @@
|
||||
<id column="update_time" property="updateTime" />
|
||||
<id column="version" property="version" />
|
||||
</resultMap>
|
||||
<resultMap id="ResultMap" type="com.cnbm.packing.dto.CompensationPowerXSDTO">
|
||||
<result column="a" property="a" />
|
||||
<result column="b" property="b" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="list" resultType="com.cnbm.packing.dto.WoCompensationPowerDTO">
|
||||
select * from t_wo_compensation_power
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
<select id="getConffBySubIdAndLineBody" resultMap="ResultMap">
|
||||
select
|
||||
twcp.coefficient_a as a,twcp.coefficient_b as b
|
||||
from t_wo_compensation_power twcp
|
||||
where
|
||||
twcp.valid = 1
|
||||
|
||||
<if test="param.lineBody != null">
|
||||
and twcp.line_body = #{param.lineBody}
|
||||
</if>
|
||||
<if test="param.pmpp != null">
|
||||
and twcp.actl_pmpp_high <![CDATA[ >= ]]> #{param.pmpp} and twcp.actl_pmpp_low <![CDATA[ <= ]]> #{param.pmpp}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user