修改操作日志sql报错

This commit is contained in:
马超 2021-03-07 14:24:40 +08:00
parent 7e6876a295
commit e096999a48
3 changed files with 2 additions and 13 deletions

View File

@ -8,7 +8,5 @@ import com.qiwenshare.file.domain.OperationLogBean;
import java.util.List;
public interface OperationLogMapper extends BaseMapper<OperationLogBean> {
List<OperationLogBean> selectOperationLog();
void insertOperationLog(OperationLogBean operationlogBean);
}

View File

@ -28,13 +28,13 @@ public class OperationLogService extends ServiceImpl<OperationLogMapper, Operat
@Override
public List<OperationLogBean> selectOperationLog() {
List<OperationLogBean> result = operationLogMapper.selectOperationLog();
List<OperationLogBean> result = operationLogMapper.selectList(null);
return result;
}
@Override
public void insertOperationLog(OperationLogBean operationlogBean) {
operationLogMapper.insertOperationLog(operationlogBean);
operationLogMapper.insert(operationlogBean);
}

View File

@ -6,14 +6,5 @@
<mapper namespace="com.qiwenshare.file.mapper.OperationLogMapper">
<select id="selectOperationLog" resultType="com.qiwenshare.file.domain.OperationLogBean">
SELECT * FROM operationLog
</select>
<insert id="insertOperationLog" parameterType="com.qiwenshare.file.domain.OperationLogBean" useGeneratedKeys="true"
keyProperty="operationLogId">
INSERT INTO operationLog (operation, userId, terminal, result, detail, source, time, logLevel)
VALUES (#{operation}, #{userId}, #{terminal}, #{result}, #{detail}, #{source}, #{time}, #{logLevel});
</insert>
</mapper>