1.设置当在有一个服务为发布状态时设置另一个服务为发布时
要将已发布的服务同时设置成未发布状态(即发布状态下的服务只能有一个)
代码实现:mapper层与sercive层接口
int updateStatus(String status);
mapper.xml中的sql语句
<update id="updateStatus" parameterType="String">
update cms_copyright set status = #{status}
where del_flag = '0'
</update>
servieceimpl
@Override
public int updateStatus(