修改操作日志sql报错
This commit is contained in:
parent
7e6876a295
commit
e096999a48
@ -8,7 +8,5 @@ import com.qiwenshare.file.domain.OperationLogBean;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface OperationLogMapper extends BaseMapper<OperationLogBean> {
|
public interface OperationLogMapper extends BaseMapper<OperationLogBean> {
|
||||||
List<OperationLogBean> selectOperationLog();
|
|
||||||
|
|
||||||
void insertOperationLog(OperationLogBean operationlogBean);
|
|
||||||
}
|
}
|
||||||
|
@ -28,13 +28,13 @@ public class OperationLogService extends ServiceImpl<OperationLogMapper, Operat
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<OperationLogBean> selectOperationLog() {
|
public List<OperationLogBean> selectOperationLog() {
|
||||||
List<OperationLogBean> result = operationLogMapper.selectOperationLog();
|
List<OperationLogBean> result = operationLogMapper.selectList(null);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void insertOperationLog(OperationLogBean operationlogBean) {
|
public void insertOperationLog(OperationLogBean operationlogBean) {
|
||||||
operationLogMapper.insertOperationLog(operationlogBean);
|
operationLogMapper.insert(operationlogBean);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,14 +6,5 @@
|
|||||||
|
|
||||||
<mapper namespace="com.qiwenshare.file.mapper.OperationLogMapper">
|
<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>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user