Commit aaf10b50 by dengwei

多层权重计算逻辑实现

parent b6ae7575
...@@ -31,4 +31,7 @@ public interface WeightIndValueMapper extends BaseMapper<WeightIndValue> { ...@@ -31,4 +31,7 @@ public interface WeightIndValueMapper extends BaseMapper<WeightIndValue> {
void batchDeleteByWeightIds(@Param("ids") List<Integer> ids); void batchDeleteByWeightIds(@Param("ids") List<Integer> ids);
WeightIndValue findByIndIdAndObjId(@Param("indId") String indId,
@Param("objId") String objId);
} }
...@@ -34,4 +34,9 @@ ...@@ -34,4 +34,9 @@
</foreach> </foreach>
</update> </update>
<select id="findByIndIdAndObjId" resultType="com.keymobile.indicators.model.entity.weight.WeightIndValue">
select * from weight_ind_value
where ind_id = #{indId} and obj_id = #{objId} and state = 1
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment