| | |
| | | |
| | | import cc.mrbird.febs.server.hr.entity.EmpAccidentCases; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * |
| | |
| | | * description:员工意外险案件实体Mapper |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:36:10 |
| | | * @date 2021-01-31 11:26:27 |
| | | * @since JDK1.8 |
| | | */ |
| | | public interface EmpAccidentCasesMapper extends BaseMapper<EmpAccidentCases> { |
| | | |
| | | /** |
| | | * |
| | | * 根据Id批量逻辑删除记录 |
| | | * |
| | | * date luoyibo |
| | | * @author: 2021-01-31 11:26:27 |
| | | * @param list 待删除Id |
| | | * @param operatorId 操作员Id |
| | | * @return void |
| | | */ |
| | | @Update("<script> " + |
| | | " UPDATE t_emp_accidentcases SET delFlag = 1,\n" + |
| | | " modifyTime = NOW(),\n" + |
| | | " modifier = #{operatorId}, \n" + |
| | | " version = version+1 \n" + |
| | | " WHERE accidentId IN \n" + |
| | | " <foreach item=\"delId\" collection=\"list\" open=\"(\" close=\")\" separator=\",\">\n" + |
| | | " #{delId}\n" + |
| | | " </foreach>\n" + |
| | | "</script>") |
| | | void logicDeleteByIds(@Param("list") List<String> list,@Param("operatorId") String operatorId); |
| | | } |