Commit bf8ffaab authored by duanruiming's avatar duanruiming

[update] 上载相位优化

parent 46a71ee9
......@@ -60,8 +60,8 @@ public class WanJiCommonStaticInfoServiceImpl implements WanJiCommonStaticInfoSe
crossSchemeMapper.insertOne(crossSchemePO);
});
List<CrossPhasePO> crossPhaseList = content.getCrossPhaseList();
crossPhaseMapper.deleteBatch(crossId, null);
crossPhaseList.forEach(crossPhasePO -> {
crossPhaseMapper.deleteBatch(crossId, crossPhasePO.getPlanId());
crossPhaseMapper.insertOne(crossPhasePO);
});
......
......@@ -40,7 +40,14 @@
<delete id="deleteBatch">
delete from t_cross_phase
where cross_id = #{crossId} and plan_id = #{schemeId}
<where>
<if test="crossId != null and crossId != ''">
and cross_id = #{crossId}
</if>
<if test="schemeId != null and schemeId != ''">
and plan_id = #{schemeId}
</if>
</where>
</delete>
<delete id="deleteByCrossId">
......
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