| | |
| | | } |
| | | |
| | | |
| | | @PostMapping("updateFlag") |
| | | @PostMapping("finishRZExperiment") |
| | | @ApiOperation(value = "完成试验") |
| | | public Response updateFlag(@ApiParam(value = "试验编号", required = true) @RequestParam String id) { |
| | | |
| | |
| | | List<ExperimentWindingStep1> selectlistByCondition(@Param(value = "rzLink") int rzLink,@Param(value = "step") int step); |
| | | |
| | | //完成试验 |
| | | @Update("update `db_3.5mw_web`.`tb_experiment_winding_step1` set status =2 where experiment_id=#{id} ") |
| | | int updateFlag(String id); |
| | | int updateRzFlag(String id); |
| | | |
| | | //根据 uuid 删除试验数据 |
| | | @Delete(" delete from tb_experiment_winding_step1 where experiment_id=#{experimentId} and uuid = #{uuid}") |
| | |
| | | // System.out.println("list = " + list.size()); |
| | | } |
| | | try { |
| | | mapper.deleteById(experimentId); |
| | | mapper1.delExperimentWindingbyUuid(experimentId,uuid); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | experiment.setId(id); |
| | | experiment.setEndTime(new Date()); |
| | | mapper.updateFlag(experiment); |
| | | mapper1.updateFlag(id); |
| | | mapper1.updateRzFlag(id); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | response.setMsg(0,"更新失败"); |
| | |
| | | index_id = #{indexId} AND |
| | | step = #{step} |
| | | </update> |
| | | <update id="updateRzFlag"> |
| | | UPDATE `db_3.5mw_web`.`tb_experiment_winding_step1` SET status = 2 where experiment_id = #{id} |
| | | </update> |
| | | </mapper> |