whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
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
package com.fgkj.mapper.impl;
 
import java.util.List;
 
import com.fgkj.dto.User_battmaint_check;
import com.fgkj.dto.User_battmaint_check_process;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
 
import javax.faces.component.UIPanel;
 
public interface User_battmaint_check_processMapper{
 
    public boolean add(Object obj) ;
    //4.10user_battmaint_check表修改时User_battmaint_check_process表就新增一条记录
    @Update("insert into db_user.tb_user_battmaint_check_process(task_rec_id,work_caption,usr_id,work_caption_time) " +
            "values(#{task_rec_id},#{work_caption},#{usr_id},#{work_caption_time})")
    public int addPro(User_battmaint_check_process obj) ;
    public boolean update(Object obj) ;
 
    public boolean del(Object obj) ;
    //4.10user_battmaint_check表删除一条记录时User_battmaint_check_process表就删除相关的记录
 
    @Delete("delete from db_user.tb_user_battmaint_check_process where task_rec_id=#{task_rec_id}")
    public int delPro(User_battmaint_check_process obj) ;
    public List searchAll() ;
    //4.10根据User_battmaint_check的num查询User_battmaint_check_process对应的数据
    @Select("select num,usr_id,task_rec_id,work_caption,work_caption_time from db_user.tb_user_battmaint_check_process where task_rec_id=#{num} ")
    public List<User_battmaint_check_process> serchByCondition(User_battmaint_check obj) ;
 
    public List serchByInfo(Object obj);
}