39 lines
1.2 KiB
Java
39 lines
1.2 KiB
Java
|
|
package com.engine.salary.biz;
|
||
|
|
|
||
|
|
import com.engine.salary.entity.datacollection.po.AttendQuoteDataValuePO;
|
||
|
|
import com.engine.salary.mapper.datacollection.AttendQuoteDataValueMapper;
|
||
|
|
import org.apache.ibatis.session.SqlSession;
|
||
|
|
import weaver.conn.mybatis.MyBatisFactory;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
public class AttendQuoteDataValueBiz {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 根据考勤引用字段表的主键id删除
|
||
|
|
* @param attendQuoteDataIds
|
||
|
|
*/
|
||
|
|
public void deleteByAttendQuoteDataIds(List<Long> attendQuoteDataIds) {
|
||
|
|
SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession();
|
||
|
|
try {
|
||
|
|
AttendQuoteDataValueMapper mapper = sqlSession.getMapper(AttendQuoteDataValueMapper.class);
|
||
|
|
mapper.deleteByAttendQuoteDataIds(attendQuoteDataIds);
|
||
|
|
sqlSession.commit();
|
||
|
|
} finally {
|
||
|
|
sqlSession.close();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public List<AttendQuoteDataValuePO> listSome(AttendQuoteDataValuePO param) {
|
||
|
|
SqlSession sqlSession = MyBatisFactory.sqlSessionFactory.openSession();
|
||
|
|
try {
|
||
|
|
AttendQuoteDataValueMapper mapper = sqlSession.getMapper(AttendQuoteDataValueMapper.class);
|
||
|
|
return mapper.listSome(param);
|
||
|
|
} finally {
|
||
|
|
sqlSession.close();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|