fix desk
This commit is contained in:
@@ -32,9 +32,9 @@
|
||||
</sql>
|
||||
<insert id="batchAddOperationLog">
|
||||
<foreach collection="list" separator=";" item="item">
|
||||
INSERT INTO xfsg_operation_log( shop_id, shop_sub_stage, shop_sub_stage_status, status, type, remarks, operator_name,operator,audit_result_id,create_time,create_user_id,update_user_id)
|
||||
INSERT INTO xfsg_operation_log( shop_id, shop_sub_stage, shop_sub_stage_status, status, type, remarks, operator_name,operator,audit_result_id,create_time,create_user_id,update_user_id,update_time)
|
||||
VALUES(#{item.shopId}, #{item.shopSubStage}, #{item.shopSubStageStatus}, #{item.status}, #{item.type}, #{item.remarks}, #{item.operatorName}, #{item.operator},#{item.auditResultId}
|
||||
,#{item.createTime},#{item.createUserId},#{item.updateUserId})
|
||||
,#{item.createTime},#{item.createUserId},#{item.updateUserId},#{item.updateTime})
|
||||
</foreach>
|
||||
</insert>
|
||||
<select id="getOrderByTime" resultType="com.cool.store.entity.OperationLogDO">
|
||||
|
||||
@@ -48,6 +48,7 @@ public class OperationLogServiceImpl implements OperationLogService {
|
||||
OperationLogDO.setCreateUserId(userId);
|
||||
OperationLogDO.setRemarks(remark);
|
||||
OperationLogDO.setCreateTime(new Date());
|
||||
OperationLogDO.setUpdateTime(new Date());
|
||||
operationLogDAO.addOperationLog(OperationLogDO);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
@@ -150,7 +151,7 @@ public class OperationLogServiceImpl implements OperationLogService {
|
||||
}
|
||||
responses.add(auditInfoResponse);
|
||||
}
|
||||
return responses.stream().sorted(Comparator.comparing(AuditInfoResponse::getCreateTime)).collect(Collectors.toList());
|
||||
return responses.stream().sorted(Comparator.comparing(AuditInfoResponse::getCreateTime).reversed()).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user