whycrzg
2021-05-24 3653786c292293163a96970fb337a239324a0d58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.whyc.mapper;
 
 
import com.whyc.pojo.Experiment;
import com.whyc.pojo.ExperimentWindingStep1;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.junit.runners.Parameterized;
 
import java.util.List;
 
public interface ExperimentWindingStep1Mapper extends CustomMapper<ExperimentWindingStep1>{
    int deleteByPrimaryKey(Integer id);
 
    int insertSelective(ExperimentWindingStep1 record);
 
    ExperimentWindingStep1 selectByPrimaryKey(Integer id);
 
    int updateByPrimaryKeySelective(ExperimentWindingStep1 record);
 
    int updateByPrimaryKey(ExperimentWindingStep1 record);
 
    int delExperimentWindingbyId(String experimentId);
 
    //根据experiment_id编辑试验数据
    int updateById(ExperimentWindingStep1 windingStep1);
 
    int updateByIdandIndex(ExperimentWindingStep1 windingStep1);
 
    //根据试验ID查询到uid在tb_user表查询real_name
    String getRealName(String experimentId);
 
    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);
}